]> git.0d.be Git - empathy.git/commitdiff
Update python bindings
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 16 Dec 2008 09:32:13 +0000 (09:32 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 16 Dec 2008 09:32:13 +0000 (09:32 +0000)
svn path=/trunk/; revision=2005

python/pyempathy/pyempathy.defs
python/pyempathygtk/pyempathygtk.defs
python/pyempathygtk/pyempathygtk.override
python/update-binding.sh

index dcc6621a08fbf7cdb311a97cef3985cfaf6d5262..918df471149cadad76e8d58bc689839286a65f73 100644 (file)
   )
 )
 
-(define-method get_date_and_time
-  (of-object "EmpathyMessage")
-  (c-name "empathy_message_get_date_and_time")
-  (return-type "GDate*")
-  (parameters
-    '("time_t*" "timestamp")
-  )
-)
-
 (define-method should_highlight
   (of-object "EmpathyMessage")
   (c-name "empathy_message_should_highlight")
index 69a17d37a504d6ba7ea080a5d7ca97dc573a3678..9e4c95008be4cbb442d766c85910121c895bbc56 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-object ChatView
+  (in-module "Empathy")
   (c-name "EmpathyChatView")
   (gtype-id "EMPATHY_TYPE_CHAT_VIEW")
 )
   (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")
 )
 
 
 
+;; 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
   )
 )
 
+(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
+(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*")
 )
 
 
   )
 )
 
-(define-function text_buffer_tag_set
-  (c-name "empathy_text_buffer_tag_set")
-  (return-type "GtkTextTag*")
-  (parameters
-    '("GtkTextBuffer*" "buffer")
-    '("const-gchar*" "tag_name")
-    '("const-gchar*" "first_property_name")
-  )
-  (varargs #t)
-)
-
 (define-function send_file_with_file_chooser
   (c-name "empathy_send_file_with_file_chooser")
   (return-type "none")
index 782741db7bb1b0c06b3cfd07977047ddb29d6f64..60edf72379af035aa1399efba516309f95b91942 100644 (file)
@@ -29,7 +29,6 @@ headers
 #include "empathy-spell-dialog.h"
 #include "empathy-spell.h"
 #include "empathy-theme-boxes.h"
-#include "empathy-theme.h"
 #include "empathy-theme-irc.h"
 #include "empathy-theme-manager.h"
 #include "empathy-ui-utils.h"
index 962357ef16c05d301edf9f8fe22511092e17f140..685f63471fa295d1e008aa1e42428313709bb3c6 100755 (executable)
@@ -48,6 +48,7 @@ python /usr/share/pygobject/2.0/codegen/h2def.py      \
        empathy-cell-renderer-expander.h        \
        empathy-cell-renderer-text.h            \
        empathy-chat.h                          \
+       empathy-chat-text-view.h                \
        empathy-chat-view.h                     \
        empathy-conf.h                          \
        empathy-contact-dialogs.h               \
@@ -66,7 +67,6 @@ python /usr/share/pygobject/2.0/codegen/h2def.py      \
        empathy-spell.h                         \
        empathy-spell-dialog.h                  \
        empathy-theme-boxes.h                   \
-       empathy-theme.h                         \
        empathy-theme-irc.h                     \
        empathy-theme-manager.h                 \
        empathy-ui-utils.h                      \