X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=python%2Fpyempathygtk%2Fpyempathygtk.defs;h=0d5a3e5cac8e8b30ae17f28b5c6ad5d4bbdc8879;hp=f63e16d4ac7fe69a82c7464cd0062ec69bda110a;hb=3cac01703f75bf0ee31fb4720e204931dbca9e29;hpb=75da50a88d81ca05adcadfbcae01a68e805dea19 diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index f63e16d4..0d5a3e5c 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") @@ -140,13 +147,6 @@ (gtype-id "EMPATHY_TYPE_THEME_MANAGER") ) -(define-object Spinner - (in-module "Ephy") - (parent "GtkWidget") - (c-name "EphySpinner") - (gtype-id "EPHY_TYPE_SPINNER") -) - ;; Enumerations and flags ... (define-enum ChatViewBlock @@ -320,7 +320,29 @@ -;; From empathy-account-widget-generic.h +;; From empathy-account-widget.h + +(define-function empathy_account_widget_handle_params + (c-name "empathy_account_widget_handle_params") + (return-type "none") + (parameters + '("McAccount*" "account") + '("GladeXML*" "glade") + '("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 +353,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 +371,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") @@ -433,8 +443,9 @@ ;; From empathy-call-window.h -(define-function empathy_call_window_show - (c-name "empathy_call_window_show") +(define-function empathy_call_window_new + (c-name "empathy_call_window_new") + (is-constructor-of "EmpathyCallWindow") (return-type "GtkWidget*") (parameters '("EmpathyTpCall*" "call") @@ -983,6 +994,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 @@ -1223,6 +1353,15 @@ ) ) +(define-function empathy_contact_widget_set_contact + (c-name "empathy_contact_widget_set_contact") + (return-type "none") + (parameters + '("GtkWidget*" "widget") + '("EmpathyContact*" "contact") + ) +) + (define-function empathy_contact_widget_set_account_filter (c-name "empathy_contact_widget_set_account_filter") (return-type "none") @@ -1302,35 +1441,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 @@ -1824,19 +1934,11 @@ ) ) -(define-function empathy_icon_name_for_presence_state - (c-name "empathy_icon_name_for_presence_state") - (return-type "const-gchar*") - (parameters - '("McPresence" "state") - ) -) - (define-function empathy_icon_name_for_presence (c-name "empathy_icon_name_for_presence") (return-type "const-gchar*") (parameters - '("EmpathyPresence*" "presence") + '("McPresence" "presence") ) ) @@ -1993,44 +2095,3 @@ (varargs #t) ) - - -;; From ephy-spinner.h - -(define-function ephy_spinner_get_type - (c-name "ephy_spinner_get_type") - (return-type "GType") -) - -(define-function ephy_spinner_new - (c-name "ephy_spinner_new") - (is-constructor-of "EphySpinner") - (return-type "GtkWidget*") -) - -(define-method start - (of-object "EphySpinner") - (c-name "ephy_spinner_start") - (return-type "none") -) - -(define-method stop - (of-object "EphySpinner") - (c-name "ephy_spinner_stop") - (return-type "none") -) - -(define-method set_size - (of-object "EphySpinner") - (c-name "ephy_spinner_set_size") - (return-type "none") - (parameters - '("GtkIconSize" "size") - ) -) - - - -;; From stamp-empathy-gtk-enum-types.h - -