예제 #1
0
 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)
예제 #2
0
 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
예제 #3
0
파일: clipboard.py 프로젝트: pbx/kupfer
 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
예제 #4
0
파일: documents.py 프로젝트: chmouel/kupfer
	def initialize(self):
		"""Set up change callback"""
		manager = recent_manager_get_default()
		gobject_connect_weakly(manager, "changed", self._recent_changed)
예제 #5
0
 def initialize(self):
     """Set up change callback"""
     manager = Gtk.RecentManager.get_default()
     gobject_connect_weakly(manager, "changed", self._recent_changed)
예제 #6
0
파일: windows.py 프로젝트: pbx/kupfer
 def initialize(self):
     screen = wnck.screen_get_default()
     gobject_connect_weakly(screen, "workspace-created", self._changed)
     gobject_connect_weakly(screen, "workspace-destroyed", self._changed)
예제 #7
0
 def initialize(self):
     screen = wnck.screen_get_default()
     gobject_connect_weakly(screen, "workspace-created", self._changed)
     gobject_connect_weakly(screen, "workspace-destroyed", self._changed)
예제 #8
0
 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)
예제 #9
0
파일: scheduler.py 프로젝트: guns/kupfer
 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)
예제 #10
0
파일: scheduler.py 프로젝트: pbx/kupfer
 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)
예제 #11
0
파일: clipboard.py 프로젝트: chmouel/kupfer
	def initialize(self):
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD)
		gobject_connect_weakly(clip, "owner-change", self._clipboard_changed)
예제 #12
0
파일: selection.py 프로젝트: chmouel/kupfer
	def initialize(self):
		self._text = None
		clip = gtk.clipboard_get(gtk.gdk.SELECTION_PRIMARY)
		gobject_connect_weakly(clip, "owner-change", self._clipboard_changed)
예제 #13
0
 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)
예제 #14
0
파일: windows.py 프로젝트: engla/kupfer
 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)