diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-11 01:12:07 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-02-11 01:12:07 +0800 |
commit | a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5 (patch) | |
tree | ece047db6008d25e2c5effa0b85a4584f90a6eec /python/pyempathygtk | |
parent | 88efb8a4070d91d833186906a4099b445c60975d (diff) | |
download | gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar.gz gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar.bz2 gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar.lz gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar.xz gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.tar.zst gsoc2013-empathy-a84d2ff1a684995ce75ff78c57c0e1ac2a4bf7d5.zip |
Add a generic UI to make easy building UI for protocol specific settings. Port empathy-account-widget-*.[ch] to use that API.
svn path=/trunk/; revision=621
Diffstat (limited to 'python/pyempathygtk')
-rw-r--r-- | python/pyempathygtk/pyempathygtk.defs | 59 | ||||
-rw-r--r-- | python/pyempathygtk/pyempathygtk.override | 4 |
2 files changed, 41 insertions, 22 deletions
diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index f92a3eeb2..4f5e0f5a4 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -320,7 +320,30 @@ -;; From empathy-account-widget-generic.h +;; From empathy-account-widget.h + +(define-function empathy_account_widget_new_with_glade + (c-name "empathy_account_widget_new_with_glade") + (return-type "GtkWidget*") + (parameters + '("McAccount*" "account") + '("GladeXML*" "glade") + '("const-gchar*" "root") + '("const-gchar*" "first_widget_name") + ) + (varargs #t) +) + +(define-function emapthy_account_widget_add_forget_button + (c-name "emapthy_account_widget_add_forget_button") + (return-type "none") + (parameters + '("McAccount*" "account") + '("GladeXML*" "glade") + '("const-gchar*" "button") + '("const-gchar*" "entry") + ) +) (define-function empathy_account_widget_generic_new (c-name "empathy_account_widget_generic_new") @@ -331,23 +354,15 @@ ) ) - - -;; From empathy-account-widget-jabber.h - -(define-function empathy_account_widget_jabber_new - (c-name "empathy_account_widget_jabber_new") - (is-constructor-of "EmpathyAccountWidgetJabber") +(define-function empathy_account_widget_salut_new + (c-name "empathy_account_widget_salut_new") + (is-constructor-of "EmpathyAccountWidgetSalut") (return-type "GtkWidget*") (parameters '("McAccount*" "account") ) ) - - -;; From empathy-account-widget-msn.h - (define-function empathy_account_widget_msn_new (c-name "empathy_account_widget_msn_new") (is-constructor-of "EmpathyAccountWidgetMsn") @@ -357,13 +372,9 @@ ) ) - - -;; From empathy-account-widget-salut.h - -(define-function empathy_account_widget_salut_new - (c-name "empathy_account_widget_salut_new") - (is-constructor-of "EmpathyAccountWidgetSalut") +(define-function empathy_account_widget_jabber_new + (c-name "empathy_account_widget_jabber_new") + (is-constructor-of "EmpathyAccountWidgetJabber") (return-type "GtkWidget*") (parameters '("McAccount*" "account") @@ -1869,6 +1880,16 @@ ;; From empathy-ui-utils.h +(define-function empathy_glade_get + (c-name "empathy_glade_get") + (return-type "GladeXML*") + (parameters + '("const-gchar*" "filename") + '("const-gchar*" "root") + '("const-gchar*" "domain") + ) +) + (define-function empathy_glade_get_file_simple (c-name "empathy_glade_get_file_simple") (return-type "none") diff --git a/python/pyempathygtk/pyempathygtk.override b/python/pyempathygtk/pyempathygtk.override index c7c59415b..f806b62f8 100644 --- a/python/pyempathygtk/pyempathygtk.override +++ b/python/pyempathygtk/pyempathygtk.override @@ -7,9 +7,7 @@ headers #include "empathy-about-dialog.h" #include "empathy-account-chooser.h" #include "empathy-accounts-dialog.h" -#include "empathy-account-widget-generic.h" -#include "empathy-account-widget-jabber.h" -#include "empathy-account-widget-msn.h" +#include "empathy-account-widget.h" #include "empathy-cell-renderer-expander.h" #include "empathy-cell-renderer-text.h" #include "empathy-cell-renderer-activatable.h" |