]> git.0d.be Git - empathy.git/blob - python/pyempathygtk/pyempathygtk.defs
Cleanup chat objects API and request a new Text channel if account gets
[empathy.git] / python / pyempathygtk / pyempathygtk.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object AccountChooser
4   (in-module "Empathy")
5   (parent "GtkComboBox")
6   (c-name "EmpathyAccountChooser")
7   (gtype-id "EMPATHY_TYPE_ACCOUNT_CHOOSER")
8 )
9
10 (define-object CellRendererExpander
11   (in-module "Empathy")
12   (parent "GtkCellRenderer")
13   (c-name "EmpathyCellRendererExpander")
14   (gtype-id "EMPATHY_TYPE_CELL_RENDERER_EXPANDER")
15 )
16
17 (define-object CellRendererText
18   (in-module "Empathy")
19   (parent "GtkCellRendererText")
20   (c-name "EmpathyCellRendererText")
21   (gtype-id "EMPATHY_TYPE_CELL_RENDERER_TEXT")
22 )
23
24 (define-object Chat
25   (in-module "Empathy")
26   (parent "GObject")
27   (c-name "EmpathyChat")
28   (gtype-id "EMPATHY_TYPE_CHAT")
29 )
30
31 (define-object ChatView
32   (in-module "Empathy")
33   (parent "GtkTextView")
34   (c-name "EmpathyChatView")
35   (gtype-id "EMPATHY_TYPE_CHAT_VIEW")
36 )
37
38 (define-object ChatWindow
39   (in-module "Empathy")
40   (parent "GObject")
41   (c-name "EmpathyChatWindow")
42   (gtype-id "EMPATHY_TYPE_CHAT_WINDOW")
43 )
44
45 (define-object ContactListStore
46   (in-module "Empathy")
47   (parent "GtkTreeStore")
48   (c-name "EmpathyContactListStore")
49   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_STORE")
50 )
51
52 (define-object ContactListView
53   (in-module "Empathy")
54   (parent "GtkTreeView")
55   (c-name "EmpathyContactListView")
56   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_VIEW")
57 )
58
59 (define-object GroupChat
60   (in-module "Empathy")
61   (parent "EmpathyChat")
62   (c-name "EmpathyGroupChat")
63   (gtype-id "EMPATHY_TYPE_GROUP_CHAT")
64 )
65
66 (define-object PresenceChooser
67   (in-module "Empathy")
68   (parent "GtkToggleButton")
69   (c-name "EmpathyPresenceChooser")
70   (gtype-id "EMPATHY_TYPE_PRESENCE_CHOOSER")
71 )
72
73 (define-object PrivateChat
74   (in-module "Empathy")
75   (parent "EmpathyChat")
76   (c-name "EmpathyPrivateChat")
77   (gtype-id "EMPATHY_TYPE_PRIVATE_CHAT")
78 )
79
80 (define-object SmileyManager
81   (in-module "Empathy")
82   (parent "GObject")
83   (c-name "EmpathySmileyManager")
84   (gtype-id "EMPATHY_TYPE_SMILEY_MANAGER")
85 )
86
87 (define-object StatusIcon
88   (in-module "Empathy")
89   (parent "GObject")
90   (c-name "EmpathyStatusIcon")
91   (gtype-id "EMPATHY_TYPE_STATUS_ICON")
92 )
93
94 (define-object ThemeManager
95   (in-module "Empathy")
96   (parent "GObject")
97   (c-name "EmpathyThemeManager")
98   (gtype-id "EMPATHY_TYPE_THEME_MANAGER")
99 )
100
101 (define-object Spinner
102   (in-module "Ephy")
103   (parent "GtkWidget")
104   (c-name "EphySpinner")
105   (gtype-id "EPHY_TYPE_SPINNER")
106 )
107
108 ;; Enumerations and flags ...
109
110 (define-enum ContactListStoreSort
111   (in-module "Empathy")
112   (c-name "EmpathyContactListStoreSort")
113   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_STORE_SORT")
114   (values
115     '("state" "EMPATHY_CONTACT_LIST_STORE_SORT_STATE")
116     '("name" "EMPATHY_CONTACT_LIST_STORE_SORT_NAME")
117   )
118 )
119
120 (define-enum ContactListStoreCol
121   (in-module "Empathy")
122   (c-name "EmpathyContactListStoreCol")
123   (gtype-id "EMPATHY_TYPE_CONTACT_LIST_STORE_COL")
124   (values
125     '("icon-status" "COL_ICON_STATUS")
126     '("pixbuf-avatar" "COL_PIXBUF_AVATAR")
127     '("pixbuf-avatar-visible" "COL_PIXBUF_AVATAR_VISIBLE")
128     '("name" "COL_NAME")
129     '("status" "COL_STATUS")
130     '("status-visible" "COL_STATUS_VISIBLE")
131     '("contact" "COL_CONTACT")
132     '("is-group" "COL_IS_GROUP")
133     '("is-active" "COL_IS_ACTIVE")
134     '("is-online" "COL_IS_ONLINE")
135     '("is-separator" "COL_IS_SEPARATOR")
136     '("count" "COL_COUNT")
137   )
138 )
139
140 (define-enum ContactWidgetType
141   (in-module "Empathy")
142   (c-name "EmpathyContactWidgetType")
143   (gtype-id "EMPATHY_TYPE_CONTACT_WIDGET_TYPE")
144   (values
145     '("show" "CONTACT_WIDGET_TYPE_SHOW")
146     '("edit" "CONTACT_WIDGET_TYPE_EDIT")
147     '("add" "CONTACT_WIDGET_TYPE_ADD")
148     '("subscription" "CONTACT_WIDGET_TYPE_SUBSCRIPTION")
149   )
150 )
151
152
153 ;; From empathy-about-dialog.h
154
155 (define-function empathy_about_dialog_new
156   (c-name "empathy_about_dialog_new")
157   (return-type "none")
158   (parameters
159     '("GtkWindow*" "parent")
160   )
161 )
162
163
164
165 ;; From empathy-account-chooser.h
166
167 (define-function empathy_account_chooser_get_type
168   (c-name "empathy_account_chooser_get_type")
169   (return-type "GType")
170 )
171
172 (define-function empathy_account_chooser_new
173   (c-name "empathy_account_chooser_new")
174   (is-constructor-of "EmpathyAccountChooser")
175   (return-type "GtkWidget*")
176 )
177
178 (define-method get_account
179   (of-object "EmpathyAccountChooser")
180   (c-name "empathy_account_chooser_get_account")
181   (return-type "McAccount*")
182 )
183
184 (define-method set_account
185   (of-object "EmpathyAccountChooser")
186   (c-name "empathy_account_chooser_set_account")
187   (return-type "gboolean")
188   (parameters
189     '("McAccount*" "account")
190   )
191 )
192
193 (define-method get_has_all_option
194   (of-object "EmpathyAccountChooser")
195   (c-name "empathy_account_chooser_get_has_all_option")
196   (return-type "gboolean")
197 )
198
199 (define-method set_has_all_option
200   (of-object "EmpathyAccountChooser")
201   (c-name "empathy_account_chooser_set_has_all_option")
202   (return-type "none")
203   (parameters
204     '("gboolean" "has_all_option")
205   )
206 )
207
208 (define-method set_filter
209   (of-object "EmpathyAccountChooser")
210   (c-name "empathy_account_chooser_set_filter")
211   (return-type "none")
212   (parameters
213     '("EmpathyAccountChooserFilterFunc" "filter")
214     '("gpointer" "user_data")
215   )
216 )
217
218 (define-function empathy_account_chooser_filter_is_connected
219   (c-name "empathy_account_chooser_filter_is_connected")
220   (return-type "gboolean")
221   (parameters
222     '("McAccount*" "account")
223     '("gpointer" "user_data")
224   )
225 )
226
227
228
229 ;; From empathy-accounts-dialog.h
230
231 (define-function empathy_accounts_dialog_show
232   (c-name "empathy_accounts_dialog_show")
233   (return-type "GtkWidget*")
234   (parameters
235     '("GtkWindow*" "parent")
236   )
237 )
238
239
240
241 ;; From empathy-account-widget-generic.h
242
243 (define-function empathy_account_widget_generic_new
244   (c-name "empathy_account_widget_generic_new")
245   (is-constructor-of "EmpathyAccountWidgetGeneric")
246   (return-type "GtkWidget*")
247   (parameters
248     '("McAccount*" "account")
249   )
250 )
251
252
253
254 ;; From empathy-account-widget-jabber.h
255
256 (define-function empathy_account_widget_jabber_new
257   (c-name "empathy_account_widget_jabber_new")
258   (is-constructor-of "EmpathyAccountWidgetJabber")
259   (return-type "GtkWidget*")
260   (parameters
261     '("McAccount*" "account")
262   )
263 )
264
265
266
267 ;; From empathy-account-widget-msn.h
268
269 (define-function empathy_account_widget_msn_new
270   (c-name "empathy_account_widget_msn_new")
271   (is-constructor-of "EmpathyAccountWidgetMsn")
272   (return-type "GtkWidget*")
273   (parameters
274     '("McAccount*" "account")
275   )
276 )
277
278
279
280 ;; From empathy-account-widget-salut.h
281
282 (define-function empathy_account_widget_salut_new
283   (c-name "empathy_account_widget_salut_new")
284   (is-constructor-of "EmpathyAccountWidgetSalut")
285   (return-type "GtkWidget*")
286   (parameters
287     '("McAccount*" "account")
288   )
289 )
290
291
292
293 ;; From empathy-cell-renderer-expander.h
294
295 (define-function empathy_cell_renderer_expander_get_type
296   (c-name "empathy_cell_renderer_expander_get_type")
297   (return-type "GType")
298 )
299
300 (define-function empathy_cell_renderer_expander_new
301   (c-name "empathy_cell_renderer_expander_new")
302   (is-constructor-of "EmpathyCellRendererExpander")
303   (return-type "GtkCellRenderer*")
304 )
305
306
307
308 ;; From empathy-cell-renderer-text.h
309
310 (define-function empathy_cell_renderer_text_get_type
311   (c-name "empathy_cell_renderer_text_get_type")
312   (return-type "GType")
313 )
314
315 (define-function empathy_cell_renderer_text_new
316   (c-name "empathy_cell_renderer_text_new")
317   (is-constructor-of "EmpathyCellRendererText")
318   (return-type "GtkCellRenderer*")
319 )
320
321
322
323 ;; From empathy-chat.h
324
325 (define-function empathy_chat_get_type
326   (c-name "empathy_chat_get_type")
327   (return-type "GType")
328 )
329
330 (define-method get_view
331   (of-object "EmpathyChat")
332   (c-name "empathy_chat_get_view")
333   (return-type "EmpathyChatView*")
334 )
335
336 (define-method get_window
337   (of-object "EmpathyChat")
338   (c-name "empathy_chat_get_window")
339   (return-type "EmpathyChatWindow*")
340 )
341
342 (define-method set_window
343   (of-object "EmpathyChat")
344   (c-name "empathy_chat_set_window")
345   (return-type "none")
346   (parameters
347     '("EmpathyChatWindow*" "window")
348   )
349 )
350
351 (define-method present
352   (of-object "EmpathyChat")
353   (c-name "empathy_chat_present")
354   (return-type "none")
355 )
356
357 (define-method clear
358   (of-object "EmpathyChat")
359   (c-name "empathy_chat_clear")
360   (return-type "none")
361 )
362
363 (define-method scroll_down
364   (of-object "EmpathyChat")
365   (c-name "empathy_chat_scroll_down")
366   (return-type "none")
367 )
368
369 (define-method cut
370   (of-object "EmpathyChat")
371   (c-name "empathy_chat_cut")
372   (return-type "none")
373 )
374
375 (define-method copy
376   (of-object "EmpathyChat")
377   (c-name "empathy_chat_copy")
378   (return-type "none")
379 )
380
381 (define-method paste
382   (of-object "EmpathyChat")
383   (c-name "empathy_chat_paste")
384   (return-type "none")
385 )
386
387 (define-method get_name
388   (of-object "EmpathyChat")
389   (c-name "empathy_chat_get_name")
390   (return-type "const-gchar*")
391 )
392
393 (define-method get_tooltip
394   (of-object "EmpathyChat")
395   (c-name "empathy_chat_get_tooltip")
396   (return-type "gchar*")
397 )
398
399 (define-method get_status_icon_name
400   (of-object "EmpathyChat")
401   (c-name "empathy_chat_get_status_icon_name")
402   (return-type "const-gchar*")
403 )
404
405 (define-method get_widget
406   (of-object "EmpathyChat")
407   (c-name "empathy_chat_get_widget")
408   (return-type "GtkWidget*")
409 )
410
411 (define-method is_group_chat
412   (of-object "EmpathyChat")
413   (c-name "empathy_chat_is_group_chat")
414   (return-type "gboolean")
415 )
416
417 (define-method is_connected
418   (of-object "EmpathyChat")
419   (c-name "empathy_chat_is_connected")
420   (return-type "gboolean")
421 )
422
423 (define-method save_geometry
424   (of-object "EmpathyChat")
425   (c-name "empathy_chat_save_geometry")
426   (return-type "none")
427   (parameters
428     '("gint" "x")
429     '("gint" "y")
430     '("gint" "w")
431     '("gint" "h")
432   )
433 )
434
435 (define-method load_geometry
436   (of-object "EmpathyChat")
437   (c-name "empathy_chat_load_geometry")
438   (return-type "none")
439   (parameters
440     '("gint*" "x")
441     '("gint*" "y")
442     '("gint*" "w")
443     '("gint*" "h")
444   )
445 )
446
447 (define-method set_tp_chat
448   (of-object "EmpathyChat")
449   (c-name "empathy_chat_set_tp_chat")
450   (return-type "none")
451   (parameters
452     '("EmpathyTpChat*" "tp_chat")
453   )
454 )
455
456 (define-method get_id
457   (of-object "EmpathyChat")
458   (c-name "empathy_chat_get_id")
459   (return-type "const-gchar*")
460 )
461
462 (define-function empathy_chat_get_is_command
463   (c-name "empathy_chat_get_is_command")
464   (return-type "gboolean")
465   (parameters
466     '("const-gchar*" "str")
467   )
468 )
469
470 (define-method correct_word
471   (of-object "EmpathyChat")
472   (c-name "empathy_chat_correct_word")
473   (return-type "none")
474   (parameters
475     '("GtkTextIter" "start")
476     '("GtkTextIter" "end")
477     '("const-gchar*" "new_word")
478   )
479 )
480
481 (define-method should_play_sound
482   (of-object "EmpathyChat")
483   (c-name "empathy_chat_should_play_sound")
484   (return-type "gboolean")
485 )
486
487 (define-function empathy_chat_should_highlight_nick
488   (c-name "empathy_chat_should_highlight_nick")
489   (return-type "gboolean")
490   (parameters
491     '("EmpathyMessage*" "message")
492   )
493 )
494
495
496
497 ;; From empathy-chatrooms-window.h
498
499 (define-function empathy_chatrooms_window_show
500   (c-name "empathy_chatrooms_window_show")
501   (return-type "none")
502   (parameters
503     '("GtkWindow*" "parent")
504   )
505 )
506
507
508
509 ;; From empathy-chat-view.h
510
511 (define-function empathy_chat_view_get_type
512   (c-name "empathy_chat_view_get_type")
513   (return-type "GType")
514 )
515
516 (define-function empathy_chat_view_new
517   (c-name "empathy_chat_view_new")
518   (is-constructor-of "EmpathyChatView")
519   (return-type "EmpathyChatView*")
520 )
521
522 (define-method append_message
523   (of-object "EmpathyChatView")
524   (c-name "empathy_chat_view_append_message")
525   (return-type "none")
526   (parameters
527     '("EmpathyMessage*" "msg")
528   )
529 )
530
531 (define-method append_event
532   (of-object "EmpathyChatView")
533   (c-name "empathy_chat_view_append_event")
534   (return-type "none")
535   (parameters
536     '("const-gchar*" "str")
537   )
538 )
539
540 (define-method append_button
541   (of-object "EmpathyChatView")
542   (c-name "empathy_chat_view_append_button")
543   (return-type "none")
544   (parameters
545     '("const-gchar*" "message")
546     '("GtkWidget*" "button1")
547     '("GtkWidget*" "button2")
548   )
549 )
550
551 (define-method set_margin
552   (of-object "EmpathyChatView")
553   (c-name "empathy_chat_view_set_margin")
554   (return-type "none")
555   (parameters
556     '("gint" "margin")
557   )
558 )
559
560 (define-method scroll
561   (of-object "EmpathyChatView")
562   (c-name "empathy_chat_view_scroll")
563   (return-type "none")
564   (parameters
565     '("gboolean" "allow_scrolling")
566   )
567 )
568
569 (define-method scroll_down
570   (of-object "EmpathyChatView")
571   (c-name "empathy_chat_view_scroll_down")
572   (return-type "none")
573 )
574
575 (define-method get_selection_bounds
576   (of-object "EmpathyChatView")
577   (c-name "empathy_chat_view_get_selection_bounds")
578   (return-type "gboolean")
579   (parameters
580     '("GtkTextIter*" "start")
581     '("GtkTextIter*" "end")
582   )
583 )
584
585 (define-method clear
586   (of-object "EmpathyChatView")
587   (c-name "empathy_chat_view_clear")
588   (return-type "none")
589 )
590
591 (define-method find_previous
592   (of-object "EmpathyChatView")
593   (c-name "empathy_chat_view_find_previous")
594   (return-type "gboolean")
595   (parameters
596     '("const-gchar*" "search_criteria")
597     '("gboolean" "new_search")
598   )
599 )
600
601 (define-method find_next
602   (of-object "EmpathyChatView")
603   (c-name "empathy_chat_view_find_next")
604   (return-type "gboolean")
605   (parameters
606     '("const-gchar*" "search_criteria")
607     '("gboolean" "new_search")
608   )
609 )
610
611 (define-method find_abilities
612   (of-object "EmpathyChatView")
613   (c-name "empathy_chat_view_find_abilities")
614   (return-type "none")
615   (parameters
616     '("const-gchar*" "search_criteria")
617     '("gboolean*" "can_do_previous")
618     '("gboolean*" "can_do_next")
619   )
620 )
621
622 (define-method highlight
623   (of-object "EmpathyChatView")
624   (c-name "empathy_chat_view_highlight")
625   (return-type "none")
626   (parameters
627     '("const-gchar*" "text")
628   )
629 )
630
631 (define-method copy_clipboard
632   (of-object "EmpathyChatView")
633   (c-name "empathy_chat_view_copy_clipboard")
634   (return-type "none")
635 )
636
637 (define-method get_irc_style
638   (of-object "EmpathyChatView")
639   (c-name "empathy_chat_view_get_irc_style")
640   (return-type "gboolean")
641 )
642
643 (define-method set_irc_style
644   (of-object "EmpathyChatView")
645   (c-name "empathy_chat_view_set_irc_style")
646   (return-type "none")
647   (parameters
648     '("gboolean" "irc_style")
649   )
650 )
651
652 (define-method set_margin
653   (of-object "EmpathyChatView")
654   (c-name "empathy_chat_view_set_margin")
655   (return-type "none")
656   (parameters
657     '("gint" "margin")
658   )
659 )
660
661 (define-function empathy_chat_view_get_smiley_menu
662   (c-name "empathy_chat_view_get_smiley_menu")
663   (return-type "GtkWidget*")
664   (parameters
665     '("GCallback" "callback")
666     '("gpointer" "user_data")
667     '("GtkTooltips*" "tooltips")
668   )
669 )
670
671 (define-method set_is_group_chat
672   (of-object "EmpathyChatView")
673   (c-name "empathy_chat_view_set_is_group_chat")
674   (return-type "none")
675   (parameters
676     '("gboolean" "is_group_chat")
677   )
678 )
679
680
681
682 ;; From empathy-chat-window.h
683
684 (define-function empathy_chat_window_get_type
685   (c-name "empathy_chat_window_get_type")
686   (return-type "GType")
687 )
688
689 (define-function empathy_chat_window_get_default
690   (c-name "empathy_chat_window_get_default")
691   (return-type "EmpathyChatWindow*")
692 )
693
694 (define-function empathy_chat_window_new
695   (c-name "empathy_chat_window_new")
696   (is-constructor-of "EmpathyChatWindow")
697   (return-type "EmpathyChatWindow*")
698 )
699
700 (define-method get_dialog
701   (of-object "EmpathyChatWindow")
702   (c-name "empathy_chat_window_get_dialog")
703   (return-type "GtkWidget*")
704 )
705
706 (define-method add_chat
707   (of-object "EmpathyChatWindow")
708   (c-name "empathy_chat_window_add_chat")
709   (return-type "none")
710   (parameters
711     '("EmpathyChat*" "chat")
712   )
713 )
714
715 (define-method remove_chat
716   (of-object "EmpathyChatWindow")
717   (c-name "empathy_chat_window_remove_chat")
718   (return-type "none")
719   (parameters
720     '("EmpathyChat*" "chat")
721   )
722 )
723
724 (define-method move_chat
725   (of-object "EmpathyChatWindow")
726   (c-name "empathy_chat_window_move_chat")
727   (return-type "none")
728   (parameters
729     '("EmpathyChatWindow*" "new_window")
730     '("EmpathyChat*" "chat")
731   )
732 )
733
734 (define-method switch_to_chat
735   (of-object "EmpathyChatWindow")
736   (c-name "empathy_chat_window_switch_to_chat")
737   (return-type "none")
738   (parameters
739     '("EmpathyChat*" "chat")
740   )
741 )
742
743 (define-method has_focus
744   (of-object "EmpathyChatWindow")
745   (c-name "empathy_chat_window_has_focus")
746   (return-type "gboolean")
747 )
748
749 (define-function empathy_chat_window_find_chat
750   (c-name "empathy_chat_window_find_chat")
751   (return-type "EmpathyChat*")
752   (parameters
753     '("McAccount*" "account")
754     '("const-gchar*" "id")
755   )
756 )
757
758
759
760 ;; From empathy-contact-dialogs.h
761
762 (define-function empathy_subscription_dialog_show
763   (c-name "empathy_subscription_dialog_show")
764   (return-type "none")
765   (parameters
766     '("EmpathyContact*" "contact")
767     '("GtkWindow*" "parent")
768   )
769 )
770
771 (define-method information_dialog_show
772   (of-object "EmpathyContact")
773   (c-name "empathy_contact_information_dialog_show")
774   (return-type "none")
775   (parameters
776     '("GtkWindow*" "parent")
777     '("gboolean" "edit")
778   )
779 )
780
781 (define-function empathy_new_contact_dialog_show
782   (c-name "empathy_new_contact_dialog_show")
783   (return-type "none")
784   (parameters
785     '("GtkWindow*" "parent")
786   )
787 )
788
789
790
791 ;; From empathy-contact-groups.h
792
793 (define-function empathy_contact_groups_get_all
794   (c-name "empathy_contact_groups_get_all")
795   (return-type "none")
796 )
797
798 (define-function empathy_contact_group_get_expanded
799   (c-name "empathy_contact_group_get_expanded")
800   (return-type "gboolean")
801   (parameters
802     '("const-gchar*" "group")
803   )
804 )
805
806 (define-function empathy_contact_group_set_expanded
807   (c-name "empathy_contact_group_set_expanded")
808   (return-type "none")
809   (parameters
810     '("const-gchar*" "group")
811     '("gboolean" "expanded")
812   )
813 )
814
815
816
817 ;; From empathy-contact-list-store.h
818
819 (define-function empathy_contact_list_store_get_type
820   (c-name "empathy_contact_list_store_get_type")
821   (return-type "GType")
822 )
823
824 (define-method store_new
825   (of-object "EmpathyContactList")
826   (c-name "empathy_contact_list_store_new")
827   (return-type "EmpathyContactListStore*")
828 )
829
830 (define-method get_list_iface
831   (of-object "EmpathyContactListStore")
832   (c-name "empathy_contact_list_store_get_list_iface")
833   (return-type "EmpathyContactList*")
834 )
835
836 (define-method get_show_offline
837   (of-object "EmpathyContactListStore")
838   (c-name "empathy_contact_list_store_get_show_offline")
839   (return-type "gboolean")
840 )
841
842 (define-method set_show_offline
843   (of-object "EmpathyContactListStore")
844   (c-name "empathy_contact_list_store_set_show_offline")
845   (return-type "none")
846   (parameters
847     '("gboolean" "show_offline")
848   )
849 )
850
851 (define-method get_show_avatars
852   (of-object "EmpathyContactListStore")
853   (c-name "empathy_contact_list_store_get_show_avatars")
854   (return-type "gboolean")
855 )
856
857 (define-method set_show_avatars
858   (of-object "EmpathyContactListStore")
859   (c-name "empathy_contact_list_store_set_show_avatars")
860   (return-type "none")
861   (parameters
862     '("gboolean" "show_avatars")
863   )
864 )
865
866 (define-method get_is_compact
867   (of-object "EmpathyContactListStore")
868   (c-name "empathy_contact_list_store_get_is_compact")
869   (return-type "gboolean")
870 )
871
872 (define-method set_is_compact
873   (of-object "EmpathyContactListStore")
874   (c-name "empathy_contact_list_store_set_is_compact")
875   (return-type "none")
876   (parameters
877     '("gboolean" "is_compact")
878   )
879 )
880
881 (define-method get_sort_criterium
882   (of-object "EmpathyContactListStore")
883   (c-name "empathy_contact_list_store_get_sort_criterium")
884   (return-type "EmpathyContactListStoreSort")
885 )
886
887 (define-method set_sort_criterium
888   (of-object "EmpathyContactListStore")
889   (c-name "empathy_contact_list_store_set_sort_criterium")
890   (return-type "none")
891   (parameters
892     '("EmpathyContactListStoreSort" "sort_criterium")
893   )
894 )
895
896 (define-function empathy_contact_list_store_row_separator_func
897   (c-name "empathy_contact_list_store_row_separator_func")
898   (return-type "gboolean")
899   (parameters
900     '("GtkTreeModel*" "model")
901     '("GtkTreeIter*" "iter")
902     '("gpointer" "data")
903   )
904 )
905
906 (define-function empathy_contact_list_store_get_parent_group
907   (c-name "empathy_contact_list_store_get_parent_group")
908   (return-type "gchar*")
909   (parameters
910     '("GtkTreeModel*" "model")
911     '("GtkTreePath*" "path")
912     '("gboolean*" "path_is_group")
913   )
914 )
915
916 (define-function empathy_contact_list_store_search_equal_func
917   (c-name "empathy_contact_list_store_search_equal_func")
918   (return-type "gboolean")
919   (parameters
920     '("GtkTreeModel*" "model")
921     '("gint" "column")
922     '("const-gchar*" "key")
923     '("GtkTreeIter*" "iter")
924     '("gpointer" "search_data")
925   )
926 )
927
928
929
930 ;; From empathy-contact-list-view.h
931
932 (define-function empathy_contact_list_view_get_type
933   (c-name "empathy_contact_list_view_get_type")
934   (return-type "GType")
935 )
936
937 (define-function empathy_contact_list_view_new
938   (c-name "empathy_contact_list_view_new")
939   (is-constructor-of "EmpathyContactListView")
940   (return-type "EmpathyContactListView*")
941   (parameters
942     '("EmpathyContactListStore*" "store")
943   )
944 )
945
946 (define-method get_selected
947   (of-object "EmpathyContactListView")
948   (c-name "empathy_contact_list_view_get_selected")
949   (return-type "EmpathyContact*")
950 )
951
952 (define-method get_selected_group
953   (of-object "EmpathyContactListView")
954   (c-name "empathy_contact_list_view_get_selected_group")
955   (return-type "gchar*")
956 )
957
958 (define-method get_contact_menu
959   (of-object "EmpathyContactListView")
960   (c-name "empathy_contact_list_view_get_contact_menu")
961   (return-type "GtkWidget*")
962   (parameters
963     '("EmpathyContact*" "contact")
964   )
965 )
966
967 (define-method get_group_menu
968   (of-object "EmpathyContactListView")
969   (c-name "empathy_contact_list_view_get_group_menu")
970   (return-type "GtkWidget*")
971 )
972
973
974
975 ;; From empathy-contact-widget.h
976
977 (define-method widget_new
978   (of-object "EmpathyContact")
979   (c-name "empathy_contact_widget_new")
980   (return-type "GtkWidget*")
981   (parameters
982     '("EmpathyContactWidgetType" "type")
983   )
984 )
985
986 (define-function empathy_contact_widget_get_contact
987   (c-name "empathy_contact_widget_get_contact")
988   (return-type "EmpathyContact*")
989   (parameters
990     '("GtkWidget*" "widget")
991   )
992 )
993
994
995
996 ;; From empathy-geometry.h
997
998 (define-function empathy_geometry_save
999   (c-name "empathy_geometry_save")
1000   (return-type "none")
1001   (parameters
1002     '("const-gchar*" "name")
1003     '("gint" "x")
1004     '("gint" "y")
1005     '("gint" "w")
1006     '("gint" "h")
1007   )
1008 )
1009
1010 (define-function empathy_geometry_load
1011   (c-name "empathy_geometry_load")
1012   (return-type "none")
1013   (parameters
1014     '("const-gchar*" "name")
1015     '("gint*" "x")
1016     '("gint*" "y")
1017     '("gint*" "w")
1018     '("gint*" "h")
1019   )
1020 )
1021
1022
1023
1024 ;; From empathy-group-chat.h
1025
1026 (define-function empathy_group_chat_get_type
1027   (c-name "empathy_group_chat_get_type")
1028   (return-type "GType")
1029 )
1030
1031 (define-function empathy_group_chat_new
1032   (c-name "empathy_group_chat_new")
1033   (is-constructor-of "EmpathyGroupChat")
1034   (return-type "EmpathyGroupChat*")
1035   (parameters
1036     '("McAccount*" "account")
1037     '("TpChan*" "tp_chan")
1038   )
1039 )
1040
1041 (define-method get_show_contacts
1042   (of-object "EmpathyGroupChat")
1043   (c-name "empathy_group_chat_get_show_contacts")
1044   (return-type "gboolean")
1045 )
1046
1047 (define-method set_show_contacts
1048   (of-object "EmpathyGroupChat")
1049   (c-name "empathy_group_chat_set_show_contacts")
1050   (return-type "none")
1051   (parameters
1052     '("gboolean" "show")
1053   )
1054 )
1055
1056 (define-method set_topic
1057   (of-object "EmpathyGroupChat")
1058   (c-name "empathy_group_chat_set_topic")
1059   (return-type "none")
1060 )
1061
1062
1063
1064 ;; From empathy-images.h
1065
1066
1067
1068 ;; From empathy-log-window.h
1069
1070 (define-function empathy_log_window_show
1071   (c-name "empathy_log_window_show")
1072   (return-type "none")
1073   (parameters
1074     '("McAccount*" "account")
1075     '("const-gchar*" "chat_id")
1076     '("gboolean" "chatroom")
1077     '("GtkWindow*" "parent")
1078   )
1079 )
1080
1081
1082
1083 ;; From empathy-main-window.h
1084
1085 (define-function empathy_main_window_show
1086   (c-name "empathy_main_window_show")
1087   (return-type "GtkWidget*")
1088 )
1089
1090
1091
1092 ;; From empathy-new-chatroom-dialog.h
1093
1094 (define-function empathy_new_chatroom_dialog_show
1095   (c-name "empathy_new_chatroom_dialog_show")
1096   (return-type "none")
1097   (parameters
1098     '("GtkWindow*" "parent")
1099   )
1100 )
1101
1102
1103
1104 ;; From empathy-preferences.h
1105
1106 (define-function empathy_preferences_show
1107   (c-name "empathy_preferences_show")
1108   (return-type "GtkWidget*")
1109   (parameters
1110     '("GtkWindow*" "parent")
1111   )
1112 )
1113
1114
1115
1116 ;; From empathy-presence-chooser.h
1117
1118 (define-function empathy_presence_chooser_get_type
1119   (c-name "empathy_presence_chooser_get_type")
1120   (return-type "GType")
1121 )
1122
1123 (define-function empathy_presence_chooser_new
1124   (c-name "empathy_presence_chooser_new")
1125   (is-constructor-of "EmpathyPresenceChooser")
1126   (return-type "GtkWidget*")
1127 )
1128
1129 (define-function empathy_presence_chooser_create_menu
1130   (c-name "empathy_presence_chooser_create_menu")
1131   (return-type "GtkWidget*")
1132 )
1133
1134
1135
1136 ;; From empathy-private-chat.h
1137
1138 (define-function empathy_private_chat_get_type
1139   (c-name "empathy_private_chat_get_type")
1140   (return-type "GType")
1141 )
1142
1143 (define-function empathy_private_chat_new
1144   (c-name "empathy_private_chat_new")
1145   (is-constructor-of "EmpathyPrivateChat")
1146   (return-type "EmpathyPrivateChat*")
1147   (parameters
1148     '("McAccount*" "account")
1149     '("TpChan*" "tp_chan")
1150   )
1151 )
1152
1153 (define-method get_contact
1154   (of-object "EmpathyPrivateChat")
1155   (c-name "empathy_private_chat_get_contact")
1156   (return-type "EmpathyContact*")
1157 )
1158
1159
1160
1161 ;; From empathy-profile-chooser.h
1162
1163 (define-function empathy_profile_chooser_new
1164   (c-name "empathy_profile_chooser_new")
1165   (is-constructor-of "EmpathyProfileChooser")
1166   (return-type "GtkWidget*")
1167 )
1168
1169 (define-function empathy_profile_chooser_get_selected
1170   (c-name "empathy_profile_chooser_get_selected")
1171   (return-type "McProfile*")
1172   (parameters
1173     '("GtkWidget*" "widget")
1174   )
1175 )
1176
1177
1178
1179 ;; From empathy-smiley-manager.h
1180
1181 (define-function empathy_smiley_manager_get_type
1182   (c-name "empathy_smiley_manager_get_type")
1183   (return-type "GType")
1184 )
1185
1186 (define-function empathy_smiley_manager_new
1187   (c-name "empathy_smiley_manager_new")
1188   (is-constructor-of "EmpathySmileyManager")
1189   (return-type "EmpathySmileyManager*")
1190 )
1191
1192 (define-method load
1193   (of-object "EmpathySmileyManager")
1194   (c-name "empathy_smiley_manager_load")
1195   (return-type "none")
1196 )
1197
1198 (define-method add
1199   (of-object "EmpathySmileyManager")
1200   (c-name "empathy_smiley_manager_add")
1201   (return-type "none")
1202   (parameters
1203     '("const-gchar*" "icon_name")
1204     '("const-gchar*" "first_str")
1205   )
1206   (varargs #t)
1207 )
1208
1209 (define-method add_from_pixbuf
1210   (of-object "EmpathySmileyManager")
1211   (c-name "empathy_smiley_manager_add_from_pixbuf")
1212   (return-type "none")
1213   (parameters
1214     '("GdkPixbuf*" "smiley")
1215     '("const-gchar*" "first_str")
1216   )
1217   (varargs #t)
1218 )
1219
1220 (define-method get_all
1221   (of-object "EmpathySmileyManager")
1222   (c-name "empathy_smiley_manager_get_all")
1223   (return-type "GSList*")
1224 )
1225
1226 (define-method parse
1227   (of-object "EmpathySmileyManager")
1228   (c-name "empathy_smiley_manager_parse")
1229   (return-type "GSList*")
1230   (parameters
1231     '("const-gchar*" "text")
1232   )
1233 )
1234
1235 (define-method free
1236   (of-object "EmpathySmiley")
1237   (c-name "empathy_smiley_free")
1238   (return-type "none")
1239 )
1240
1241
1242
1243 ;; From empathy-spell-dialog.h
1244
1245 (define-function empathy_spell_dialog_show
1246   (c-name "empathy_spell_dialog_show")
1247   (return-type "none")
1248   (parameters
1249     '("EmpathyChat*" "chat")
1250     '("GtkTextIter" "start")
1251     '("GtkTextIter" "end")
1252     '("const-gchar*" "word")
1253   )
1254 )
1255
1256
1257
1258 ;; From empathy-spell.h
1259
1260 (define-function empathy_spell_supported
1261   (c-name "empathy_spell_supported")
1262   (return-type "gboolean")
1263 )
1264
1265 (define-function empathy_spell_get_language_name
1266   (c-name "empathy_spell_get_language_name")
1267   (return-type "const-gchar*")
1268   (parameters
1269     '("const-gchar*" "code")
1270   )
1271 )
1272
1273 (define-function empathy_spell_get_language_codes
1274   (c-name "empathy_spell_get_language_codes")
1275   (return-type "GList*")
1276 )
1277
1278 (define-function empathy_spell_free_language_codes
1279   (c-name "empathy_spell_free_language_codes")
1280   (return-type "none")
1281   (parameters
1282     '("GList*" "codes")
1283   )
1284 )
1285
1286 (define-function empathy_spell_check
1287   (c-name "empathy_spell_check")
1288   (return-type "gboolean")
1289   (parameters
1290     '("const-gchar*" "word")
1291   )
1292 )
1293
1294 (define-function empathy_spell_get_suggestions
1295   (c-name "empathy_spell_get_suggestions")
1296   (return-type "GList*")
1297   (parameters
1298     '("const-gchar*" "word")
1299   )
1300 )
1301
1302 (define-function empathy_spell_free_suggestions
1303   (c-name "empathy_spell_free_suggestions")
1304   (return-type "none")
1305   (parameters
1306     '("GList*" "suggestions")
1307   )
1308 )
1309
1310
1311
1312 ;; From empathy-status-icon.h
1313
1314 (define-function empathy_status_icon_get_type
1315   (c-name "empathy_status_icon_get_type")
1316   (return-type "GType")
1317 )
1318
1319 (define-function empathy_status_icon_new
1320   (c-name "empathy_status_icon_new")
1321   (is-constructor-of "EmpathyStatusIcon")
1322   (return-type "EmpathyStatusIcon*")
1323   (parameters
1324     '("GtkWindow*" "window")
1325   )
1326 )
1327
1328
1329
1330 ;; From empathy-status-presets.h
1331
1332 (define-function empathy_status_presets_get_all
1333   (c-name "empathy_status_presets_get_all")
1334   (return-type "none")
1335 )
1336
1337 (define-function empathy_status_presets_get
1338   (c-name "empathy_status_presets_get")
1339   (return-type "GList*")
1340   (parameters
1341     '("McPresence" "state")
1342     '("gint" "max_number")
1343   )
1344 )
1345
1346 (define-function empathy_status_presets_set_last
1347   (c-name "empathy_status_presets_set_last")
1348   (return-type "none")
1349   (parameters
1350     '("McPresence" "state")
1351     '("const-gchar*" "status")
1352   )
1353 )
1354
1355 (define-function empathy_status_presets_remove
1356   (c-name "empathy_status_presets_remove")
1357   (return-type "none")
1358   (parameters
1359     '("McPresence" "state")
1360     '("const-gchar*" "status")
1361   )
1362 )
1363
1364 (define-function empathy_status_presets_reset
1365   (c-name "empathy_status_presets_reset")
1366   (return-type "none")
1367 )
1368
1369 (define-function empathy_status_presets_get_default_state
1370   (c-name "empathy_status_presets_get_default_state")
1371   (return-type "McPresence")
1372 )
1373
1374 (define-function empathy_status_presets_get_default_status
1375   (c-name "empathy_status_presets_get_default_status")
1376   (return-type "const-gchar*")
1377 )
1378
1379 (define-function empathy_status_presets_set_default
1380   (c-name "empathy_status_presets_set_default")
1381   (return-type "none")
1382   (parameters
1383     '("McPresence" "state")
1384     '("const-gchar*" "status")
1385   )
1386 )
1387
1388 (define-function empathy_status_presets_clear_default
1389   (c-name "empathy_status_presets_clear_default")
1390   (return-type "none")
1391 )
1392
1393
1394
1395 ;; From empathy-theme-manager.h
1396
1397 (define-function empathy_theme_manager_get_type
1398   (c-name "empathy_theme_manager_get_type")
1399   (return-type "GType")
1400 )
1401
1402 (define-function empathy_theme_manager_get
1403   (c-name "empathy_theme_manager_get")
1404   (return-type "EmpathyThemeManager*")
1405 )
1406
1407 (define-function empathy_theme_manager_get_themes
1408   (c-name "empathy_theme_manager_get_themes")
1409   (return-type "const-gchar**")
1410 )
1411
1412 (define-method apply
1413   (of-object "EmpathyThemeManager")
1414   (c-name "empathy_theme_manager_apply")
1415   (return-type "none")
1416   (parameters
1417     '("EmpathyChatView*" "view")
1418     '("const-gchar*" "theme")
1419   )
1420 )
1421
1422 (define-method apply_saved
1423   (of-object "EmpathyThemeManager")
1424   (c-name "empathy_theme_manager_apply_saved")
1425   (return-type "none")
1426   (parameters
1427     '("EmpathyChatView*" "view")
1428   )
1429 )
1430
1431 (define-method update_show_avatars
1432   (of-object "EmpathyThemeManager")
1433   (c-name "empathy_theme_manager_update_show_avatars")
1434   (return-type "none")
1435   (parameters
1436     '("EmpathyChatView*" "view")
1437     '("gboolean" "show")
1438   )
1439 )
1440
1441
1442
1443 ;; From empathy-ui-utils.h
1444
1445 (define-function empathy_glade_get_file_simple
1446   (c-name "empathy_glade_get_file_simple")
1447   (return-type "none")
1448   (parameters
1449     '("const-gchar*" "filename")
1450     '("const-gchar*" "root")
1451     '("const-gchar*" "domain")
1452     '("const-gchar*" "first_required_widget")
1453   )
1454   (varargs #t)
1455 )
1456
1457 (define-function empathy_glade_get_file
1458   (c-name "empathy_glade_get_file")
1459   (return-type "GladeXML*")
1460   (parameters
1461     '("const-gchar*" "filename")
1462     '("const-gchar*" "root")
1463     '("const-gchar*" "domain")
1464     '("const-gchar*" "first_required_widget")
1465   )
1466   (varargs #t)
1467 )
1468
1469 (define-function empathy_glade_connect
1470   (c-name "empathy_glade_connect")
1471   (return-type "none")
1472   (parameters
1473     '("GladeXML*" "gui")
1474     '("gpointer" "user_data")
1475     '("gchar*" "first_widget")
1476   )
1477   (varargs #t)
1478 )
1479
1480 (define-function empathy_glade_setup_size_group
1481   (c-name "empathy_glade_setup_size_group")
1482   (return-type "none")
1483   (parameters
1484     '("GladeXML*" "gui")
1485     '("GtkSizeGroupMode" "mode")
1486     '("gchar*" "first_widget")
1487   )
1488   (varargs #t)
1489 )
1490
1491 (define-function empathy_pixbuf_from_icon_name
1492   (c-name "empathy_pixbuf_from_icon_name")
1493   (return-type "GdkPixbuf*")
1494   (parameters
1495     '("const-gchar*" "icon_name")
1496     '("GtkIconSize" "icon_size")
1497   )
1498 )
1499
1500 (define-function empathy_icon_name_from_account
1501   (c-name "empathy_icon_name_from_account")
1502   (return-type "const-gchar*")
1503   (parameters
1504     '("McAccount*" "account")
1505   )
1506 )
1507
1508 (define-function empathy_icon_name_for_presence_state
1509   (c-name "empathy_icon_name_for_presence_state")
1510   (return-type "const-gchar*")
1511   (parameters
1512     '("McPresence" "state")
1513   )
1514 )
1515
1516 (define-function empathy_icon_name_for_presence
1517   (c-name "empathy_icon_name_for_presence")
1518   (return-type "const-gchar*")
1519   (parameters
1520     '("EmpathyPresence*" "presence")
1521   )
1522 )
1523
1524 (define-function empathy_icon_name_for_contact
1525   (c-name "empathy_icon_name_for_contact")
1526   (return-type "const-gchar*")
1527   (parameters
1528     '("EmpathyContact*" "contact")
1529   )
1530 )
1531
1532 (define-function empathy_pixbuf_from_avatar_scaled
1533   (c-name "empathy_pixbuf_from_avatar_scaled")
1534   (return-type "GdkPixbuf*")
1535   (parameters
1536     '("EmpathyAvatar*" "avatar")
1537     '("gint" "width")
1538     '("gint" "height")
1539   )
1540 )
1541
1542 (define-function empathy_pixbuf_avatar_from_contact_scaled
1543   (c-name "empathy_pixbuf_avatar_from_contact_scaled")
1544   (return-type "GdkPixbuf*")
1545   (parameters
1546     '("EmpathyContact*" "contact")
1547     '("gint" "width")
1548     '("gint" "height")
1549   )
1550 )
1551
1552 (define-function empathy_text_iter_forward_search
1553   (c-name "empathy_text_iter_forward_search")
1554   (return-type "gboolean")
1555   (parameters
1556     '("const-GtkTextIter*" "iter")
1557     '("const-gchar*" "str")
1558     '("GtkTextIter*" "match_start")
1559     '("GtkTextIter*" "match_end")
1560     '("const-GtkTextIter*" "limit")
1561   )
1562 )
1563
1564 (define-function empathy_text_iter_backward_search
1565   (c-name "empathy_text_iter_backward_search")
1566   (return-type "gboolean")
1567   (parameters
1568     '("const-GtkTextIter*" "iter")
1569     '("const-gchar*" "str")
1570     '("GtkTextIter*" "match_start")
1571     '("GtkTextIter*" "match_end")
1572     '("const-GtkTextIter*" "limit")
1573   )
1574 )
1575
1576 (define-function empathy_window_get_is_visible
1577   (c-name "empathy_window_get_is_visible")
1578   (return-type "gboolean")
1579   (parameters
1580     '("GtkWindow*" "window")
1581   )
1582 )
1583
1584 (define-function empathy_window_present
1585   (c-name "empathy_window_present")
1586   (return-type "none")
1587   (parameters
1588     '("GtkWindow*" "window")
1589     '("gboolean" "steal_focus")
1590   )
1591 )
1592
1593 (define-function empathy_window_iconify
1594   (c-name "empathy_window_iconify")
1595   (return-type "none")
1596   (parameters
1597     '("GtkWindow*" "window")
1598     '("GtkStatusIcon*" "status_icon")
1599   )
1600 )
1601
1602 (define-function empathy_get_toplevel_window
1603   (c-name "empathy_get_toplevel_window")
1604   (return-type "GtkWindow*")
1605   (parameters
1606     '("GtkWidget*" "widget")
1607   )
1608 )
1609
1610 (define-function empathy_url_show
1611   (c-name "empathy_url_show")
1612   (return-type "none")
1613   (parameters
1614     '("const-char*" "url")
1615   )
1616 )
1617
1618 (define-function empathy_toggle_button_set_state_quietly
1619   (c-name "empathy_toggle_button_set_state_quietly")
1620   (return-type "none")
1621   (parameters
1622     '("GtkWidget*" "widget")
1623     '("GCallback" "callback")
1624     '("gpointer" "user_data")
1625     '("gboolean" "active")
1626   )
1627 )
1628
1629 (define-function empathy_link_button_new
1630   (c-name "empathy_link_button_new")
1631   (is-constructor-of "EmpathyLinkButton")
1632   (return-type "GtkWidget*")
1633   (parameters
1634     '("const-gchar*" "url")
1635     '("const-gchar*" "title")
1636   )
1637 )
1638
1639
1640
1641 ;; From ephy-spinner.h
1642
1643 (define-function ephy_spinner_get_type
1644   (c-name "ephy_spinner_get_type")
1645   (return-type "GType")
1646 )
1647
1648 (define-function ephy_spinner_new
1649   (c-name "ephy_spinner_new")
1650   (is-constructor-of "EphySpinner")
1651   (return-type "GtkWidget*")
1652 )
1653
1654 (define-method start
1655   (of-object "EphySpinner")
1656   (c-name "ephy_spinner_start")
1657   (return-type "none")
1658 )
1659
1660 (define-method stop
1661   (of-object "EphySpinner")
1662   (c-name "ephy_spinner_stop")
1663   (return-type "none")
1664 )
1665
1666 (define-method set_size
1667   (of-object "EphySpinner")
1668   (c-name "ephy_spinner_set_size")
1669   (return-type "none")
1670   (parameters
1671     '("GtkIconSize" "size")
1672   )
1673 )
1674
1675