diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-23 07:09:36 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-09-23 07:09:36 +0000 |
commit | 288e26ab518b03512bb2889c2b466d592c2eec3e (patch) | |
tree | 6e63c02d67d25a27e2f028d192ea655759e10be2 /gtk-recordmydesktop/rmdTrayPopup.py | |
parent | ddccb175869188b4090f468368d42fcd29363f7e (diff) |
new interface
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@63 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'gtk-recordmydesktop/rmdTrayPopup.py')
-rw-r--r-- | gtk-recordmydesktop/rmdTrayPopup.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk-recordmydesktop/rmdTrayPopup.py b/gtk-recordmydesktop/rmdTrayPopup.py index 7df1c87..b16a884 100644 --- a/gtk-recordmydesktop/rmdTrayPopup.py +++ b/gtk-recordmydesktop/rmdTrayPopup.py @@ -28,7 +28,8 @@ import rmdPrefsWidget as pW class TrayPopupMenu: options=None - def __init__(self,values,optionsOpen): + def __init__(self,parent,values,optionsOpen): + self.parent=parent self.optionsOpen=optionsOpen self.values=values self._setup_popup_menu() @@ -44,11 +45,12 @@ class TrayPopupMenu: def _prefs_widget(self,button): if self.optionsOpen[0] ==0: self.optionsOpen[0]=1 - self.options=pW.prefsWidget(self.values,self.optionsOpen) + #self.options=pW.prefsWidget(self.values,self.optionsOpen) + self.parent.show() else: - if self.options != None: - self.options.window.destroy() - self.optionsOpen[0]=0 + #if self.options != None: + self.parent.hide() + self.optionsOpen[0]=0 def _setup_prefs_widget(self): self.popupmenu_prefs_widget = gtk.ImageMenuItem( gtk.STOCK_PREFERENCES) @@ -74,7 +76,7 @@ class TrayPopupMenu: def _setup_select_area(self): self.popupmenu_selectarea = gtk.ImageMenuItem( - _("_Select Area to Record")) + _("_Select Area On Screen")) self.popupmenu.add(self.popupmenu_selectarea) self.popupmenu_selectarea.connect("activate", self._select_area_cb) |