Wed, 25 Sep 2013 19:09:00 +0530
Removed nested structs in pidgin - this caused an error in g-ir-compiler
| 11581 | 1 | /** |
| 2 | * @file gtkconvwin.h GTK+ Conversation Window API | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15931
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* pidgin |
| 11581 | 7 | * |
| 15572 | 8 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 11581 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 11 | * | |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16254
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11581 | 25 | */ |
| 15563 | 26 | #ifndef _PIDGIN_CONVERSATION_WINDOW_H_ |
| 27 | #define _PIDGIN_CONVERSATION_WINDOW_H_ | |
| 11581 | 28 | |
|
36827
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
29 | typedef struct _PidginWindowMenu PidginWindowMenu; |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
30 | typedef struct _PidginWindow PidginWindow; |
| 11581 | 31 | |
| 32 | ||
| 33 | /************************************************************************** | |
| 34 | * @name Structures | |
| 35 | **************************************************************************/ | |
| 36 | /*@{*/ | |
| 37 | ||
|
36827
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
38 | struct _PidginWindowMenu |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
39 | { |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
40 | GtkUIManager *ui; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
41 | GtkWidget *menubar; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
42 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
43 | GtkAction *view_log; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
44 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
45 | GtkAction *audio_call; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
46 | GtkAction *video_call; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
47 | GtkAction *audio_video_call; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
48 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
49 | GtkAction *send_file; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
50 | GtkAction *get_attention; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
51 | GtkAction *add_pounce; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
52 | GtkAction *get_info; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
53 | GtkAction *invite; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
54 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
55 | GtkAction *alias; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
56 | GtkAction *block; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
57 | GtkAction *unblock; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
58 | GtkAction *add; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
59 | GtkAction *remove; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
60 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
61 | GtkAction *insert_link; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
62 | GtkAction *insert_image; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
63 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
64 | GtkAction *logging; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
65 | GtkAction *sounds; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
66 | GtkAction *show_formatting_toolbar; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
67 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
68 | GtkWidget *send_to; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
69 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
70 | GtkWidget *tray; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
71 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
72 | GtkWidget *typing_icon; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
73 | |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
74 | }; |
|
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
75 | |
| 11581 | 76 | /** |
| 77 | * A GTK+ representation of a graphical window containing one or more | |
| 78 | * conversations. | |
| 79 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
80 | struct _PidginWindow |
| 11581 | 81 | { |
| 82 | GtkWidget *window; /**< The window. */ | |
| 83 | GtkWidget *notebook; /**< The notebook of conversations. */ | |
|
33165
b684cb1fd716
Fix up the tab menu in conversations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33077
diff
changeset
|
84 | GtkWidget *notebook_menu; /**< The menu on the notebook. */ |
|
b684cb1fd716
Fix up the tab menu in conversations.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33077
diff
changeset
|
85 | PidginConversation *clicked_tab; /**< The menu currently clicked. */ |
| 11581 | 86 | GList *gtkconvs; |
| 87 | ||
|
36827
6141c40def26
Removed nested structs in pidgin - this caused an error in g-ir-compiler
Ankit Vani <a@nevitus.org>
parents:
34659
diff
changeset
|
88 | PidginWindowMenu *menu; |
| 11581 | 89 | |
| 90 | /* Tab dragging stuff. */ | |
| 91 | gboolean in_drag; | |
| 92 | gboolean in_predrag; | |
| 93 | ||
| 94 | gint drag_tab; | |
| 95 | ||
| 96 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 97 | ||
| 98 | gint drag_motion_signal; | |
| 99 | gint drag_leave_signal; | |
| 100 | }; | |
| 101 | ||
| 102 | /*@}*/ | |
| 103 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
104 | G_BEGIN_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
105 | |
| 11581 | 106 | /************************************************************************** |
| 107 | * @name GTK+ Conversation Window API | |
| 108 | **************************************************************************/ | |
| 109 | /*@{*/ | |
| 110 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
111 | PidginWindow * pidgin_conv_window_new(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
112 | void pidgin_conv_window_destroy(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
113 | GList *pidgin_conv_windows_get_list(void); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
114 | void pidgin_conv_window_show(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
115 | void pidgin_conv_window_hide(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
116 | void pidgin_conv_window_raise(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
117 | void pidgin_conv_window_switch_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
118 | void pidgin_conv_window_add_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
119 | void pidgin_conv_window_remove_gtkconv(PidginWindow *win, PidginConversation *gtkconv); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
120 | PidginConversation *pidgin_conv_window_get_gtkconv_at_index(const PidginWindow *win, int index); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
121 | PidginConversation *pidgin_conv_window_get_active_gtkconv(const PidginWindow *win); |
| 15884 | 122 | PurpleConversation *pidgin_conv_window_get_active_conversation(const PidginWindow *win); |
| 123 | gboolean pidgin_conv_window_is_active_conversation(const PurpleConversation *conv); | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
124 | gboolean pidgin_conv_window_has_focus(PidginWindow *win); |
|
33273
ab309f382135
Remove deprecated call to gdk_window_at_pointer.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33165
diff
changeset
|
125 | PidginWindow *pidgin_conv_window_get_at_event(GdkEvent *event); |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
126 | GList *pidgin_conv_window_get_gtkconvs(PidginWindow *win); |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15486
diff
changeset
|
127 | guint pidgin_conv_window_get_gtkconv_count(PidginWindow *win); |
| 11581 | 128 | |
|
34659
4fc616843cb2
Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents:
33273
diff
changeset
|
129 | PidginWindow *pidgin_conv_window_first_im(void); |
|
4fc616843cb2
Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents:
33273
diff
changeset
|
130 | PidginWindow *pidgin_conv_window_last_im(void); |
|
4fc616843cb2
Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents:
33273
diff
changeset
|
131 | PidginWindow *pidgin_conv_window_first_chat(void); |
|
4fc616843cb2
Removed conversation type argument from pidgin conversation functions.
Ankit Vani <a@nevitus.org>
parents:
33273
diff
changeset
|
132 | PidginWindow *pidgin_conv_window_last_chat(void); |
| 11581 | 133 | |
| 134 | /*@}*/ | |
| 135 | ||
| 136 | /************************************************************************** | |
| 137 | * @name GTK+ Conversation Placement API | |
| 138 | **************************************************************************/ | |
| 139 | /*@{*/ | |
| 140 | ||
| 15882 | 141 | typedef void (*PidginConvPlacementFunc)(PidginConversation *); |
| 11581 | 142 | |
| 15563 | 143 | GList *pidgin_conv_placement_get_options(void); |
| 15882 | 144 | void pidgin_conv_placement_add_fnc(const char *id, const char *name, PidginConvPlacementFunc fnc); |
| 15563 | 145 | void pidgin_conv_placement_remove_fnc(const char *id); |
| 146 | const char *pidgin_conv_placement_get_name(const char *id); | |
| 15882 | 147 | PidginConvPlacementFunc pidgin_conv_placement_get_fnc(const char *id); |
| 148 | void pidgin_conv_placement_set_current_func(PidginConvPlacementFunc func); | |
| 149 | PidginConvPlacementFunc pidgin_conv_placement_get_current_func(void); | |
| 15563 | 150 | void pidgin_conv_placement_place(PidginConversation *gtkconv); |
| 11581 | 151 | |
| 152 | /*@}*/ | |
| 153 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
154 | G_END_DECLS |
|
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32696
diff
changeset
|
155 | |
| 15563 | 156 | #endif /* _PIDGIN_CONVERSATION_WINDOW_H_ */ |