~gnome15-team/gnome15/trunk

« back to all changes in this revision

Viewing changes to gnome15/src/main/python/gnome15/g15plugin.py

  • Committer: tanktarta
  • Date: 2012-11-24 10:27:36 UTC
  • Revision ID: tanktarta-20121124102736-0drhasy3jdn862wx
0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
            for k in key:
77
77
                self.watch(k, callback)
78
78
            return
79
 
        k = "%s/%s" % (self.gconf_key, key) if key is not None else self.gconf_key
 
79
        if key is not None and key.startswith("/"):
 
80
            k = key
 
81
        else:
 
82
            k = "%s/%s" % (self.gconf_key, key) if key is not None else self.gconf_key
80
83
        self.__notify_handlers.append(self.gconf_client.notify_add(k, callback))
81
84
        
82
85
    def activate(self):