Bug 144301
Summary: | unwanted new pygtk2-libglade warning message | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jason Vas Dias <jvdias> |
Component: | gtk2 | Assignee: | Matthias Clasen <mclasen> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-08-24 17:12:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jason Vas Dias
2005-01-05 19:18:24 UTC
Whoops! I found out it is actually generated by gtk2-2.6.0-1, which got yum upgraded from 2.4.13-11, in which the message was not generated. The same comments above still apply - either: 1. The message should not be generated or 2. There needs to be a way to disable its generation or 3. It should contain sufficient information to allow a programmer to prevent it being generated. The offending file is: ./gtk+-2.6.0/gtk/gtktoolbar.c: 79: "Mixing deprecated and non-deprecated GtkToolbar API is not allowed" Moving to gtk+ package. Part of this IS a pygtk problem: there should be a way of catching and handling the gtk.GtkWarning exception, which there does not seem to be. I tried: try: self.xml = gtk.glade.XML ( SCB+'/'+'system-config-bind.glade' except gtk.GtkWarning, w: pass This did not work - the warning is still generated unconditionally. I'm having to resort to: sys.stdout = file("/dev/null","w") sys.stderr = sys.stdout self.xml = gtk.glade.XML(SCB+'/'+'system-config-bind.glade') sys.stdout = sys.__stdout__ sys.stderr = sys.__stderr__ We can not include all of the toolbar api docs in that warning message... |