def initialize(self): screen = Wnck.Screen.get_default() if screen is not None: screen.get_workspaces() gobject_connect_weakly(screen, "workspace-created", self._changed) gobject_connect_weakly(screen, "workspace-destroyed", self._changed)
def initialize(self): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) gobject_connect_weakly(clip, "owner-change", self._clipboard_changed) clip = gtk.clipboard_get(gtk.gdk.SELECTION_PRIMARY) gobject_connect_weakly(clip, "owner-change", self._clipboard_changed) self.clipboard_uris = [] self.clipboard_text = None self.selected_text = None
def initialize(self): """Set up change callback""" manager = recent_manager_get_default() gobject_connect_weakly(manager, "changed", self._recent_changed)
def initialize(self): """Set up change callback""" manager = Gtk.RecentManager.get_default() gobject_connect_weakly(manager, "changed", self._recent_changed)
def initialize(self): screen = wnck.screen_get_default() gobject_connect_weakly(screen, "workspace-created", self._changed) gobject_connect_weakly(screen, "workspace-destroyed", self._changed)
def initialize(self): application_dirs = config.get_data_dirs("", "applications") self.monitor_token = self.monitor_directories(*application_dirs) gobject_connect_weakly(__kupfer_settings__, "plugin-setting-changed", self._on_setting_change)
def __init__(self, call_at_finish=False): self._current_timer = -1 self._call_at_finish = call_at_finish self._current_callback = None gobject_connect_weakly(GetScheduler(), "finish", self._on_finish)
def initialize(self): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) gobject_connect_weakly(clip, "owner-change", self._clipboard_changed)
def initialize(self): self._text = None clip = gtk.clipboard_get(gtk.gdk.SELECTION_PRIMARY) gobject_connect_weakly(clip, "owner-change", self._clipboard_changed)