Changeset 4505
- Timestamp:
- 04/15/09 11:15:54 (4 years ago)
- Location:
- branch/UmitPlugins
- Files:
-
- 3 modified
-
higwidgets/higtooltips.py (modified) (3 diffs)
-
source-plugins/notifier/sources/main.py (modified) (2 diffs)
-
source-plugins/tray-icon/sources/main.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branch/UmitPlugins/higwidgets/higtooltips.py
r4497 r4505 431 431 432 432 self.hide() 433 self.destroy()433 #self.destroy() 434 434 435 435 return False … … 460 460 if y > s_h - offset: self._is_top = True 461 461 else: self._is_top = False 462 462 463 463 if not data: 464 464 data = self._widgets[w] … … 466 466 self.title = data.title 467 467 self.message = data.message 468 468 469 469 if data.stock: 470 470 self.icon = data.stock -
branch/UmitPlugins/source-plugins/notifier/sources/main.py
r4504 r4505 59 59 def __on_scan_finished(self, page): 60 60 if not self.tray: 61 log.debug('Cannot procede: self.tray == None') 61 62 return 62 63 … … 69 70 icon = gtk.STOCK_DIALOG_INFO 70 71 72 log.debug('Showing notification (%s, %s)' % (title, msg)) 71 73 self.tray.show_notification(msg, title, stock=icon, timeout=2000) 72 74 -
branch/UmitPlugins/source-plugins/tray-icon/sources/main.py
r4503 r4505 101 101 def start(self, reader): 102 102 self.reader = reader 103 self.toggle_visibility = True104 103 105 104 self.icon = None 105 self.wnd_pos = (0, 0) 106 106 107 107 self.menu = gtk.Menu() … … 182 182 183 183 def __on_activate(self, widget): 184 self.toggle_visibility = not self.toggle_visibility 185 186 if self.toggle_visibility: 187 Core().mainwindow.show() 188 else: 189 Core().mainwindow.hide() 184 mainwnd = Core().mainwindow 185 186 if mainwnd.flags() & gtk.VISIBLE: 187 self.wndpos = mainwnd.get_position() 188 mainwnd.hide() 189 else: 190 mainwnd.move(*self.wndpos) 191 mainwnd.show() 190 192 191 193 def __on_quit(self, action):
