From 7074a5d07eff91918a4619a42b414935b47ba9f0 Mon Sep 17 00:00:00 2001 From: iovar Date: Sat, 25 Nov 2006 16:36:29 +0000 Subject: fixed close button in about dialog git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@201 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- gtk-recordmydesktop/src/rmdTrayPopup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk-recordmydesktop/src') 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): -- cgit v1.2.3