[Reportbug-maint] [PATCH] Global-wide window icon setting fixes GTK+ warnings

Sandro Tosi matrixhasu at gmail.com
Sat Sep 13 19:55:29 UTC 2008


On Sat, Sep 13, 2008 at 21:45, Luca Bruno <lethalman88 at gmail.com> wrote:
> ---
>  reportbug/ui/gtk2_ui.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
> index a626b8a..551a805 100644
> --- a/reportbug/ui/gtk2_ui.py
> +++ b/reportbug/ui/gtk2_ui.py
> @@ -1126,7 +1126,6 @@ class ReportbugAssistant (gtk.Assistant):
>     def __init__ (self, application):
>         gtk.Assistant.__init__ (self)
>         self.set_title ('Reportbug')
> -        self.set_icon_from_file (DEBIAN_LOGO)
>         self.application = application
>         self.showing_page = None
>         self.requested_page = None
> @@ -1296,6 +1295,7 @@ def initialize ():
>     sys.excepthook = ExceptionDialog.create_excepthook (oldhook)
>
>     # GTK settings
> +    gtk.window_set_default_icon_from_file (DEBIAN_LOGO)
>     gtk.link_button_set_uri_hook (lambda button, uri: launch_browser (uri))
>
>     application = ReportbugApplication ()

Applied (but it failed), this is the real diff (try stick to upgrade):

$ svn diff
Index: reportbug/ui/gtk2_ui.py
===================================================================
--- reportbug/ui/gtk2_ui.py	(revision 653)
+++ reportbug/ui/gtk2_ui.py	(working copy)
@@ -1096,7 +1096,6 @@
     def __init__ (self, application):
         gtk.Assistant.__init__ (self)
         self.set_title ('Reportbug')
-        self.set_icon_from_file (DEBIAN_LOGO)
         self.application = application
         self.showing_page = None
         self.requested_page = None
@@ -1265,6 +1264,7 @@
     sys.excepthook = ExceptionDialog.create_excepthook (oldhook)

     # GTK settings
+    gtk.window_set_default_icon_from_file (DEBIAN_LOGO)
     gtk.link_button_set_uri_hook (lambda button, uri: launch_browser (uri))

     application = ReportbugApplication ()

Sandro

-- 
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



More information about the Reportbug-maint mailing list