Wed, 08 Sep 2004 03:59:17 +0000
[gaim-migrate @ 10887]
Dave West fixed a few things from his patch to remove the
default action for certain dialogs that pop-up
committer: Mark Doliner <markdoliner@pidgin.im>
| 4359 | 1 | /** |
| 2 | * @file gtkconv.h GTK+ Conversation API | |
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
4736
diff
changeset
|
3 | * @ingroup gtkui |
| 4359 | 4 | * |
| 5 | * gaim | |
| 6 | * | |
| 8046 | 7 | * Gaim is the legal property of its developers, whose names are too numerous |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
|
7326
599c9e8c9da4
[gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents:
7295
diff
changeset
|
10 | * |
| 4359 | 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
25 | #ifndef _GAIM_GTKCONVERSATION_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
26 | #define _GAIM_GTKCONVERSATION_H_ |
| 4359 | 27 | |
| 9791 | 28 | #include "gtkgaim.h" |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
29 | |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
30 | #include "conversation.h" |
|
9709
2e73f176cc80
[gaim-migrate @ 10570]
Mark Doliner <markdoliner@pidgin.im>
parents:
9687
diff
changeset
|
31 | |
|
9498
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
32 | enum { |
|
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
33 | CHAT_USERS_ICON_COLUMN, |
|
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
34 | CHAT_USERS_NAME_COLUMN, |
|
9554
1609ba3612c3
[gaim-migrate @ 10387]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9508
diff
changeset
|
35 | CHAT_USERS_FLAGS_COLUMN, |
|
9498
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
36 | CHAT_USERS_COLUMNS |
|
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
37 | }; |
|
432fc90c7e22
[gaim-migrate @ 10324]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9497
diff
changeset
|
38 | |
| 4359 | 39 | /************************************************************************** |
| 40 | * @name Structures | |
| 41 | **************************************************************************/ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
42 | /*@{*/ |
| 4359 | 43 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
44 | typedef struct _GaimGtkWindow GaimGtkWindow; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
45 | typedef struct _GaimGtkImPane GaimGtkImPane; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
46 | typedef struct _GaimGtkChatPane GaimGtkChatPane; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
47 | typedef struct _GaimGtkConversation GaimGtkConversation; |
| 4359 | 48 | |
| 49 | /** | |
| 50 | * A GTK+ representation of a graphical window containing one or more | |
| 51 | * conversations. | |
| 52 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
53 | struct _GaimGtkWindow |
| 4359 | 54 | { |
| 55 | GtkWidget *window; /**< The window. */ | |
| 56 | GtkWidget *notebook; /**< The notebook of conversations. */ | |
| 57 | ||
| 58 | struct | |
| 59 | { | |
| 60 | GtkWidget *menubar; | |
| 61 | ||
|
5167
e6674b684b55
[gaim-migrate @ 5531]
Mark Doliner <markdoliner@pidgin.im>
parents:
5106
diff
changeset
|
62 | GtkWidget *view_log; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
63 | |
|
9468
f2108802d596
[gaim-migrate @ 10293]
Daniel Atallah <datallah@pidgin.im>
parents:
9339
diff
changeset
|
64 | GtkWidget *send_file; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
65 | GtkWidget *add_pounce; |
|
7887
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
66 | GtkWidget *get_info; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
67 | GtkWidget *warn; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
68 | GtkWidget *invite; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
69 | |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
70 | GtkWidget *alias; |
|
7887
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
71 | GtkWidget *block; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
72 | GtkWidget *add; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
73 | GtkWidget *remove; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
74 | |
|
7859
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
75 | GtkWidget *insert_link; |
|
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
76 | GtkWidget *insert_image; |
|
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
77 | |
| 4359 | 78 | GtkWidget *logging; |
| 79 | GtkWidget *sounds; | |
|
7326
599c9e8c9da4
[gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents:
7295
diff
changeset
|
80 | GtkWidget *show_formatting_toolbar; |
|
9188
a399de5ce807
[gaim-migrate @ 9983]
Mark Doliner <markdoliner@pidgin.im>
parents:
9025
diff
changeset
|
81 | GtkWidget *show_timestamps; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
82 | |
| 4359 | 83 | GtkWidget *send_as; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
84 | |
| 4736 | 85 | GtkWidget *typing_icon; |
| 4359 | 86 | |
| 4630 | 87 | GtkItemFactory *item_factory; |
| 88 | ||
| 4359 | 89 | } menu; |
| 90 | ||
| 91 | /* Tab dragging stuff. */ | |
| 92 | gboolean in_drag; | |
| 93 | gboolean in_predrag; | |
| 94 | ||
| 95 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 96 | ||
| 97 | gint drag_motion_signal; | |
| 98 | gint drag_leave_signal; | |
| 99 | }; | |
| 100 | ||
| 101 | /** | |
|
7820
06fc9f66d2cb
[gaim-migrate @ 8472]
Mark Doliner <markdoliner@pidgin.im>
parents:
7650
diff
changeset
|
102 | * A GTK+ Instant Message pane. |
| 4359 | 103 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
104 | struct _GaimGtkImPane |
| 4359 | 105 | { |
| 106 | GtkWidget *warn; | |
| 107 | GtkWidget *block; | |
|
9468
f2108802d596
[gaim-migrate @ 10293]
Daniel Atallah <datallah@pidgin.im>
parents:
9339
diff
changeset
|
108 | GtkWidget *send_file; |
| 4359 | 109 | GtkWidget *sep1; |
| 110 | GtkWidget *sep2; | |
| 111 | GtkWidget *check; | |
| 112 | GtkWidget *progress; | |
| 113 | ||
| 114 | gboolean a_virgin; | |
| 115 | ||
| 116 | /* Buddy icon stuff */ | |
| 9885 | 117 | GtkWidget *icon_container; |
| 4359 | 118 | GtkWidget *icon; |
| 9687 | 119 | gboolean show_icon; |
| 8189 | 120 | gboolean animate; |
| 4359 | 121 | GdkPixbufAnimation *anim; |
| 122 | GdkPixbufAnimationIter *iter; | |
| 123 | guint32 icon_timer; | |
| 124 | }; | |
| 125 | ||
| 126 | /** | |
| 127 | * GTK+ Chat panes. | |
| 128 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
129 | struct _GaimGtkChatPane |
| 4359 | 130 | { |
| 131 | GtkWidget *count; | |
| 132 | GtkWidget *list; | |
| 133 | GtkWidget *invite; | |
| 134 | GtkWidget *topic_text; | |
|
7996
c3a4e8b9dfd9
[gaim-migrate @ 8673]
Robert McQueen <robot101@debian.org>
parents:
7930
diff
changeset
|
135 | GtkWidget *sep; |
| 4359 | 136 | }; |
| 137 | ||
| 138 | /** | |
| 139 | * A GTK+ conversation pane. | |
| 140 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
141 | struct _GaimGtkConversation |
| 4359 | 142 | { |
| 143 | gboolean make_sound; | |
|
7326
599c9e8c9da4
[gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents:
7295
diff
changeset
|
144 | gboolean show_formatting_toolbar; |
|
9188
a399de5ce807
[gaim-migrate @ 9983]
Mark Doliner <markdoliner@pidgin.im>
parents:
9025
diff
changeset
|
145 | gboolean show_timestamps; |
| 4359 | 146 | |
| 147 | GtkTooltips *tooltips; | |
| 148 | ||
| 149 | GtkWidget *tab_cont; | |
| 150 | GtkWidget *tabby; | |
| 6771 | 151 | GtkWidget *menu_tabby; |
| 4359 | 152 | |
| 153 | GtkWidget *imhtml; | |
| 154 | GtkTextBuffer *entry_buffer; | |
| 155 | GtkWidget *entry; | |
| 156 | ||
|
7930
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
157 | GtkWidget *add; |
|
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
158 | GtkWidget *remove; |
| 4359 | 159 | GtkWidget *info; |
|
7930
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
160 | GtkWidget *send; |
|
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
161 | GtkWidget *close; /* "x" on the tab */ |
|
6392
3db2b3c7b5aa
[gaim-migrate @ 6897]
Christian Hammond <chipx86@chipx86.com>
parents:
5908
diff
changeset
|
162 | GtkWidget *icon; |
| 4359 | 163 | GtkWidget *tab_label; |
| 6771 | 164 | GtkWidget *menu_icon; |
| 165 | GtkWidget *menu_label; | |
| 4359 | 166 | GtkSizeGroup *sg; |
| 167 | ||
| 168 | GtkWidget *bbox; | |
| 169 | GtkWidget *sw; | |
| 9332 | 170 | GtkWidget *lower_hbox; |
| 4359 | 171 | |
| 8317 | 172 | GtkWidget *toolbar; |
| 4359 | 173 | |
| 174 | struct | |
| 175 | { | |
| 5106 | 176 | GtkWidget *image; |
| 7295 | 177 | GtkWidget *search; |
| 4359 | 178 | |
| 179 | } dialogs; | |
| 180 | ||
| 181 | union | |
| 182 | { | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
183 | GaimGtkImPane *im; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
184 | GaimGtkChatPane *chat; |
| 4359 | 185 | |
| 186 | } u; | |
| 187 | }; | |
| 188 | ||
| 189 | #define GAIM_GTK_WINDOW(win) \ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
190 | ((GaimGtkWindow *)(win)->ui_data) |
| 4359 | 191 | |
| 192 | #define GAIM_GTK_CONVERSATION(conv) \ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
193 | ((GaimGtkConversation *)(conv)->ui_data) |
| 4359 | 194 | |
|
4384
32592d368209
[gaim-migrate @ 4650]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
195 | #define GAIM_IS_GTK_WINDOW(win) \ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
196 | (gaim_conv_window_get_ui_ops(win) == gaim_gtk_conversations_get_win_ui_ops()) |
|
4384
32592d368209
[gaim-migrate @ 4650]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
197 | |
|
32592d368209
[gaim-migrate @ 4650]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
198 | #define GAIM_IS_GTK_CONVERSATION(conv) \ |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
199 | (gaim_conversation_get_ui_ops(conv) == \ |
|
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
200 | gaim_gtk_conversations_get_conv_ui_ops()) |
| 4359 | 201 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
202 | /*@}*/ |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
203 | |
| 4359 | 204 | /************************************************************************** |
| 205 | * @name GTK+ Conversation API | |
| 206 | **************************************************************************/ | |
|
5673
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
207 | /*@{*/ |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
208 | |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
209 | /** |
| 4359 | 210 | * Returns the UI operations structure for GTK windows. |
| 211 | * | |
| 212 | * @return The GTK window operations structure. | |
| 213 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
214 | GaimConvWindowUiOps *gaim_gtk_conversations_get_win_ui_ops(void); |
| 4359 | 215 | |
| 216 | /** | |
| 217 | * Returns the UI operations structure for GTK conversations. | |
| 218 | * | |
| 219 | * @return The GTK conversation operations structure. | |
| 220 | */ | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
221 | GaimConversationUiOps *gaim_gtk_conversations_get_conv_ui_ops(void); |
| 4359 | 222 | |
| 223 | /** | |
| 224 | * Updates the buddy icon on a conversation. | |
| 225 | * | |
| 226 | * @param conv The conversation. | |
| 227 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
228 | void gaim_gtkconv_update_buddy_icon(GaimConversation *conv); |
| 4359 | 229 | |
| 230 | /** | |
| 231 | * Updates the tab positions on all conversation windows to reflect any | |
| 232 | * changed preferences. | |
| 233 | */ | |
| 234 | void gaim_gtkconv_update_tabs(void); | |
| 235 | ||
| 236 | /** | |
| 237 | * Updates the button style on chat windows to reflect any | |
| 238 | * changed preferences. | |
| 239 | */ | |
| 240 | void gaim_gtkconv_update_chat_button_style(); | |
| 241 | ||
| 242 | /** | |
| 243 | * Updates the button style on IM windows to reflect any | |
| 244 | * changed preferences. | |
| 245 | */ | |
| 246 | void gaim_gtkconv_update_im_button_style(); | |
| 247 | ||
| 248 | /** | |
| 249 | * Updates conversation buttons by protocol. | |
| 250 | * | |
| 251 | * @param conv The conversation. | |
| 252 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
253 | void gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv); |
| 4359 | 254 | |
| 255 | /** | |
|
9759
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
256 | * Creates a conversation button |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
257 | * |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
258 | * @param icon The stock icon name. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
259 | * @param text The text for the button. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
260 | * @param tooltip The tooltip text. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
261 | * @param tooltips The group of tooltips. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
262 | * @param callback A function to call when the button is clicked. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
263 | * @param data Data to pass to the callback. |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
264 | * |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
265 | * @return The button |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
266 | */ |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
267 | GtkWidget *gaim_gtkconv_button_new(const char *icon, const char *text, |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
268 | const char *tooltip, GtkTooltips *tooltips, |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
269 | void *callback, void *data); |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
270 | |
|
10b4612b885a
[gaim-migrate @ 10626]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
9718
diff
changeset
|
271 | /** |
| 4359 | 272 | * Returns the window at the specified X, Y location. |
| 273 | * | |
| 274 | * If the window is not a GTK+ window, @c NULL is returned. | |
| 275 | * | |
| 276 | * @param x The X coordinate. | |
| 277 | * @param y The Y coordinate. | |
| 278 | * | |
| 279 | * @return The GTK+ window at the location, if it exists, or @c NULL otherwise. | |
| 280 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
281 | GaimConvWindow *gaim_gtkwin_get_at_xy(int x, int y); |
| 4359 | 282 | |
| 283 | /** | |
| 284 | * Returns the index of the tab at the specified X, Y location in a notebook. | |
| 285 | * | |
| 286 | * @param win The GTK+ window containing the notebook. | |
| 287 | * @param x The X coordinate. | |
| 288 | * @param y The Y coordinate. | |
| 289 | * | |
| 290 | * @return The index of the tab at the location. | |
| 291 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
292 | int gaim_gtkconv_get_tab_at_xy(GaimConvWindow *win, int x, int y); |
| 4359 | 293 | |
| 294 | /** | |
| 295 | * Returns the index of the destination tab at the | |
| 296 | * specified X, Y location in a notebook. | |
| 297 | * | |
| 298 | * This is used for drag-and-drop functions when the tab at the index | |
| 299 | * is a destination tab. | |
| 300 | * | |
| 301 | * @param win The GTK+ window containing the notebook. | |
| 302 | * @param x The X coordinate. | |
| 303 | * @param y The Y coordinate. | |
| 304 | * | |
| 305 | * @return The index of the tab at the location. | |
| 306 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
307 | int gaim_gtkconv_get_dest_tab_at_xy(GaimConvWindow *win, int x, int y); |
| 4359 | 308 | |
|
5673
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
309 | /*@}*/ |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
310 | |
| 8582 | 311 | /**************************************************************************/ |
| 312 | /** @name GTK+ Conversations Subsystem */ | |
| 313 | /**************************************************************************/ | |
| 314 | /*@{*/ | |
| 315 | ||
| 316 | /** | |
| 317 | * Returns the gtk conversations subsystem handle. | |
| 318 | * | |
| 319 | * @return The conversations subsystem handle. | |
| 320 | */ | |
| 321 | void *gaim_gtk_conversations_get_handle(void); | |
| 322 | ||
| 323 | /** | |
| 324 | * Initializes the GTK+ conversations subsystem. | |
| 325 | */ | |
| 326 | void gaim_gtk_conversations_init(void); | |
| 327 | ||
| 328 | /** | |
| 329 | * Uninitialized the GTK+ conversation subsystem. | |
| 330 | */ | |
| 331 | void gaim_gtk_conversations_uninit(void); | |
| 332 | ||
| 333 | /*@}*/ | |
| 334 | ||
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
335 | #endif /* _GAIM_GTKCONVERSATION_H_ */ |