]> git.0d.be Git - empathy.git/blobdiff - python/pyempathygtk/pyempathygtk.defs
Display spelling suggestions in a submenu instead of in a separate
[empathy.git] / python / pyempathygtk / pyempathygtk.defs
index 2065e482360f187dc8374475402f8abbf88891ee..1cb19f52744799441f1a515bbfd29bd1814aa3a9 100644 (file)
   (gtype-id "EMPATHY_TYPE_CHAT")
 )
 
-(define-object ChatView
+(define-object ChatTextView
   (in-module "Empathy")
   (parent "GtkTextView")
+  (c-name "EmpathyChatTextView")
+  (gtype-id "EMPATHY_TYPE_CHAT_TEXT_VIEW")
+)
+
+(define-interface ChatView
+  (in-module "Empathy")
   (c-name "EmpathyChatView")
   (gtype-id "EMPATHY_TYPE_CHAT_VIEW")
 )
   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_VIEW")
 )
 
+(define-object ContactSelector
+  (in-module "Empathy")
+  (parent "GtkComboBox")
+  (c-name "EmpathyContactSelector")
+  (gtype-id "EMPATHY_TYPE_CONTACT_SELECTOR")
+)
+
+(define-object GstAudioSink
+  (in-module "Empathy")
+  (parent "GstBin")
+  (c-name "EmpathyGstAudioSink")
+  (gtype-id "EMPATHY_TYPE_GST_AUDIO_SINK")
+)
+
+(define-object GstAudioSrc
+  (in-module "Empathy")
+  (parent "GstBin")
+  (c-name "EmpathyGstAudioSrc")
+  (gtype-id "EMPATHY_TYPE_GST_AUDIO_SRC")
+)
+
+(define-object GstVideoSrc
+  (in-module "Empathy")
+  (parent "GstBin")
+  (c-name "EmpathyGstVideoSrc")
+  (gtype-id "EMPATHY_TYPE_GST_VIDEO_SRC")
+)
+
 (define-object PresenceChooser
   (in-module "Empathy")
-  (parent "GtkToggleButton")
+  (parent "GtkComboBoxEntry")
   (c-name "EmpathyPresenceChooser")
   (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER")
 )
   (gtype-id "EMPATHY_TYPE_SMILEY_MANAGER")
 )
 
-(define-object Theme
-  (in-module "Empathy")
-  (parent "GObject")
-  (c-name "EmpathyTheme")
-  (gtype-id "EMPATHY_TYPE_THEME")
-)
-
 (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")
 )
   (gtype-id "EMPATHY_TYPE_THEME_MANAGER")
 )
 
+(define-object VideoWidget
+  (in-module "Empathy")
+  (parent "GtkDrawingArea")
+  (c-name "EmpathyVideoWidget")
+  (gtype-id "EMPATHY_TYPE_VIDEO_WIDGET")
+)
+
 ;; Enumerations and flags ...
 
 (define-enum ContactListStoreSort
   )
 )
 
+(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
 
   (return-type "none")
   (parameters
     '("McAccount*" "account")
-    '("GladeXML*" "glade")
-    '("const-gchar*" "first_widget_name")
+    '("GtkBuilder*" "gui")
+    '("const-gchar*" "first_widget")
   )
   (varargs #t)
 )
   (return-type "none")
   (parameters
     '("McAccount*" "account")
-    '("GladeXML*" "glade")
+    '("GtkBuilder*" "gui")
     '("const-gchar*" "button")
     '("const-gchar*" "entry")
   )
 
 
 
+;; 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")
+  )
+)
+
+(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-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
+    '("const-gchar*" "tag_name")
+    '("const-gchar*" "first_property_name")
+  )
+  (varargs #t)
+)
+
+
+
 ;; From empathy-chat-view.h
 
 (define-function chat_view_get_type
   (return-type "GType")
 )
 
-(define-function 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")
   )
 )
 
-(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 scroll
   (of-object "EmpathyChatView")
   (c-name "empathy_chat_view_scroll")
   (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
   (return-type "none")
 )
 
-(define-method get_theme
-  (of-object "EmpathyChatView")
-  (c-name "empathy_chat_view_get_theme")
-  (return-type "EmpathyTheme*")
-)
-
-(define-method set_theme
-  (of-object "EmpathyChatView")
-  (c-name "empathy_chat_view_set_theme")
-  (return-type "none")
-  (parameters
-    '("EmpathyTheme*" "theme")
-  )
-)
-
-(define-method set_margin
-  (of-object "EmpathyChatView")
-  (c-name "empathy_chat_view_set_margin")
-  (return-type "none")
-  (parameters
-    '("gint" "margin")
-  )
-)
-
-(define-function chat_view_get_smiley_menu
-  (c-name "empathy_chat_view_get_smiley_menu")
-  (return-type "GtkWidget*")
-  (parameters
-    '("GCallback" "callback")
-    '("gpointer" "user_data")
-  )
-)
-
-(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_contact
-  (of-object "EmpathyChatView")
-  (c-name "empathy_chat_view_get_last_contact")
-  (return-type "EmpathyContact*")
-)
-
-(define-function 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-conf.h
   (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
 
 
 
+;; From empathy-audio-sink.h
+
+(define-function audio_sink_get_type
+  (c-name "empathy_audio_sink_get_type")
+  (return-type "GType")
+)
+
+(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
+    '("EmpathyGstAudioSink*" "sink")
+    '("gdouble" "volume")
+  )
+)
+
+(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-function audio_src_set_volume
+  (c-name "empathy_audio_src_set_volume")
+  (return-type "none")
+  (parameters
+    '("EmpathyGstAudioSrc*" "src")
+    '("gdouble" "volume")
+  )
+)
+
+(define-function audio_src_get_volume
+  (c-name "empathy_audio_src_get_volume")
+  (return-type "gdouble")
+  (parameters
+    '("EmpathyGstAudioSrc*" "src")
+  )
+)
+
+
+
+;; 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*")
+)
+
+(define-function video_src_get_supported_channels
+  (c-name "empathy_video_src_get_supported_channels")
+  (return-type "guint")
+  (parameters
+    '("GstElement*" "src")
+  )
+)
+
+(define-function video_src_set_channel
+  (c-name "empathy_video_src_set_channel")
+  (return-type "none")
+  (parameters
+    '("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-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
+    '("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*")
+)
+
+(define-method get_sink
+  (of-object "EmpathyVideoWidget")
+  (c-name "empathy_video_widget_get_sink")
+  (return-type "GstPad*")
+)
+
+
+
 ;; From empathy-images.h
 
 
   (return-type "GType")
 )
 
-(define-function 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*")
 )
 
   )
 )
 
+(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")
   (return-type "GType")
 )
 
-
-
-;; From empathy-theme.h
-
-(define-function 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*")
 )
 
 
   (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
   (return-type "const-gchar**")
 )
 
-(define-method apply
-  (of-object "EmpathyThemeManager")
-  (c-name "empathy_theme_manager_apply")
-  (return-type "none")
-  (parameters
-    '("EmpathyChatView*" "view")
-    '("const-gchar*" "theme")
-  )
-)
-
-(define-method apply_saved
+(define-method create_view
   (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 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 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 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 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 icon_name_from_account
   )
 )
 
+(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*")
   )
 )
 
+(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")
   (c-name "empathy_url_show")
   (return-type "none")
   (parameters
+    '("GtkWidget*" "parent")
     '("const-char*" "url")
   )
 )
   )
 )
 
-(define-function 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")
 )