summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/berylsettings.pyx17
1 files changed, 13 insertions, 4 deletions
diff --git a/python/berylsettings.pyx b/python/berylsettings.pyx
index 28f5ec6..0664e43 100644
--- a/python/berylsettings.pyx
+++ b/python/berylsettings.pyx
@@ -288,6 +288,7 @@ cdef extern GSList * beryl_settings_get_backends()
cdef extern gchar * beryl_settings_backend_get_name(BerylSettingsBackend * backend)
cdef extern gchar * beryl_settings_backend_get_short_desc(BerylSettingsBackend * backend)
cdef extern gboolean beryl_settings_backend_get_supports_integration(BerylSettingsBackend * backend)
+cdef extern gboolean beryl_settings_delete_profile(BerylSettingsContext * context, gchar * profile)
#endif
#glib
@@ -415,7 +416,7 @@ def Backends():
cdef class Backend:
cdef BerylSettingsBackend * myBackend
-
+
def __new__(self,nam):
cdef GSList * l
cdef BerylSettingsBackend * b
@@ -426,15 +427,15 @@ cdef class Backend:
self.myBackend=b
break
l=l.next
-
+
property Name:
def __get__(self):
return beryl_settings_backend_get_name(self.myBackend)
-
+
property ShortDesc:
def __get__(self):
return beryl_settings_backend_get_short_desc(self.myBackend)
-
+
property IntegrationSupport:
def __get__(self):
val = beryl_settings_backend_get_supports_integration(self.myBackend)
@@ -603,6 +604,14 @@ cdef class Context:
s=filename
beryl_settings_context_export_to_file(self.myContext,s)
+ def DeleteProfile(self,profile):
+ cdef gchar * p
+ if (profile!=None):
+ p=profile
+ else:
+ p=NULL
+ beryl_settings_delete_profile(self.myContext,p)
+
def Plugin(self,name):
return Plugin(self,name)