aboutsummaryrefslogtreecommitdiffstats
path: root/python/pyempathygtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-01-23 21:16:06 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-01-23 21:16:06 +0800
commit61a627be9a0d353ee9fc4d8edecde948aab5d243 (patch)
treea2124b70f6f380cfd3a1be7963a42ad25cd97d4a /python/pyempathygtk
parent84db00195ac91343c32c1d1e9e4301e8b0adc662 (diff)
downloadgsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar.gz
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar.bz2
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar.lz
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar.xz
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.tar.zst
gsoc2013-empathy-61a627be9a0d353ee9fc4d8edecde948aab5d243.zip
Move empathy-conf to libempathy-gtk. libempathy do not depend directly on gconf anymore.
svn path=/trunk/; revision=597
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r--python/pyempathygtk/pyempathygtk.defs159
-rw-r--r--python/pyempathygtk/pyempathygtk.override1
2 files changed, 127 insertions, 33 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs
index f63e16d4a..a8412437f 100644
--- a/python/pyempathygtk/pyempathygtk.defs
+++ b/python/pyempathygtk/pyempathygtk.defs
@@ -63,6 +63,13 @@
(gtype-id "EMPATHY_TYPE_CHAT_WINDOW")
)
+(define-object Conf
+ (in-module "Empathy")
+ (parent "GObject")
+ (c-name "EmpathyConf")
+ (gtype-id "EMPATHY_TYPE_CONF")
+)
+
(define-object ContactListStore
(in-module "Empathy")
(parent "GtkTreeStore")
@@ -983,6 +990,125 @@
+;; From empathy-conf.h
+
+(define-function empathy_conf_get_type
+ (c-name "empathy_conf_get_type")
+ (return-type "GType")
+)
+
+(define-function empathy_conf_get
+ (c-name "empathy_conf_get")
+ (return-type "EmpathyConf*")
+)
+
+(define-function empathy_conf_shutdown
+ (c-name "empathy_conf_shutdown")
+ (return-type "none")
+)
+
+(define-method notify_add
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_notify_add")
+ (return-type "guint")
+ (parameters
+ '("const-gchar*" "key")
+ '("EmpathyConfNotifyFunc" "func")
+ '("gpointer" "data")
+ )
+)
+
+(define-method notify_remove
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_notify_remove")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "id")
+ )
+)
+
+(define-method set_int
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_set_int")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("gint" "value")
+ )
+)
+
+(define-method get_int
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_get_int")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("gint*" "value")
+ )
+)
+
+(define-method set_bool
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_set_bool")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("gboolean" "value")
+ )
+)
+
+(define-method get_bool
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_get_bool")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("gboolean*" "value")
+ )
+)
+
+(define-method set_string
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_set_string")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("const-gchar*" "value")
+ )
+)
+
+(define-method get_string
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_get_string")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("gchar**" "value")
+ )
+)
+
+(define-method set_string_list
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_set_string_list")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("GSList*" "value")
+ )
+)
+
+(define-method get_string_list
+ (of-object "EmpathyConf")
+ (c-name "empathy_conf_get_string_list")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("GSList**" "value")
+ )
+)
+
+
+
;; From empathy-contact-dialogs.h
(define-function empathy_subscription_dialog_show
@@ -1302,35 +1428,6 @@
-;; From empathy-gtk-enum-types.h
-
-(define-function empathy_contact_widget_flags_get_type
- (c-name "empathy_contact_widget_flags_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_contact_list_store_sort_get_type
- (c-name "empathy_contact_list_store_sort_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_contact_list_store_col_get_type
- (c-name "empathy_contact_list_store_col_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_contact_list_features_get_type
- (c-name "empathy_contact_list_features_get_type")
- (return-type "GType")
-)
-
-(define-function empathy_chat_view_block_get_type
- (c-name "empathy_chat_view_block_get_type")
- (return-type "GType")
-)
-
-
-
;; From empathy-images.h
@@ -2030,7 +2127,3 @@
)
-
-;; From stamp-empathy-gtk-enum-types.h
-
-
diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override
index f15151762..26eb10119 100644
--- a/python/pyempathygtk/pyempathygtk.override
+++ b/python/pyempathygtk/pyempathygtk.override
@@ -17,6 +17,7 @@ headers
#include "empathy-chatrooms-window.h"
#include "empathy-chat-view.h"
#include "empathy-chat-window.h"
+#include "empathy-conf.h"
#include "empathy-contact-dialogs.h"
#include "empathy-contact-list-store.h"
#include "empathy-contact-list-view.h"