Ejemplo n.º 1
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     bookmark_file = os.path.expanduser(BOOKMARKS_FILE)
     gfile = gio.File(bookmark_file)
     self.monitor = gfile.monitor_file(gio.FILE_MONITOR_NONE, None)
     if self.monitor:
         self.monitor.connect("changed", self._on_bookmarks_changed)
Ejemplo n.º 2
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		bookmark_file = os.path.expanduser(BOOKMARKS_FILE)
		gfile = gio.File(bookmark_file)
		self.monitor = gfile.monitor_file(gio.FILE_MONITOR_NONE, None)
		if self.monitor:
			self.monitor.connect("changed", self._on_bookmarks_changed)
Ejemplo n.º 3
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     try:
         shortcutsFile = open(os.path.expanduser(__kupfer_settings__["shortcuts_source_path"]), 'r')
         try:
             self.shortcuts = json.load(shortcutsFile)["shortcuts"]
         except Exception:
             pretty.print_debug(__name__, "xi")
         shortcutsFile.close()
     except Exception:
         pretty.print_debug(__name__, "xixi")
Ejemplo n.º 4
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     try:
         shortcutsFile = open(os.path.expanduser(__kupfer_settings__["shortcuts_source_path"]), 'r')
         try:
             self.shortcuts = json.load(shortcutsFile)["shortcuts"]
         except Exception:
             pretty.print_debug(__name__, "xi")
         shortcutsFile.close()
     except Exception:
         pretty.print_debug(__name__, "xixi")
    def initialize(self):
        ToplevelGroupingSource.initialize(self)

        eds_cache = _get_calendar_dirs(EDS_CAL_PATH, EDS_CAL_WEB_PATH)
        if eds_cache:
            #path = list(self.get_path())
            self.monitor_token = self.monitor_directories(*eds_cache)

        bus = dbus.SessionBus()
        dbus_signal_connect_weakly(
            bus,
            "objects_modified",
            self._on_events_updated,
            dbus_interface="org.gnome.evolution.dataserver.CalendarView")
Ejemplo n.º 6
0
Archivo: gajim.py Proyecto: pbx/kupfer
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus, signal,
                    self._signal_update, dbus_interface=_IFACE_NAME)
Ejemplo n.º 7
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        # listen to d-bus signals for updates
        signals = [
            "ContactAbsence",
            "ContactPresence",
            "ContactStatus",
            "AccountPresence",
            "Roster",
            "RosterInfo",
        ]

        session_bus = dbus.Bus()

        for signal in signals:
            dbus_signal_connect_weakly(session_bus,
                                       signal,
                                       self._signal_update,
                                       dbus_interface=_IFACE_NAME)
Ejemplo n.º 8
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._claws_addrbook_dir):
			return

		self.monitor_token = self.monitor_directories(self._claws_addrbook_dir)
Ejemplo n.º 9
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        if not os.path.isdir(self._opera_home):
            return

        self.monitor_token = self.monitor_directories(self._opera_home)
Ejemplo n.º 10
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
Ejemplo n.º 11
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
Ejemplo n.º 12
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(_SITEMANAGER_DIR)
Ejemplo n.º 13
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dir = support.get_addressbook_dir()
		if not abook_dir or not os.path.isdir(abook_dir):
			return
		self.monitor_token = self.monitor_directories(abook_dir)
Ejemplo n.º 14
0
    def initialize(self):
        ToplevelGroupingSource.initialize(self)
        if not os.path.isdir(self._claws_addrbook_dir):
            return

        self.monitor_token = self.monitor_directories(self._claws_addrbook_dir)
Ejemplo n.º 15
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     TORRENTS_DIR = (os.path.join(base.xdg_config_home, "transmission/torrents"))
     self.monitor_token = self.monitor_directories(TORRENTS_DIR)
Ejemplo n.º 16
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self.monitor_token = self.monitor_directories(_SITEMANAGER_DIR)
Ejemplo n.º 17
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self._install_dbus_signal()
		self._buddy_update_timer = scheduler.Timer()
		self._buddy_update_queue = set()
Ejemplo n.º 18
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self.monitor_token = self.monitor_directories(self._ssh_home)
Ejemplo n.º 19
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     cfg_dir = __kupfer_settings__["remmina_hosts_folder"]
     self.monitor_token = self.monitor_directories(cfg_dir)
Ejemplo n.º 20
0
Archivo: pidgin.py Proyecto: pbx/kupfer
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     self._install_dbus_signal()
     self._buddy_update_timer = scheduler.Timer()
     self._buddy_update_queue = set()
Ejemplo n.º 21
0
 def initialize(self):
     ToplevelGroupingSource.initialize(self)
     __kupfer_settings__.connect("plugin-setting-changed", self._changed)
Ejemplo n.º 22
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		self.monitor_token = self.monitor_directories(self._ssh_home)
Ejemplo n.º 23
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		if not os.path.isdir(self._opera_home):
			return

		self.monitor_token = self.monitor_directories(self._opera_home)
Ejemplo n.º 24
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		__kupfer_settings__.connect("plugin-setting-changed", self._changed)
Ejemplo n.º 25
0
	def initialize(self):
		ToplevelGroupingSource.initialize(self)
		abook_dirs = list(support.get_addressbook_dirs())
		if abook_dirs:
			self.monitor_token = self.monitor_directories(*abook_dirs)