diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-25 16:36:29 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-11-25 16:36:29 +0000 |
commit | 7074a5d07eff91918a4619a42b414935b47ba9f0 (patch) | |
tree | c6868cc359c1b98242b01f9b54974c09b50f49cd /gtk-recordmydesktop | |
parent | ad3cd8f3118b4025e607eadcd0fc36828c0b4457 (diff) |
fixed close button in about dialog
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@201 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop')
-rw-r--r-- | gtk-recordmydesktop/src/rmdTrayPopup.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk-recordmydesktop/src/rmdTrayPopup.py b/gtk-recordmydesktop/src/rmdTrayPopup.py index c845d35..ba4928e 100644 --- a/gtk-recordmydesktop/src/rmdTrayPopup.py +++ b/gtk-recordmydesktop/src/rmdTrayPopup.py @@ -20,6 +20,9 @@ #This file has been modified to be used in gtk-recordMyDesktop #original file name is tray_popup.py in istanbul-0.2.1 + +#25/11/2006: picked aboutdialog close-button fix from upstream Istanbul + import gtk import locale, gettext import rmdConfig @@ -44,7 +47,7 @@ class TrayPopupMenu: self._setup_prefs_widget() self._setup_select_area() self._setup_quit() - + def _prefs_widget(self,button): if self.optionsOpen[0] ==0: self.optionsOpen[0]=1 @@ -59,7 +62,7 @@ class TrayPopupMenu: gtk.STOCK_PREFERENCES) self.popupmenu_prefs_widget.connect('activate', self._prefs_widget) self.popupmenu.add(self.popupmenu_prefs_widget) - + def _setup_about(self): self.popupmenu_aboutitem = gtk.ImageMenuItem(gtk.STOCK_ABOUT) self.popupmenu_aboutitem.connect('activate', self._about) @@ -75,6 +78,7 @@ class TrayPopupMenu: aboutdialog.set_website('http://recordmydesktop.sourceforge.net') aboutdialog.set_license('GPL-2') aboutdialog.set_translator_credits(_('Translator Credits And Information(Replace with your info)')) + aboutdialog.connect('response', lambda widget, response: widget.destroy()) aboutdialog.show_all() def _setup_select_area(self): |