Example #1
0
 def __init__(self, applet):
     gnomeapplet.Applet.__init__(self)
     AbstractCuemiacDeskbarIcon.__init__(self)
     
     self.applet = applet
     
     self.handler_size_allocate_id = self.applet.connect ("size-allocate", self.on_allocate)
     self.applet.set_applet_flags (gnomeapplet.EXPAND_MINOR)
     self.applet.set_background_widget(self.applet)
     
     self.tray = CuemiacAppletButton(applet)
     self.tray.connect('toggled-main', self.on_toggled_main)
     self.tray.connect('toggled-arrow', self.on_toggled_arrow)
     self.applet.add(self.tray)
     self.tray.show()
     
     self.__style_applied = False
     self.force_no_focus_applet()
     
     self.setup_menu()
     self._setup_mvc()
     
     self._set_image(self.applet.get_size())
     
     self._setup_history()
     
     self.applet.show_all()
Example #2
0
 def __init__(self, applet):
     mateapplet.Applet.__init__(self)
     AbstractCuemiacDeskbarIcon.__init__(self)
     
     self.applet = applet
     
     self.handler_size_allocate_id = self.applet.connect ("size-allocate", self.on_allocate)
     self.applet.set_applet_flags (mateapplet.EXPAND_MINOR)
     self.applet.set_background_widget(self.applet)
     
     self.tray = CuemiacAppletButton(applet)
     self.tray.connect('toggled-main', self.on_toggled_main)
     self.tray.connect('toggled-arrow', self.on_toggled_arrow)
     self.applet.add(self.tray)
     self.tray.show()
     
     self.__style_applied = False
     self.force_no_focus_applet()
     
     self.setup_menu()
     self._setup_mvc()
     
     self._set_image(self.applet.get_size())
     
     self._setup_history()
     
     self.applet.show_all()
Example #3
0
 def __init__(self):
     gtk.StatusIcon.__init__(self)
     AbstractCuemiacDeskbarIcon.__init__(self)
     
     self.set_visible (False)
     self.set_tooltip (_("Show search entry"))
     #self.connect ("notify::orientation", self._on_orientation_changed)
     self.connect ("size-changed", self._on_size_changed)
     self.connect ("activate", self._on_activate)
     self.connect ("popup-menu", self._on_popup_menu)
     
     self._setup_mvc()
     
     self._on_size_changed(self, self.get_size())
Example #4
0
 def _on_activate (self, status_icon):
     AbstractCuemiacDeskbarIcon.set_active (self, not self.active, gtk.get_current_event_time())
Example #5
0
 def on_loaded(self, sender):
     AbstractCuemiacDeskbarIcon.on_loaded (self, sender)
     self.set_visible (True)
Example #6
0
 def on_loaded(self, sender):
     AbstractCuemiacDeskbarIcon.on_loaded (self, sender)
     self.tray.set_sensitive(True)
Example #7
0
 def on_loaded(self, sender):
     AbstractCuemiacDeskbarIcon.on_loaded (self, sender)
     self.tray.set_sensitive(True)