]> git.0d.be Git - empathy.git/blobdiff - python/pyempathygtk/pyempathygtk.defs
Update python binding
[empathy.git] / python / pyempathygtk / pyempathygtk.defs
index e4044668f11697ce25c80132a0ea15c7a977f9e7..fc168e1137df42773aaa4471b3ecd31eff96f418 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 PresenceChooser
   (in-module "Empathy")
   (parent "GtkToggleButton")
   (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")
 )
   )
 )
 
+(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
 
 
 
 
+;; 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
 
 
 
+;; 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*")
+)
+
+
+
 ;; From empathy-contact-widget.h
 
 (define-method widget_new
   (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 gtk_init
+  (c-name "empathy_gtk_init")
+  (return-type "none")
+)
+
 (define-function glade_get_file_simple
   (c-name "empathy_glade_get_file_simple")
   (return-type "none")
   )
 )
 
+(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 send_file_with_file_chooser
-  (c-name "empathy_send_file_with_file_chooser")
+(define-function sound_play
+  (c-name "empathy_sound_play")
   (return-type "none")
   (parameters
-    '("EmpathyContact*" "contact")
+    '("GtkWidget*" "widget")
+    '("EmpathySound" "sound_id")
   )
 )