X-Git-Url: https://git.0d.be/?p=empathy.git;a=blobdiff_plain;f=python%2Fpyempathygtk%2Fpyempathygtk.defs;h=1cb19f52744799441f1a515bbfd29bd1814aa3a9;hp=0ba5ecbc1e292a66489ad4b7b55232b83fd5601f;hb=814e6198069aaa5df9cf63e51b29afe78ef22dde;hpb=495358677b5d6a583f72e7634b4e8e95cfd4e224 diff --git a/python/pyempathygtk/pyempathygtk.defs b/python/pyempathygtk/pyempathygtk.defs index 0ba5ecbc..1cb19f52 100644 --- a/python/pyempathygtk/pyempathygtk.defs +++ b/python/pyempathygtk/pyempathygtk.defs @@ -44,23 +44,22 @@ (define-object Chat (in-module "Empathy") - (parent "GObject") + (parent "GtkBin") (c-name "EmpathyChat") (gtype-id "EMPATHY_TYPE_CHAT") ) -(define-object ChatView +(define-object ChatTextView (in-module "Empathy") (parent "GtkTextView") - (c-name "EmpathyChatView") - (gtype-id "EMPATHY_TYPE_CHAT_VIEW") + (c-name "EmpathyChatTextView") + (gtype-id "EMPATHY_TYPE_CHAT_TEXT_VIEW") ) -(define-object ChatWindow +(define-interface ChatView (in-module "Empathy") - (parent "GObject") - (c-name "EmpathyChatWindow") - (gtype-id "EMPATHY_TYPE_CHAT_WINDOW") + (c-name "EmpathyChatView") + (gtype-id "EMPATHY_TYPE_CHAT_VIEW") ) (define-object Conf @@ -84,58 +83,58 @@ (gtype-id "EMPATHY_TYPE_CONTACT_LIST_VIEW") ) -(define-object GroupChat +(define-object ContactSelector (in-module "Empathy") - (parent "EmpathyChat") - (c-name "EmpathyGroupChat") - (gtype-id "EMPATHY_TYPE_GROUP_CHAT") + (parent "GtkComboBox") + (c-name "EmpathyContactSelector") + (gtype-id "EMPATHY_TYPE_CONTACT_SELECTOR") ) -(define-object PresenceChooser +(define-object GstAudioSink (in-module "Empathy") - (parent "GtkToggleButton") - (c-name "EmpathyPresenceChooser") - (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER") + (parent "GstBin") + (c-name "EmpathyGstAudioSink") + (gtype-id "EMPATHY_TYPE_GST_AUDIO_SINK") ) -(define-object PrivateChat +(define-object GstAudioSrc (in-module "Empathy") - (parent "EmpathyChat") - (c-name "EmpathyPrivateChat") - (gtype-id "EMPATHY_TYPE_PRIVATE_CHAT") + (parent "GstBin") + (c-name "EmpathyGstAudioSrc") + (gtype-id "EMPATHY_TYPE_GST_AUDIO_SRC") ) -(define-object SmileyManager +(define-object GstVideoSrc (in-module "Empathy") - (parent "GObject") - (c-name "EmpathySmileyManager") - (gtype-id "EMPATHY_TYPE_SMILEY_MANAGER") + (parent "GstBin") + (c-name "EmpathyGstVideoSrc") + (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC") ) -(define-object StatusIcon +(define-object PresenceChooser (in-module "Empathy") - (parent "GObject") - (c-name "EmpathyStatusIcon") - (gtype-id "EMPATHY_TYPE_STATUS_ICON") + (parent "GtkComboBoxEntry") + (c-name "EmpathyPresenceChooser") + (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER") ) -(define-object Theme +(define-object SmileyManager (in-module "Empathy") (parent "GObject") - (c-name "EmpathyTheme") - (gtype-id "EMPATHY_TYPE_THEME") + (c-name "EmpathySmileyManager") + (gtype-id "EMPATHY_TYPE_SMILEY_MANAGER") ) (define-object ThemeBoxes (in-module "Empathy") - (parent "EmpathyTheme") + (parent "EmpathyChatTextView") (c-name "EmpathyThemeBoxes") (gtype-id "EMPATHY_TYPE_THEME_BOXES") ) (define-object ThemeIrc (in-module "Empathy") - (parent "EmpathyTheme") + (parent "EmpathyChatTextView") (c-name "EmpathyThemeIrc") (gtype-id "EMPATHY_TYPE_THEME_IRC") ) @@ -147,22 +146,15 @@ (gtype-id "EMPATHY_TYPE_THEME_MANAGER") ) -;; Enumerations and flags ... - -(define-enum ChatViewBlock +(define-object VideoWidget (in-module "Empathy") - (c-name "EmpathyChatViewBlock") - (gtype-id "EMPATHY_TYPE_CHAT_VIEW_BLOCK") - (values - '("none" "EMPATHY_CHAT_VIEW_BLOCK_NONE") - '("self" "EMPATHY_CHAT_VIEW_BLOCK_SELF") - '("other" "EMPATHY_CHAT_VIEW_BLOCK_OTHER") - '("event" "EMPATHY_CHAT_VIEW_BLOCK_EVENT") - '("time" "EMPATHY_CHAT_VIEW_BLOCK_TIME") - '("invite" "EMPATHY_CHAT_VIEW_BLOCK_INVITE") - ) + (parent "GtkDrawingArea") + (c-name "EmpathyVideoWidget") + (gtype-id "EMPATHY_TYPE_VIDEO_WIDGET") ) +;; Enumerations and flags ... + (define-enum ContactListStoreSort (in-module "Empathy") (c-name "EmpathyContactListStoreSort") @@ -194,64 +186,93 @@ ) ) -(define-flags ContactListFeatures +(define-flags ContactListFeatureFlags (in-module "Empathy") - (c-name "EmpathyContactListFeatures") - (gtype-id "EMPATHY_TYPE_CONTACT_LIST_FEATURES") + (c-name "EmpathyContactListFeatureFlags") + (gtype-id "EMPATHY_TYPE_CONTACT_LIST_FEATURE_FLAGS") (values '("none" "EMPATHY_CONTACT_LIST_FEATURE_NONE") '("groups-save" "EMPATHY_CONTACT_LIST_FEATURE_GROUPS_SAVE") '("groups-rename" "EMPATHY_CONTACT_LIST_FEATURE_GROUPS_RENAME") '("groups-remove" "EMPATHY_CONTACT_LIST_FEATURE_GROUPS_REMOVE") - '("contact-chat" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_CHAT") - '("contact-call" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_CALL") - '("contact-log" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_LOG") - '("contact-ft" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_FT") - '("contact-invite" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_INVITE") - '("contact-edit" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_EDIT") - '("contact-info" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_INFO") '("contact-remove" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_REMOVE") '("contact-drop" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_DROP") '("contact-drag" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_DRAG") + '("contact-tooltip" "EMPATHY_CONTACT_LIST_FEATURE_CONTACT_TOOLTIP") '("all" "EMPATHY_CONTACT_LIST_FEATURE_ALL") ) ) +(define-flags ContactFeatureFlags + (in-module "Empathy") + (c-name "EmpathyContactFeatureFlags") + (gtype-id "EMPATHY_TYPE_CONTACT_FEATURE_FLAGS") + (values + '("none" "EMPATHY_CONTACT_FEATURE_NONE") + '("chat" "EMPATHY_CONTACT_FEATURE_CHAT") + '("call" "EMPATHY_CONTACT_FEATURE_CALL") + '("log" "EMPATHY_CONTACT_FEATURE_LOG") + '("edit" "EMPATHY_CONTACT_FEATURE_EDIT") + '("info" "EMPATHY_CONTACT_FEATURE_INFO") + '("all" "EMPATHY_CONTACT_FEATURE_ALL") + ) +) + (define-flags ContactWidgetFlags (in-module "Empathy") (c-name "EmpathyContactWidgetFlags") (gtype-id "EMPATHY_TYPE_CONTACT_WIDGET_FLAGS") (values - '("none" "EMPATHY_CONTACT_WIDGET_EDIT_NONE") - '("alias" "EMPATHY_CONTACT_WIDGET_EDIT_ALIAS") - '("avatar" "EMPATHY_CONTACT_WIDGET_EDIT_AVATAR") - '("account" "EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT") - '("id" "EMPATHY_CONTACT_WIDGET_EDIT_ID") - '("groups" "EMPATHY_CONTACT_WIDGET_EDIT_GROUPS") + '("edit-none" "EMPATHY_CONTACT_WIDGET_EDIT_NONE") + '("edit-alias" "EMPATHY_CONTACT_WIDGET_EDIT_ALIAS") + '("edit-avatar" "EMPATHY_CONTACT_WIDGET_EDIT_AVATAR") + '("edit-account" "EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT") + '("edit-id" "EMPATHY_CONTACT_WIDGET_EDIT_ID") + '("edit-groups" "EMPATHY_CONTACT_WIDGET_EDIT_GROUPS") + '("for-tooltip" "EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP") ) ) - -;; From empathy-about-dialog.h - -(define-function empathy_about_dialog_new - (c-name "empathy_about_dialog_new") - (return-type "none") - (parameters - '("GtkWindow*" "parent") +(define-enum GstVideoSrcChannel + (in-module "Empathy") + (c-name "EmpathyGstVideoSrcChannel") + (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC_CHANNEL") + (values + '("empathy-gst-video-src-channel-contrast" "EMPATHY_GST_VIDEO_SRC_CHANNEL_CONTRAST") + '("empathy-gst-video-src-channel-brightness" "EMPATHY_GST_VIDEO_SRC_CHANNEL_BRIGHTNESS") + '("empathy-gst-video-src-channel-gamma" "EMPATHY_GST_VIDEO_SRC_CHANNEL_GAMMA") + '("nr-empathy-gst-video-src-channels" "NR_EMPATHY_GST_VIDEO_SRC_CHANNELS") ) ) +(define-enum Sound + (in-module "Empathy") + (c-name "EmpathySound") + (gtype-id "EMPATHY_TYPE_SOUND") + (values + '("empathy-sound-message-incoming" "EMPATHY_SOUND_MESSAGE_INCOMING") + '("empathy-sound-message-outgoing" "EMPATHY_SOUND_MESSAGE_OUTGOING") + '("empathy-sound-conversation-new" "EMPATHY_SOUND_CONVERSATION_NEW") + '("empathy-sound-contact-connected" "EMPATHY_SOUND_CONTACT_CONNECTED") + '("empathy-sound-contact-disconnected" "EMPATHY_SOUND_CONTACT_DISCONNECTED") + '("empathy-sound-account-connected" "EMPATHY_SOUND_ACCOUNT_CONNECTED") + '("empathy-sound-account-disconnected" "EMPATHY_SOUND_ACCOUNT_DISCONNECTED") + '("empathy-sound-phone-incoming" "EMPATHY_SOUND_PHONE_INCOMING") + '("empathy-sound-phone-outgoing" "EMPATHY_SOUND_PHONE_OUTGOING") + '("empathy-sound-phone-hangup" "EMPATHY_SOUND_PHONE_HANGUP") + '("last-empathy-sound" "LAST_EMPATHY_SOUND") + ) +) ;; From empathy-account-chooser.h -(define-function empathy_account_chooser_get_type +(define-function account_chooser_get_type (c-name "empathy_account_chooser_get_type") (return-type "GType") ) -(define-function empathy_account_chooser_new +(define-function account_chooser_new (c-name "empathy_account_chooser_new") (is-constructor-of "EmpathyAccountChooser") (return-type "GtkWidget*") @@ -297,7 +318,7 @@ ) ) -(define-function empathy_account_chooser_filter_is_connected +(define-function account_chooser_filter_is_connected (c-name "empathy_account_chooser_filter_is_connected") (return-type "gboolean") (parameters @@ -308,43 +329,31 @@ -;; From empathy-accounts-dialog.h - -(define-function empathy_accounts_dialog_show - (c-name "empathy_accounts_dialog_show") - (return-type "GtkWidget*") - (parameters - '("GtkWindow*" "parent") - ) -) - - - ;; From empathy-account-widget.h -(define-function empathy_account_widget_handle_params +(define-function account_widget_handle_params (c-name "empathy_account_widget_handle_params") (return-type "none") (parameters '("McAccount*" "account") - '("GladeXML*" "glade") - '("const-gchar*" "first_widget_name") + '("GtkBuilder*" "gui") + '("const-gchar*" "first_widget") ) (varargs #t) ) -(define-function empathy_account_widget_add_forget_button +(define-function account_widget_add_forget_button (c-name "empathy_account_widget_add_forget_button") (return-type "none") (parameters '("McAccount*" "account") - '("GladeXML*" "glade") + '("GtkBuilder*" "gui") '("const-gchar*" "button") '("const-gchar*" "entry") ) ) -(define-function empathy_account_widget_generic_new +(define-function account_widget_generic_new (c-name "empathy_account_widget_generic_new") (is-constructor-of "EmpathyAccountWidgetGeneric") (return-type "GtkWidget*") @@ -353,7 +362,7 @@ ) ) -(define-function empathy_account_widget_salut_new +(define-function account_widget_salut_new (c-name "empathy_account_widget_salut_new") (is-constructor-of "EmpathyAccountWidgetSalut") (return-type "GtkWidget*") @@ -362,7 +371,7 @@ ) ) -(define-function empathy_account_widget_msn_new +(define-function account_widget_msn_new (c-name "empathy_account_widget_msn_new") (is-constructor-of "EmpathyAccountWidgetMsn") (return-type "GtkWidget*") @@ -371,7 +380,7 @@ ) ) -(define-function empathy_account_widget_jabber_new +(define-function account_widget_jabber_new (c-name "empathy_account_widget_jabber_new") (is-constructor-of "EmpathyAccountWidgetJabber") (return-type "GtkWidget*") @@ -380,7 +389,7 @@ ) ) -(define-function empathy_account_widget_icq_new +(define-function account_widget_icq_new (c-name "empathy_account_widget_icq_new") (is-constructor-of "EmpathyAccountWidgetIcq") (return-type "GtkWidget*") @@ -389,7 +398,16 @@ ) ) -(define-function empathy_account_widget_yahoo_new +(define-function account_widget_aim_new + (c-name "empathy_account_widget_aim_new") + (is-constructor-of "EmpathyAccountWidgetAim") + (return-type "GtkWidget*") + (parameters + '("McAccount*" "account") + ) +) + +(define-function account_widget_yahoo_new (c-name "empathy_account_widget_yahoo_new") (is-constructor-of "EmpathyAccountWidgetYahoo") (return-type "GtkWidget*") @@ -398,11 +416,20 @@ ) ) +(define-function account_widget_groupwise_new + (c-name "empathy_account_widget_groupwise_new") + (is-constructor-of "EmpathyAccountWidgetGroupwise") + (return-type "GtkWidget*") + (parameters + '("McAccount*" "account") + ) +) + ;; From empathy-account-widget-irc.h -(define-function empathy_account_widget_irc_new +(define-function account_widget_irc_new (c-name "empathy_account_widget_irc_new") (is-constructor-of "EmpathyAccountWidgetIrc") (return-type "GtkWidget*") @@ -413,14 +440,27 @@ +;; From empathy-account-widget-sip.h + +(define-function account_widget_sip_new + (c-name "empathy_account_widget_sip_new") + (is-constructor-of "EmpathyAccountWidgetSip") + (return-type "GtkWidget*") + (parameters + '("McAccount*" "account") + ) +) + + + ;; From empathy-avatar-chooser.h -(define-function empathy_avatar_chooser_get_type +(define-function avatar_chooser_get_type (c-name "empathy_avatar_chooser_get_type") (return-type "GType") ) -(define-function empathy_avatar_chooser_new +(define-function avatar_chooser_new (c-name "empathy_avatar_chooser_new") (is-constructor-of "EmpathyAvatarChooser") (return-type "GtkWidget*") @@ -450,12 +490,12 @@ ;; From empathy-avatar-image.h -(define-function empathy_avatar_image_get_type +(define-function avatar_image_get_type (c-name "empathy_avatar_image_get_type") (return-type "GType") ) -(define-function empathy_avatar_image_new +(define-function avatar_image_new (c-name "empathy_avatar_image_new") (is-constructor-of "EmpathyAvatarImage") (return-type "GtkWidget*") @@ -472,27 +512,14 @@ -;; From empathy-call-window.h - -(define-function empathy_call_window_new - (c-name "empathy_call_window_new") - (is-constructor-of "EmpathyCallWindow") - (return-type "GtkWidget*") - (parameters - '("EmpathyTpCall*" "call") - ) -) - - - ;; From empathy-cell-renderer-activatable.h -(define-function empathy_cell_renderer_activatable_get_type +(define-function cell_renderer_activatable_get_type (c-name "empathy_cell_renderer_activatable_get_type") (return-type "GType") ) -(define-function empathy_cell_renderer_activatable_new +(define-function cell_renderer_activatable_new (c-name "empathy_cell_renderer_activatable_new") (is-constructor-of "EmpathyCellRendererActivatable") (return-type "GtkCellRenderer*") @@ -502,12 +529,12 @@ ;; From empathy-cell-renderer-expander.h -(define-function empathy_cell_renderer_expander_get_type +(define-function cell_renderer_expander_get_type (c-name "empathy_cell_renderer_expander_get_type") (return-type "GType") ) -(define-function empathy_cell_renderer_expander_new +(define-function cell_renderer_expander_new (c-name "empathy_cell_renderer_expander_new") (is-constructor-of "EmpathyCellRendererExpander") (return-type "GtkCellRenderer*") @@ -517,12 +544,12 @@ ;; From empathy-cell-renderer-text.h -(define-function empathy_cell_renderer_text_get_type +(define-function cell_renderer_text_get_type (c-name "empathy_cell_renderer_text_get_type") (return-type "GType") ) -(define-function empathy_cell_renderer_text_new +(define-function cell_renderer_text_new (c-name "empathy_cell_renderer_text_new") (is-constructor-of "EmpathyCellRendererText") (return-type "GtkCellRenderer*") @@ -532,66 +559,45 @@ ;; From empathy-chat.h -(define-function empathy_chat_get_type +(define-function chat_get_type (c-name "empathy_chat_get_type") (return-type "GType") ) -(define-method get_view - (of-object "EmpathyChat") - (c-name "empathy_chat_get_view") - (return-type "EmpathyChatView*") -) - -(define-method get_window - (of-object "EmpathyChat") - (c-name "empathy_chat_get_window") - (return-type "EmpathyChatWindow*") -) - -(define-method set_window - (of-object "EmpathyChat") - (c-name "empathy_chat_set_window") - (return-type "none") +(define-function chat_new + (c-name "empathy_chat_new") + (is-constructor-of "EmpathyChat") + (return-type "EmpathyChat*") (parameters - '("EmpathyChatWindow*" "window") + '("EmpathyTpChat*" "tp_chat") ) ) -(define-method present - (of-object "EmpathyChat") - (c-name "empathy_chat_present") - (return-type "none") -) - -(define-method clear - (of-object "EmpathyChat") - (c-name "empathy_chat_clear") - (return-type "none") -) - -(define-method scroll_down +(define-method get_tp_chat (of-object "EmpathyChat") - (c-name "empathy_chat_scroll_down") - (return-type "none") + (c-name "empathy_chat_get_tp_chat") + (return-type "EmpathyTpChat*") ) -(define-method cut +(define-method set_tp_chat (of-object "EmpathyChat") - (c-name "empathy_chat_cut") + (c-name "empathy_chat_set_tp_chat") (return-type "none") + (parameters + '("EmpathyTpChat*" "tp_chat") + ) ) -(define-method copy +(define-method get_account (of-object "EmpathyChat") - (c-name "empathy_chat_copy") - (return-type "none") + (c-name "empathy_chat_get_account") + (return-type "McAccount*") ) -(define-method paste +(define-method get_id (of-object "EmpathyChat") - (c-name "empathy_chat_paste") - (return-type "none") + (c-name "empathy_chat_get_id") + (return-type "const-gchar*") ) (define-method get_name @@ -600,87 +606,58 @@ (return-type "const-gchar*") ) -(define-method get_tooltip - (of-object "EmpathyChat") - (c-name "empathy_chat_get_tooltip") - (return-type "gchar*") -) - -(define-method get_status_icon_name +(define-method get_subject (of-object "EmpathyChat") - (c-name "empathy_chat_get_status_icon_name") + (c-name "empathy_chat_get_subject") (return-type "const-gchar*") ) -(define-method get_widget +(define-method get_remote_contact (of-object "EmpathyChat") - (c-name "empathy_chat_get_widget") - (return-type "GtkWidget*") + (c-name "empathy_chat_get_remote_contact") + (return-type "EmpathyContact*") ) -(define-method is_group_chat +(define-method get_members_count (of-object "EmpathyChat") - (c-name "empathy_chat_is_group_chat") - (return-type "gboolean") + (c-name "empathy_chat_get_members_count") + (return-type "guint") ) -(define-method is_connected +(define-method get_contact_menu (of-object "EmpathyChat") - (c-name "empathy_chat_is_connected") - (return-type "gboolean") + (c-name "empathy_chat_get_contact_menu") + (return-type "GtkWidget*") ) -(define-method save_geometry +(define-method clear (of-object "EmpathyChat") - (c-name "empathy_chat_save_geometry") + (c-name "empathy_chat_clear") (return-type "none") - (parameters - '("gint" "x") - '("gint" "y") - '("gint" "w") - '("gint" "h") - ) ) -(define-method load_geometry +(define-method scroll_down (of-object "EmpathyChat") - (c-name "empathy_chat_load_geometry") + (c-name "empathy_chat_scroll_down") (return-type "none") - (parameters - '("gint*" "x") - '("gint*" "y") - '("gint*" "w") - '("gint*" "h") - ) ) -(define-method set_tp_chat +(define-method cut (of-object "EmpathyChat") - (c-name "empathy_chat_set_tp_chat") + (c-name "empathy_chat_cut") (return-type "none") - (parameters - '("EmpathyTpChat*" "tp_chat") - ) ) -(define-method get_id +(define-method copy (of-object "EmpathyChat") - (c-name "empathy_chat_get_id") - (return-type "const-gchar*") + (c-name "empathy_chat_copy") + (return-type "none") ) -(define-method get_account +(define-method paste (of-object "EmpathyChat") - (c-name "empathy_chat_get_account") - (return-type "McAccount*") -) - -(define-function empathy_chat_get_is_command - (c-name "empathy_chat_get_is_command") - (return-type "gboolean") - (parameters - '("const-gchar*" "str") - ) + (c-name "empathy_chat_paste") + (return-type "none") ) (define-method correct_word @@ -688,53 +665,78 @@ (c-name "empathy_chat_correct_word") (return-type "none") (parameters - '("GtkTextIter" "start") - '("GtkTextIter" "end") + '("GtkTextIter*" "start") + '("GtkTextIter*" "end") '("const-gchar*" "new_word") ) ) -(define-method should_play_sound +(define-method is_room (of-object "EmpathyChat") - (c-name "empathy_chat_should_play_sound") + (c-name "empathy_chat_is_room") (return-type "gboolean") ) -(define-function empathy_chat_should_highlight_nick - (c-name "empathy_chat_should_highlight_nick") - (return-type "gboolean") - (parameters - '("EmpathyMessage*" "message") - ) + + +;; From empathy-chat-text-view.h + +(define-function chat_text_view_get_type + (c-name "empathy_chat_text_view_get_type") + (return-type "GType") ) +(define-method get_last_contact + (of-object "EmpathyChatTextView") + (c-name "empathy_chat_text_view_get_last_contact") + (return-type "EmpathyContact*") +) +(define-method set_only_if_date + (of-object "EmpathyChatTextView") + (c-name "empathy_chat_text_view_set_only_if_date") + (return-type "none") + (parameters + '("gboolean" "only_if_date") + ) +) -;; From empathy-chatrooms-window.h +(define-method append_body + (of-object "EmpathyChatTextView") + (c-name "empathy_chat_text_view_append_body") + (return-type "none") + (parameters + '("const-gchar*" "body") + '("const-gchar*" "tag") + ) +) -(define-function empathy_chatrooms_window_show - (c-name "empathy_chatrooms_window_show") +(define-method append_spacing + (of-object "EmpathyChatTextView") + (c-name "empathy_chat_text_view_append_spacing") (return-type "none") +) + +(define-method tag_set + (of-object "EmpathyChatTextView") + (c-name "empathy_chat_text_view_tag_set") + (return-type "GtkTextTag*") (parameters - '("GtkWindow*" "parent") + '("const-gchar*" "tag_name") + '("const-gchar*" "first_property_name") ) + (varargs #t) ) ;; From empathy-chat-view.h -(define-function empathy_chat_view_get_type +(define-function chat_view_get_type (c-name "empathy_chat_view_get_type") (return-type "GType") ) -(define-function empathy_chat_view_new - (c-name "empathy_chat_view_new") - (is-constructor-of "EmpathyChatView") - (return-type "EmpathyChatView*") -) - (define-method append_message (of-object "EmpathyChatView") (c-name "empathy_chat_view_append_message") @@ -753,26 +755,6 @@ ) ) -(define-method append_button - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_append_button") - (return-type "none") - (parameters - '("const-gchar*" "message") - '("GtkWidget*" "button1") - '("GtkWidget*" "button2") - ) -) - -(define-method set_margin - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_margin") - (return-type "none") - (parameters - '("gint" "margin") - ) -) - (define-method scroll (of-object "EmpathyChatView") (c-name "empathy_chat_view_scroll") @@ -788,14 +770,10 @@ (return-type "none") ) -(define-method get_selection_bounds +(define-method get_has_selection (of-object "EmpathyChatView") - (c-name "empathy_chat_view_get_selection_bounds") + (c-name "empathy_chat_view_get_has_selection") (return-type "gboolean") - (parameters - '("GtkTextIter*" "start") - '("GtkTextIter*" "end") - ) ) (define-method clear @@ -850,206 +828,33 @@ (return-type "none") ) -(define-method get_theme - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_get_theme") - (return-type "EmpathyTheme*") + + +;; From empathy-conf.h + +(define-function conf_get_type + (c-name "empathy_conf_get_type") + (return-type "GType") ) -(define-method set_theme - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_theme") - (return-type "none") - (parameters - '("EmpathyTheme*" "theme") - ) +(define-function conf_get + (c-name "empathy_conf_get") + (return-type "EmpathyConf*") ) -(define-method set_margin - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_margin") +(define-function conf_shutdown + (c-name "empathy_conf_shutdown") (return-type "none") - (parameters - '("gint" "margin") - ) ) -(define-function empathy_chat_view_get_smiley_menu - (c-name "empathy_chat_view_get_smiley_menu") - (return-type "GtkWidget*") +(define-method notify_add + (of-object "EmpathyConf") + (c-name "empathy_conf_notify_add") + (return-type "guint") (parameters - '("GCallback" "callback") - '("gpointer" "user_data") - ) -) - -(define-method set_is_group_chat - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_is_group_chat") - (return-type "none") - (parameters - '("gboolean" "is_group_chat") - ) -) - -(define-method get_last_timestamp - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_get_last_timestamp") - (return-type "time_t") -) - -(define-method set_last_timestamp - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_last_timestamp") - (return-type "none") - (parameters - '("time_t" "timestamp") - ) -) - -(define-method get_last_block_type - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_get_last_block_type") - (return-type "EmpathyChatViewBlock") -) - -(define-method set_last_block_type - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_last_block_type") - (return-type "none") - (parameters - '("EmpathyChatViewBlock" "block_type") - ) -) - -(define-method get_last_contact - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_get_last_contact") - (return-type "EmpathyContact*") -) - -(define-method set_last_contact - (of-object "EmpathyChatView") - (c-name "empathy_chat_view_set_last_contact") - (return-type "none") - (parameters - '("EmpathyContact*" "contact") - ) -) - -(define-function empathy_chat_view_get_avatar_pixbuf_with_cache - (c-name "empathy_chat_view_get_avatar_pixbuf_with_cache") - (return-type "GdkPixbuf*") - (parameters - '("EmpathyContact*" "contact") - ) -) - - - -;; From empathy-chat-window.h - -(define-function empathy_chat_window_get_type - (c-name "empathy_chat_window_get_type") - (return-type "GType") -) - -(define-function empathy_chat_window_get_default - (c-name "empathy_chat_window_get_default") - (return-type "EmpathyChatWindow*") -) - -(define-function empathy_chat_window_new - (c-name "empathy_chat_window_new") - (is-constructor-of "EmpathyChatWindow") - (return-type "EmpathyChatWindow*") -) - -(define-method get_dialog - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_get_dialog") - (return-type "GtkWidget*") -) - -(define-method add_chat - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_add_chat") - (return-type "none") - (parameters - '("EmpathyChat*" "chat") - ) -) - -(define-method remove_chat - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_remove_chat") - (return-type "none") - (parameters - '("EmpathyChat*" "chat") - ) -) - -(define-method move_chat - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_move_chat") - (return-type "none") - (parameters - '("EmpathyChatWindow*" "new_window") - '("EmpathyChat*" "chat") - ) -) - -(define-method switch_to_chat - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_switch_to_chat") - (return-type "none") - (parameters - '("EmpathyChat*" "chat") - ) -) - -(define-method has_focus - (of-object "EmpathyChatWindow") - (c-name "empathy_chat_window_has_focus") - (return-type "gboolean") -) - -(define-function empathy_chat_window_find_chat - (c-name "empathy_chat_window_find_chat") - (return-type "EmpathyChat*") - (parameters - '("McAccount*" "account") - '("const-gchar*" "id") - ) -) - - - -;; 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") + '("const-gchar*" "key") + '("EmpathyConfNotifyFunc" "func") + '("gpointer" "data") ) ) @@ -1146,7 +951,7 @@ ;; From empathy-contact-dialogs.h -(define-function empathy_subscription_dialog_show +(define-function subscription_dialog_show (c-name "empathy_subscription_dialog_show") (return-type "none") (parameters @@ -1166,7 +971,7 @@ ) ) -(define-function empathy_new_contact_dialog_show +(define-function new_contact_dialog_show (c-name "empathy_new_contact_dialog_show") (return-type "none") (parameters @@ -1178,15 +983,18 @@ ;; From empathy-contact-list-store.h -(define-function empathy_contact_list_store_get_type +(define-function contact_list_store_get_type (c-name "empathy_contact_list_store_get_type") (return-type "GType") ) -(define-method store_new - (of-object "EmpathyContactList") +(define-function empathy_contact_list_store_new + (is-constructor-of "EmpathyContactListStore") (c-name "empathy_contact_list_store_new") (return-type "EmpathyContactListStore*") + (parameters + '("EmpathyContactList*" "list_iface") + ) ) (define-method get_list_iface @@ -1270,7 +1078,7 @@ ) ) -(define-function empathy_contact_list_store_row_separator_func +(define-function contact_list_store_row_separator_func (c-name "empathy_contact_list_store_row_separator_func") (return-type "gboolean") (parameters @@ -1280,7 +1088,7 @@ ) ) -(define-function empathy_contact_list_store_get_parent_group +(define-function contact_list_store_get_parent_group (c-name "empathy_contact_list_store_get_parent_group") (return-type "gchar*") (parameters @@ -1290,7 +1098,7 @@ ) ) -(define-function empathy_contact_list_store_search_equal_func +(define-function contact_list_store_search_equal_func (c-name "empathy_contact_list_store_search_equal_func") (return-type "gboolean") (parameters @@ -1306,36 +1114,22 @@ ;; From empathy-contact-list-view.h -(define-function empathy_contact_list_view_get_type +(define-function contact_list_view_get_type (c-name "empathy_contact_list_view_get_type") (return-type "GType") ) -(define-function empathy_contact_list_view_new +(define-function contact_list_view_new (c-name "empathy_contact_list_view_new") (is-constructor-of "EmpathyContactListView") (return-type "EmpathyContactListView*") (parameters '("EmpathyContactListStore*" "store") - '("EmpathyContactListFeatures" "features") - ) -) - -(define-method set_features - (of-object "EmpathyContactListView") - (c-name "empathy_contact_list_view_set_features") - (return-type "none") - (parameters - '("EmpathyContactListFeatures" "features") + '("EmpathyContactListFeatureFlags" "list_features") + '("EmpathyContactFeatureFlags" "contact_features") ) ) -(define-method get_features - (of-object "EmpathyContactListView") - (c-name "empathy_contact_list_view_get_features") - (return-type "EmpathyContactListFeatures") -) - (define-method get_selected (of-object "EmpathyContactListView") (c-name "empathy_contact_list_view_get_selected") @@ -1352,9 +1146,6 @@ (of-object "EmpathyContactListView") (c-name "empathy_contact_list_view_get_contact_menu") (return-type "GtkWidget*") - (parameters - '("EmpathyContact*" "contact") - ) ) (define-method get_group_menu @@ -1365,6 +1156,95 @@ +;; From empathy-contact-menu.h + +(define-method menu_new + (of-object "EmpathyContact") + (c-name "empathy_contact_menu_new") + (return-type "GtkWidget*") + (parameters + '("EmpathyContactFeatureFlags" "features") + ) +) + +(define-method chat_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_chat_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method call_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_call_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method log_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_log_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method info_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_info_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method edit_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_edit_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method invite_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_invite_menu_item_new") + (return-type "GtkWidget*") +) + +(define-method file_transfer_menu_item_new + (of-object "EmpathyContact") + (c-name "empathy_contact_file_transfer_menu_item_new") + (return-type "GtkWidget*") +) + + + +;; From empathy-contact-selector.h + +(define-function contact_selector_get_type + (c-name "empathy_contact_selector_get_type") + (return-type "GType") +) + +(define-function contact_selector_new + (c-name "empathy_contact_selector_new") + (is-constructor-of "EmpathyContactSelector") + (return-type "GtkWidget*") + (parameters + '("EmpathyContactList*" "contact_list") + ) +) + +(define-method dup_selected + (of-object "EmpathyContactSelector") + (c-name "empathy_contact_selector_dup_selected") + (return-type "EmpathyContact*") +) + +(define-method set_visible + (of-object "EmpathyContactSelector") + (c-name "empathy_contact_selector_set_visible") + (return-type "none") + (parameters + '("EmpathyContactSelectorFilterFunc" "func") + '("gpointer" "user_data") + ) +) + + + ;; From empathy-contact-widget.h (define-method widget_new @@ -1376,7 +1256,7 @@ ) ) -(define-function empathy_contact_widget_get_contact +(define-function contact_widget_get_contact (c-name "empathy_contact_widget_get_contact") (return-type "EmpathyContact*") (parameters @@ -1384,7 +1264,7 @@ ) ) -(define-function empathy_contact_widget_set_contact +(define-function contact_widget_set_contact (c-name "empathy_contact_widget_set_contact") (return-type "none") (parameters @@ -1393,7 +1273,7 @@ ) ) -(define-function empathy_contact_widget_set_account_filter +(define-function contact_widget_set_account_filter (c-name "empathy_contact_widget_set_account_filter") (return-type "none") (parameters @@ -1407,7 +1287,7 @@ ;; From empathy-geometry.h -(define-function empathy_geometry_save +(define-function geometry_save (c-name "empathy_geometry_save") (return-type "none") (parameters @@ -1419,7 +1299,7 @@ ) ) -(define-function empathy_geometry_load +(define-function geometry_load (c-name "empathy_geometry_load") (return-type "none") (parameters @@ -1433,114 +1313,188 @@ -;; From empathy-group-chat.h +;; From empathy-audio-sink.h -(define-function empathy_group_chat_get_type - (c-name "empathy_group_chat_get_type") +(define-function audio_sink_get_type + (c-name "empathy_audio_sink_get_type") (return-type "GType") ) -(define-function empathy_group_chat_new - (c-name "empathy_group_chat_new") - (is-constructor-of "EmpathyGroupChat") - (return-type "EmpathyGroupChat*") +(define-function audio_sink_new + (c-name "empathy_audio_sink_new") + (is-constructor-of "EmpathyAudioSink") + (return-type "GstElement*") +) + +(define-function audio_sink_set_volume + (c-name "empathy_audio_sink_set_volume") + (return-type "none") (parameters - '("EmpathyTpChatroom*" "tp_chat") + '("EmpathyGstAudioSink*" "sink") + '("gdouble" "volume") ) ) -(define-method get_show_contacts - (of-object "EmpathyGroupChat") - (c-name "empathy_group_chat_get_show_contacts") - (return-type "gboolean") +(define-function audio_sink_get_volume + (c-name "empathy_audio_sink_get_volume") + (return-type "gdouble") + (parameters + '("EmpathyGstAudioSink*" "sink") + ) +) + + + +;; From empathy-audio-src.h + +(define-function audio_src_get_type + (c-name "empathy_audio_src_get_type") + (return-type "GType") +) + +(define-function audio_src_new + (c-name "empathy_audio_src_new") + (is-constructor-of "EmpathyAudioSrc") + (return-type "GstElement*") ) -(define-method set_show_contacts - (of-object "EmpathyGroupChat") - (c-name "empathy_group_chat_set_show_contacts") +(define-function audio_src_set_volume + (c-name "empathy_audio_src_set_volume") (return-type "none") (parameters - '("gboolean" "show") + '("EmpathyGstAudioSrc*" "src") + '("gdouble" "volume") ) ) -(define-method set_topic - (of-object "EmpathyGroupChat") - (c-name "empathy_group_chat_set_topic") - (return-type "none") +(define-function audio_src_get_volume + (c-name "empathy_audio_src_get_volume") + (return-type "gdouble") + (parameters + '("EmpathyGstAudioSrc*" "src") + ) ) -;; From empathy-images.h +;; From empathy-video-src.h +(define-function video_src_get_type + (c-name "empathy_video_src_get_type") + (return-type "GType") +) +(define-function video_src_new + (c-name "empathy_video_src_new") + (is-constructor-of "EmpathyVideoSrc") + (return-type "GstElement*") +) -;; From empathy-irc-network-dialog.h +(define-function video_src_get_supported_channels + (c-name "empathy_video_src_get_supported_channels") + (return-type "guint") + (parameters + '("GstElement*" "src") + ) +) -(define-method dialog_show - (of-object "EmpathyIrcNetwork") - (c-name "empathy_irc_network_dialog_show") - (return-type "GtkWidget*") +(define-function video_src_set_channel + (c-name "empathy_video_src_set_channel") + (return-type "none") (parameters - '("GtkWidget*" "parent") + '("GstElement*" "src") + '("EmpathyGstVideoSrcChannel" "channel") + '("guint" "percent") ) ) +(define-function video_src_get_channel + (c-name "empathy_video_src_get_channel") + (return-type "guint") + (parameters + '("GstElement*" "src") + '("EmpathyGstVideoSrcChannel" "channel") + ) +) -;; From empathy-log-window.h -(define-function empathy_log_window_show - (c-name "empathy_log_window_show") +;; From empathy-video-widget.h + +(define-function video_widget_get_type + (c-name "empathy_video_widget_get_type") + (return-type "GType") +) + +(define-function video_widget_new + (c-name "empathy_video_widget_new") + (is-constructor-of "EmpathyVideoWidget") (return-type "GtkWidget*") (parameters - '("McAccount*" "account") - '("const-gchar*" "chat_id") - '("gboolean" "chatroom") - '("GtkWindow*" "parent") + '("GstBus*" "bus") ) ) +(define-function video_widget_new_with_size + (c-name "empathy_video_widget_new_with_size") + (return-type "GtkWidget*") + (parameters + '("GstBus*" "bus") + '("gint" "width") + '("gint" "height") + ) +) +(define-method get_element + (of-object "EmpathyVideoWidget") + (c-name "empathy_video_widget_get_element") + (return-type "GstElement*") +) -;; From empathy-main-window.h - -(define-function empathy_main_window_show - (c-name "empathy_main_window_show") - (return-type "GtkWidget*") +(define-method get_sink + (of-object "EmpathyVideoWidget") + (c-name "empathy_video_widget_get_sink") + (return-type "GstPad*") ) -;; From empathy-new-chatroom-dialog.h +;; From empathy-images.h -(define-function empathy_new_chatroom_dialog_show - (c-name "empathy_new_chatroom_dialog_show") - (return-type "none") + + +;; From empathy-irc-network-dialog.h + +(define-method dialog_show + (of-object "EmpathyIrcNetwork") + (c-name "empathy_irc_network_dialog_show") + (return-type "GtkWidget*") (parameters - '("GtkWindow*" "parent") + '("GtkWidget*" "parent") ) ) -;; From empathy-new-message-dialog.h +;; From empathy-log-window.h -(define-function empathy_new_message_dialog_show - (c-name "empathy_new_message_dialog_show") +(define-function log_window_show + (c-name "empathy_log_window_show") (return-type "GtkWidget*") (parameters + '("McAccount*" "account") + '("const-gchar*" "chat_id") + '("gboolean" "chatroom") '("GtkWindow*" "parent") ) ) -;; From empathy-preferences.h +;; From empathy-new-message-dialog.h -(define-function empathy_preferences_show - (c-name "empathy_preferences_show") +(define-function new_message_dialog_show + (c-name "empathy_new_message_dialog_show") (return-type "GtkWidget*") (parameters '("GtkWindow*" "parent") @@ -1551,57 +1505,33 @@ ;; From empathy-presence-chooser.h -(define-function empathy_presence_chooser_get_type +(define-function presence_chooser_get_type (c-name "empathy_presence_chooser_get_type") (return-type "GType") ) -(define-function empathy_presence_chooser_new +(define-function presence_chooser_new (c-name "empathy_presence_chooser_new") (is-constructor-of "EmpathyPresenceChooser") (return-type "GtkWidget*") ) -(define-function empathy_presence_chooser_create_menu +(define-function presence_chooser_create_menu (c-name "empathy_presence_chooser_create_menu") (return-type "GtkWidget*") ) -;; From empathy-private-chat.h - -(define-function empathy_private_chat_get_type - (c-name "empathy_private_chat_get_type") - (return-type "GType") -) - -(define-function empathy_private_chat_new - (c-name "empathy_private_chat_new") - (is-constructor-of "EmpathyPrivateChat") - (return-type "EmpathyPrivateChat*") - (parameters - '("EmpathyTpChat*" "tp_chat") - ) -) - -(define-method get_contact - (of-object "EmpathyPrivateChat") - (c-name "empathy_private_chat_get_contact") - (return-type "EmpathyContact*") -) - - - ;; From empathy-profile-chooser.h -(define-function empathy_profile_chooser_new +(define-function profile_chooser_new (c-name "empathy_profile_chooser_new") (is-constructor-of "EmpathyProfileChooser") (return-type "GtkWidget*") ) -(define-function empathy_profile_chooser_get_selected +(define-function profile_chooser_get_selected (c-name "empathy_profile_chooser_get_selected") (return-type "McProfile*") (parameters @@ -1609,7 +1539,7 @@ ) ) -(define-function empathy_profile_chooser_n_profiles +(define-function profile_chooser_n_profiles (c-name "empathy_profile_chooser_n_profiles") (return-type "gint") (parameters @@ -1621,14 +1551,13 @@ ;; From empathy-smiley-manager.h -(define-function empathy_smiley_manager_get_type +(define-function smiley_manager_get_type (c-name "empathy_smiley_manager_get_type") (return-type "GType") ) -(define-function empathy_smiley_manager_new - (c-name "empathy_smiley_manager_new") - (is-constructor-of "EmpathySmileyManager") +(define-function smiley_manager_dup_singleton + (c-name "empathy_smiley_manager_dup_singleton") (return-type "EmpathySmileyManager*") ) @@ -1675,6 +1604,17 @@ ) ) +(define-function smiley_menu_new + (c-name "empathy_smiley_menu_new") + (is-constructor-of "EmpathySmileyMenu") + (return-type "GtkWidget*") + (parameters + '("EmpathySmileyManager*" "manager") + '("EmpathySmileyMenuFunc" "func") + '("gpointer" "user_data") + ) +) + (define-method free (of-object "EmpathySmiley") (c-name "empathy_smiley_free") @@ -1683,29 +1623,14 @@ -;; From empathy-spell-dialog.h - -(define-function empathy_spell_dialog_show - (c-name "empathy_spell_dialog_show") - (return-type "none") - (parameters - '("EmpathyChat*" "chat") - '("GtkTextIter" "start") - '("GtkTextIter" "end") - '("const-gchar*" "word") - ) -) - - - ;; From empathy-spell.h -(define-function empathy_spell_supported +(define-function spell_supported (c-name "empathy_spell_supported") (return-type "gboolean") ) -(define-function empathy_spell_get_language_name +(define-function spell_get_language_name (c-name "empathy_spell_get_language_name") (return-type "const-gchar*") (parameters @@ -1713,12 +1638,12 @@ ) ) -(define-function empathy_spell_get_language_codes +(define-function spell_get_language_codes (c-name "empathy_spell_get_language_codes") (return-type "GList*") ) -(define-function empathy_spell_free_language_codes +(define-function spell_free_language_codes (c-name "empathy_spell_free_language_codes") (return-type "none") (parameters @@ -1726,7 +1651,7 @@ ) ) -(define-function empathy_spell_check +(define-function spell_check (c-name "empathy_spell_check") (return-type "gboolean") (parameters @@ -1734,7 +1659,7 @@ ) ) -(define-function empathy_spell_get_suggestions +(define-function spell_get_suggestions (c-name "empathy_spell_get_suggestions") (return-type "GList*") (parameters @@ -1742,7 +1667,7 @@ ) ) -(define-function empathy_spell_free_suggestions +(define-function spell_free_suggestions (c-name "empathy_spell_free_suggestions") (return-type "none") (parameters @@ -1752,19 +1677,16 @@ -;; From empathy-status-icon.h - -(define-function empathy_status_icon_get_type - (c-name "empathy_status_icon_get_type") - (return-type "GType") -) +;; From empathy-spell-dialog.h -(define-function empathy_status_icon_new - (c-name "empathy_status_icon_new") - (is-constructor-of "EmpathyStatusIcon") - (return-type "EmpathyStatusIcon*") +(define-function spell_dialog_show + (c-name "empathy_spell_dialog_show") + (return-type "none") (parameters - '("GtkWindow*" "window") + '("EmpathyChat*" "chat") + '("GtkTextIter*" "start") + '("GtkTextIter*" "end") + '("const-gchar*" "word") ) ) @@ -1772,205 +1694,102 @@ ;; From empathy-theme-boxes.h -(define-function empathy_theme_boxes_get_type +(define-function theme_boxes_get_type (c-name "empathy_theme_boxes_get_type") (return-type "GType") ) - - -;; From empathy-theme.h - -(define-function empathy_theme_get_type - (c-name "empathy_theme_get_type") - (return-type "GType") -) - -(define-method update_view - (of-object "EmpathyTheme") - (c-name "empathy_theme_update_view") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - ) -) - -(define-method append_message - (of-object "EmpathyTheme") - (c-name "empathy_theme_append_message") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("EmpathyMessage*" "msg") - ) -) - -(define-method append_text - (of-object "EmpathyTheme") - (c-name "empathy_theme_append_text") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("const-gchar*" "body") - '("const-gchar*" "tag") - '("const-gchar*" "link_tag") - ) -) - -(define-method append_spacing - (of-object "EmpathyTheme") - (c-name "empathy_theme_append_spacing") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - ) -) - -(define-method append_event - (of-object "EmpathyTheme") - (c-name "empathy_theme_append_event") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("const-gchar*" "str") - ) -) - -(define-method append_timestamp - (of-object "EmpathyTheme") - (c-name "empathy_theme_append_timestamp") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("EmpathyMessage*" "message") - '("gboolean" "show_date") - '("gboolean" "show_time") - ) -) - -(define-method maybe_append_date_and_time - (of-object "EmpathyTheme") - (c-name "empathy_theme_maybe_append_date_and_time") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("EmpathyMessage*" "message") - ) -) - -(define-method get_show_avatars - (of-object "EmpathyTheme") - (c-name "empathy_theme_get_show_avatars") - (return-type "gboolean") -) - -(define-method set_show_avatars - (of-object "EmpathyTheme") - (c-name "empathy_theme_set_show_avatars") - (return-type "none") - (parameters - '("gboolean" "show") - ) +(define-function theme_boxes_new + (c-name "empathy_theme_boxes_new") + (is-constructor-of "EmpathyThemeBoxes") + (return-type "EmpathyThemeBoxes*") ) ;; From empathy-theme-irc.h -(define-function empathy_theme_irc_get_type +(define-function theme_irc_get_type (c-name "empathy_theme_irc_get_type") (return-type "GType") ) +(define-function theme_irc_new + (c-name "empathy_theme_irc_new") + (is-constructor-of "EmpathyThemeIrc") + (return-type "EmpathyThemeIrc*") +) + ;; From empathy-theme-manager.h -(define-function empathy_theme_manager_get_type +(define-function theme_manager_get_type (c-name "empathy_theme_manager_get_type") (return-type "GType") ) -(define-function empathy_theme_manager_get +(define-function theme_manager_get (c-name "empathy_theme_manager_get") (return-type "EmpathyThemeManager*") ) -(define-function empathy_theme_manager_get_themes +(define-function theme_manager_get_themes (c-name "empathy_theme_manager_get_themes") (return-type "const-gchar**") ) -(define-method apply +(define-method create_view (of-object "EmpathyThemeManager") - (c-name "empathy_theme_manager_apply") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - '("const-gchar*" "theme") - ) -) - -(define-method apply_saved - (of-object "EmpathyThemeManager") - (c-name "empathy_theme_manager_apply_saved") - (return-type "none") - (parameters - '("EmpathyChatView*" "view") - ) + (c-name "empathy_theme_manager_create_view") + (return-type "EmpathyChatView*") ) ;; From empathy-ui-utils.h -(define-function empathy_glade_get_file_simple - (c-name "empathy_glade_get_file_simple") +(define-function gtk_init + (c-name "empathy_gtk_init") (return-type "none") - (parameters - '("const-gchar*" "filename") - '("const-gchar*" "root") - '("const-gchar*" "domain") - '("const-gchar*" "first_required_widget") - ) - (varargs #t) ) -(define-function empathy_glade_get_file - (c-name "empathy_glade_get_file") - (return-type "GladeXML*") +(define-function uri_regex_dup_singleton + (c-name "empathy_uri_regex_dup_singleton") + (return-type "GRegex*") +) + +(define-function builder_get_file + (c-name "empathy_builder_get_file") + (return-type "GtkBuilder*") (parameters '("const-gchar*" "filename") - '("const-gchar*" "root") - '("const-gchar*" "domain") - '("const-gchar*" "first_required_widget") + '("const-gchar*" "first_object") ) (varargs #t) ) -(define-function empathy_glade_connect - (c-name "empathy_glade_connect") +(define-function builder_connect + (c-name "empathy_builder_connect") (return-type "none") (parameters - '("GladeXML*" "gui") + '("GtkBuilder*" "gui") '("gpointer" "user_data") - '("gchar*" "first_widget") + '("gchar*" "first_object") ) (varargs #t) ) -(define-function empathy_glade_setup_size_group - (c-name "empathy_glade_setup_size_group") - (return-type "none") +(define-function builder_unref_and_keep_widget + (c-name "empathy_builder_unref_and_keep_widget") + (return-type "GtkWidget*") (parameters - '("GladeXML*" "gui") - '("GtkSizeGroupMode" "mode") - '("gchar*" "first_widget") + '("GtkBuilder*" "gui") + '("GtkWidget*" "root") ) - (varargs #t) ) -(define-function empathy_icon_name_from_account +(define-function icon_name_from_account (c-name "empathy_icon_name_from_account") (return-type "const-gchar*") (parameters @@ -1978,7 +1797,7 @@ ) ) -(define-function empathy_icon_name_for_presence +(define-function icon_name_for_presence (c-name "empathy_icon_name_for_presence") (return-type "const-gchar*") (parameters @@ -1986,7 +1805,7 @@ ) ) -(define-function empathy_icon_name_for_contact +(define-function icon_name_for_contact (c-name "empathy_icon_name_for_contact") (return-type "const-gchar*") (parameters @@ -1994,7 +1813,7 @@ ) ) -(define-function empathy_pixbuf_from_data +(define-function pixbuf_from_data (c-name "empathy_pixbuf_from_data") (return-type "GdkPixbuf*") (parameters @@ -2003,7 +1822,17 @@ ) ) -(define-function empathy_pixbuf_from_avatar_scaled +(define-function pixbuf_from_data_and_mime + (c-name "empathy_pixbuf_from_data_and_mime") + (return-type "GdkPixbuf*") + (parameters + '("gchar*" "data") + '("gsize" "data_size") + '("gchar**" "mime_type") + ) +) + +(define-function pixbuf_from_avatar_scaled (c-name "empathy_pixbuf_from_avatar_scaled") (return-type "GdkPixbuf*") (parameters @@ -2013,7 +1842,7 @@ ) ) -(define-function empathy_pixbuf_avatar_from_contact_scaled +(define-function pixbuf_avatar_from_contact_scaled (c-name "empathy_pixbuf_avatar_from_contact_scaled") (return-type "GdkPixbuf*") (parameters @@ -2023,7 +1852,7 @@ ) ) -(define-function empathy_pixbuf_scale_down_if_necessary +(define-function pixbuf_scale_down_if_necessary (c-name "empathy_pixbuf_scale_down_if_necessary") (return-type "GdkPixbuf*") (parameters @@ -2032,7 +1861,7 @@ ) ) -(define-function empathy_pixbuf_from_icon_name +(define-function pixbuf_from_icon_name (c-name "empathy_pixbuf_from_icon_name") (return-type "GdkPixbuf*") (parameters @@ -2041,7 +1870,16 @@ ) ) -(define-function empathy_text_iter_forward_search +(define-function pixbuf_from_icon_name_sized + (c-name "empathy_pixbuf_from_icon_name_sized") + (return-type "GdkPixbuf*") + (parameters + '("const-gchar*" "icon_name") + '("gint" "size") + ) +) + +(define-function text_iter_forward_search (c-name "empathy_text_iter_forward_search") (return-type "gboolean") (parameters @@ -2053,7 +1891,7 @@ ) ) -(define-function empathy_text_iter_backward_search +(define-function text_iter_backward_search (c-name "empathy_text_iter_backward_search") (return-type "gboolean") (parameters @@ -2065,7 +1903,7 @@ ) ) -(define-function empathy_window_get_is_visible +(define-function window_get_is_visible (c-name "empathy_window_get_is_visible") (return-type "gboolean") (parameters @@ -2073,7 +1911,7 @@ ) ) -(define-function empathy_window_present +(define-function window_present (c-name "empathy_window_present") (return-type "none") (parameters @@ -2082,7 +1920,7 @@ ) ) -(define-function empathy_window_iconify +(define-function window_iconify (c-name "empathy_window_iconify") (return-type "none") (parameters @@ -2091,7 +1929,7 @@ ) ) -(define-function empathy_get_toplevel_window +(define-function get_toplevel_window (c-name "empathy_get_toplevel_window") (return-type "GtkWindow*") (parameters @@ -2099,15 +1937,16 @@ ) ) -(define-function empathy_url_show +(define-function url_show (c-name "empathy_url_show") (return-type "none") (parameters + '("GtkWidget*" "parent") '("const-char*" "url") ) ) -(define-function empathy_toggle_button_set_state_quietly +(define-function toggle_button_set_state_quietly (c-name "empathy_toggle_button_set_state_quietly") (return-type "none") (parameters @@ -2118,7 +1957,7 @@ ) ) -(define-function empathy_link_button_new +(define-function link_button_new (c-name "empathy_link_button_new") (is-constructor-of "EmpathyLinkButton") (return-type "GtkWidget*") @@ -2128,14 +1967,38 @@ ) ) -(define-function empathy_text_buffer_tag_set - (c-name "empathy_text_buffer_tag_set") - (return-type "GtkTextTag*") +(define-function send_file_with_file_chooser + (c-name "empathy_send_file_with_file_chooser") + (return-type "none") (parameters - '("GtkTextBuffer*" "buffer") - '("const-gchar*" "tag_name") - '("const-gchar*" "first_property_name") + '("EmpathyContact*" "contact") ) - (varargs #t) ) +(define-function sound_play + (c-name "empathy_sound_play") + (return-type "none") + (parameters + '("GtkWidget*" "widget") + '("EmpathySound" "sound_id") + ) +) + +(define-function sound_play_full + (c-name "empathy_sound_play_full") + (return-type "gboolean") + (parameters + '("GtkWidget*" "widget") + '("EmpathySound" "sound_id") + '("ca_finish_callback_t" "callback") + '("gpointer" "user_data") + ) +) + +(define-method stop + (of-object "EmpathySound") + (c-name "empathy_sound_stop") + (return-type "none") +) + +