Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: ibus/config.py

Issue 2860022: Add api to ibus for retreiving unused config values. (Closed) Base URL: ssh://gitrw.chromium.org/ibus.git
Patch Set: Code review changes Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gconf/config.c ('k') | memconf/config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ibus/config.py
diff --git a/ibus/config.py b/ibus/config.py
index d4d100e2dfaf567333979d337a49a09b5529e590..87ac8b7cb1816b20d68e7514a26aebdcf3230492 100644
--- a/ibus/config.py
+++ b/ibus/config.py
@@ -49,6 +49,9 @@ class ConfigBase(object.Object):
def unset(self, section, name):
pass
+ def get_unused(self, unread, unwritten):
+ pass
+
def value_changed(self, section, name, value):
self.__proxy.ValueChanged(section, name, value)
@@ -68,6 +71,9 @@ class ConfigProxy(interface.IConfig):
def Unset(self, section, name):
return self.__config.unset(section, name)
+ def GetUnused(self, unread, unwritten):
+ return self.__config.get_unused(unread, unwritten)
+
def Destroy(self):
self.__config.destroy()
@@ -144,6 +150,12 @@ class Config(object.Object):
except:
return
+ def get_unused(self, unread, unwritten):
+ try:
+ return self.__config.GetUnused(unread, unwritten)
+ except:
+ return
+
def set_list(self, section, name, value, signature):
return self.set_value(section, name, dbus.Array(value, signature=signature))
« no previous file with comments | « gconf/config.c ('k') | memconf/config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698