Fri, 19 Mar 2004 17:34:33 +0000
[gaim-migrate @ 9206]
" You can once again show how evil you are by typing >:)
and getting it to render in spite of escaped HTML.
This patch changes around the parsing code to catch
smileys before eating just any HTML entity we bump into
on the street. We try to catch entities at the
beginning of smileys first, and if we're sure they're
not smileys, then we eat them for breakfast. The patch
also deals with eating any subsequent entities that may
appear in any smileys (like :-&) so we don't end up
with trailing leftovers. This patch description is
making me hungry.
FYI, I know this gtkimhtml is supposed to be not gaim
dependent, but both the gaim_* functions that were
preexisting and newly used in gtkimhtml code are all
non-gaim dependent utility functions from util.c, so I felt
their use was justified and acceptable." --Kevin Stange
committer: Luke Schierer <lschiere@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 | */ | |
| 25 | ||
| 26 | #ifndef _GAIM_GTK_CONVERSATION_H_ | |
| 27 | #define _GAIM_GTK_CONVERSATION_H_ | |
| 28 | ||
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
29 | #include "conversation.h" |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
30 | |
| 4359 | 31 | /************************************************************************** |
| 32 | * @name Structures | |
| 33 | **************************************************************************/ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
34 | /*@{*/ |
| 4359 | 35 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
36 | typedef struct _GaimGtkWindow GaimGtkWindow; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
37 | typedef struct _GaimGtkImPane GaimGtkImPane; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
38 | typedef struct _GaimGtkChatPane GaimGtkChatPane; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
39 | typedef struct _GaimGtkConversation GaimGtkConversation; |
| 4359 | 40 | |
| 41 | /** | |
| 42 | * A GTK+ representation of a graphical window containing one or more | |
| 43 | * conversations. | |
| 44 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
45 | struct _GaimGtkWindow |
| 4359 | 46 | { |
| 47 | GtkWidget *window; /**< The window. */ | |
| 48 | GtkWidget *notebook; /**< The notebook of conversations. */ | |
| 49 | ||
| 50 | struct | |
| 51 | { | |
| 52 | GtkWidget *menubar; | |
| 53 | ||
|
5167
e6674b684b55
[gaim-migrate @ 5531]
Mark Doliner <markdoliner@pidgin.im>
parents:
5106
diff
changeset
|
54 | GtkWidget *view_log; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
55 | |
|
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
56 | GtkWidget *add_pounce; |
|
7887
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
57 | GtkWidget *get_info; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
58 | GtkWidget *warn; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
59 | GtkWidget *invite; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
60 | |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
61 | GtkWidget *alias; |
|
7887
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
62 | GtkWidget *block; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
63 | GtkWidget *add; |
|
4b2925a88897
[gaim-migrate @ 8545]
Mark Doliner <markdoliner@pidgin.im>
parents:
7859
diff
changeset
|
64 | GtkWidget *remove; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
65 | |
|
7859
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
66 | GtkWidget *insert_link; |
|
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
67 | GtkWidget *insert_image; |
|
b0f646df7125
[gaim-migrate @ 8513]
Mark Doliner <markdoliner@pidgin.im>
parents:
7820
diff
changeset
|
68 | |
| 4359 | 69 | GtkWidget *logging; |
| 70 | GtkWidget *sounds; | |
|
7326
599c9e8c9da4
[gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents:
7295
diff
changeset
|
71 | GtkWidget *show_formatting_toolbar; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
72 | |
| 4359 | 73 | GtkWidget *send_as; |
|
5908
47ad3b3798ac
[gaim-migrate @ 6340]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
74 | |
| 4736 | 75 | GtkWidget *typing_icon; |
| 4359 | 76 | |
| 4630 | 77 | GtkItemFactory *item_factory; |
| 78 | ||
| 4359 | 79 | } menu; |
| 80 | ||
| 81 | /* Tab dragging stuff. */ | |
| 82 | gboolean in_drag; | |
| 83 | gboolean in_predrag; | |
| 84 | ||
| 85 | gint drag_min_x, drag_max_x, drag_min_y, drag_max_y; | |
| 86 | ||
| 87 | gint drag_motion_signal; | |
| 88 | gint drag_leave_signal; | |
| 89 | }; | |
| 90 | ||
| 91 | /** | |
|
7820
06fc9f66d2cb
[gaim-migrate @ 8472]
Mark Doliner <markdoliner@pidgin.im>
parents:
7650
diff
changeset
|
92 | * A GTK+ Instant Message pane. |
| 4359 | 93 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
94 | struct _GaimGtkImPane |
| 4359 | 95 | { |
| 96 | GtkWidget *warn; | |
| 97 | GtkWidget *block; | |
| 98 | GtkWidget *sep1; | |
| 99 | GtkWidget *sep2; | |
| 100 | GtkWidget *check; | |
| 101 | GtkWidget *progress; | |
| 102 | ||
| 103 | gboolean a_virgin; | |
| 104 | ||
| 105 | /* Buddy icon stuff */ | |
| 106 | GtkWidget *icon; | |
| 8189 | 107 | gboolean animate; |
| 4359 | 108 | GdkPixbufAnimation *anim; |
| 109 | GdkPixbufAnimationIter *iter; | |
| 110 | guint32 icon_timer; | |
| 111 | GtkWidget *save_icon; | |
| 112 | }; | |
| 113 | ||
| 114 | /** | |
| 115 | * GTK+ Chat panes. | |
| 116 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
117 | struct _GaimGtkChatPane |
| 4359 | 118 | { |
| 119 | GtkWidget *count; | |
| 120 | GtkWidget *list; | |
| 121 | GtkWidget *invite; | |
| 122 | GtkWidget *topic_text; | |
|
7996
c3a4e8b9dfd9
[gaim-migrate @ 8673]
Robert McQueen <robot101@debian.org>
parents:
7930
diff
changeset
|
123 | GtkWidget *sep; |
| 4359 | 124 | }; |
| 125 | ||
| 126 | /** | |
| 127 | * A GTK+ conversation pane. | |
| 128 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
129 | struct _GaimGtkConversation |
| 4359 | 130 | { |
| 131 | gboolean make_sound; | |
|
7326
599c9e8c9da4
[gaim-migrate @ 7912]
Nathan Fredrickson <nathan@silverorange.com>
parents:
7295
diff
changeset
|
132 | gboolean show_formatting_toolbar; |
| 4359 | 133 | gboolean has_font; |
| 134 | char fontface[128]; | |
| 135 | GdkColor fg_color; | |
| 136 | GdkColor bg_color; | |
| 137 | ||
| 138 | GtkTooltips *tooltips; | |
| 139 | ||
| 140 | GtkWidget *tab_cont; | |
| 141 | GtkWidget *tabby; | |
| 6771 | 142 | GtkWidget *menu_tabby; |
| 4359 | 143 | |
| 144 | GtkWidget *imhtml; | |
| 145 | GtkTextBuffer *entry_buffer; | |
| 146 | GtkWidget *entry; | |
| 147 | ||
|
7930
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
148 | GtkWidget *add; |
|
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
149 | GtkWidget *remove; |
| 4359 | 150 | GtkWidget *info; |
|
7930
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
151 | GtkWidget *send; |
|
3005873ac411
[gaim-migrate @ 8601]
Mark Doliner <markdoliner@pidgin.im>
parents:
7887
diff
changeset
|
152 | GtkWidget *close; /* "x" on the tab */ |
|
6392
3db2b3c7b5aa
[gaim-migrate @ 6897]
Christian Hammond <chipx86@chipx86.com>
parents:
5908
diff
changeset
|
153 | GtkWidget *icon; |
| 4359 | 154 | GtkWidget *tab_label; |
| 6771 | 155 | GtkWidget *menu_icon; |
| 156 | GtkWidget *menu_label; | |
| 4359 | 157 | GtkSizeGroup *sg; |
| 158 | ||
| 159 | GtkWidget *bbox; | |
| 160 | GtkWidget *sw; | |
| 161 | ||
| 8317 | 162 | GtkWidget *toolbar; |
| 4359 | 163 | |
| 164 | struct | |
| 165 | { | |
| 5106 | 166 | GtkWidget *image; |
| 4359 | 167 | GtkWidget *log; |
| 7295 | 168 | GtkWidget *search; |
| 4359 | 169 | |
| 170 | } dialogs; | |
| 171 | ||
| 172 | union | |
| 173 | { | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
174 | GaimGtkImPane *im; |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
175 | GaimGtkChatPane *chat; |
| 4359 | 176 | |
| 177 | } u; | |
| 178 | }; | |
| 179 | ||
| 180 | #define GAIM_GTK_WINDOW(win) \ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
181 | ((GaimGtkWindow *)(win)->ui_data) |
| 4359 | 182 | |
| 183 | #define GAIM_GTK_CONVERSATION(conv) \ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
184 | ((GaimGtkConversation *)(conv)->ui_data) |
| 4359 | 185 | |
|
4384
32592d368209
[gaim-migrate @ 4650]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
186 | #define GAIM_IS_GTK_WINDOW(win) \ |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
187 | (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
|
188 | |
|
32592d368209
[gaim-migrate @ 4650]
Christian Hammond <chipx86@chipx86.com>
parents:
4359
diff
changeset
|
189 | #define GAIM_IS_GTK_CONVERSATION(conv) \ |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
190 | (gaim_conversation_get_ui_ops(conv) == \ |
|
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
191 | gaim_gtk_conversations_get_conv_ui_ops()) |
| 4359 | 192 | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
193 | /*@}*/ |
|
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
194 | |
| 4359 | 195 | /************************************************************************** |
| 196 | * @name GTK+ Conversation API | |
| 197 | **************************************************************************/ | |
|
5673
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
198 | /*@{*/ |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
199 | |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
200 | /** |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
201 | * Initializes the GTK+ conversation system. |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
202 | */ |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
203 | void gaim_gtk_conversations_init(void); |
|
5673
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
204 | |
| 4359 | 205 | /** |
| 206 | * Returns the UI operations structure for GTK windows. | |
| 207 | * | |
| 208 | * @return The GTK window operations structure. | |
| 209 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
210 | GaimConvWindowUiOps *gaim_gtk_conversations_get_win_ui_ops(void); |
| 4359 | 211 | |
| 212 | /** | |
| 213 | * Returns the UI operations structure for GTK conversations. | |
| 214 | * | |
| 215 | * @return The GTK conversation operations structure. | |
| 216 | */ | |
|
7035
76bca80cd91d
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6771
diff
changeset
|
217 | GaimConversationUiOps *gaim_gtk_conversations_get_conv_ui_ops(void); |
| 4359 | 218 | |
| 219 | /** | |
| 220 | * Updates the buddy icon on a conversation. | |
| 221 | * | |
| 222 | * @param conv The conversation. | |
| 223 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
224 | void gaim_gtkconv_update_buddy_icon(GaimConversation *conv); |
| 4359 | 225 | |
| 226 | /** | |
| 227 | * Updates the font buttons on all conversations to reflect any changed | |
| 228 | * preferences. | |
| 229 | */ | |
| 230 | void gaim_gtkconv_update_font_buttons(void); | |
| 231 | ||
| 232 | /** | |
| 4421 | 233 | * Updates the font colors of each conversation to the new colors |
| 234 | * chosen in the prefs dialog. | |
|
4438
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
235 | * |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
236 | * @param conv The conversation to update. |
| 4421 | 237 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
238 | void gaim_gtkconv_update_font_colors(GaimConversation *conv); |
| 4421 | 239 | |
| 240 | /** | |
|
4438
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
241 | * Updates the font faces of each conversation to the new font |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
242 | * face chosen in the prefs dialog. |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
243 | * |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
244 | * @param conv The conversation to update. |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
245 | */ |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
246 | void gaim_gtkconv_update_font_face(GaimConversation *conv); |
|
4438
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
247 | |
|
9beaf48335fc
[gaim-migrate @ 4713]
Christian Hammond <chipx86@chipx86.com>
parents:
4421
diff
changeset
|
248 | /** |
| 4359 | 249 | * Updates the tab positions on all conversation windows to reflect any |
| 250 | * changed preferences. | |
| 251 | */ | |
| 252 | void gaim_gtkconv_update_tabs(void); | |
| 253 | ||
| 254 | /** | |
| 255 | * Updates the button style on chat windows to reflect any | |
| 256 | * changed preferences. | |
| 257 | */ | |
| 258 | void gaim_gtkconv_update_chat_button_style(); | |
| 259 | ||
| 260 | /** | |
| 261 | * Updates the button style on IM windows to reflect any | |
| 262 | * changed preferences. | |
| 263 | */ | |
| 264 | void gaim_gtkconv_update_im_button_style(); | |
| 265 | ||
| 266 | /** | |
| 267 | * Updates conversation buttons by protocol. | |
| 268 | * | |
| 269 | * @param conv The conversation. | |
| 270 | */ | |
|
5676
d3c2fdaf4821
[gaim-migrate @ 6094]
Christian Hammond <chipx86@chipx86.com>
parents:
5674
diff
changeset
|
271 | void gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv); |
| 4359 | 272 | |
| 273 | /** | |
| 274 | * Returns the window at the specified X, Y location. | |
| 275 | * | |
| 276 | * If the window is not a GTK+ window, @c NULL is returned. | |
| 277 | * | |
| 278 | * @param x The X coordinate. | |
| 279 | * @param y The Y coordinate. | |
| 280 | * | |
| 281 | * @return The GTK+ window at the location, if it exists, or @c NULL otherwise. | |
| 282 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
283 | GaimConvWindow *gaim_gtkwin_get_at_xy(int x, int y); |
| 4359 | 284 | |
| 285 | /** | |
| 286 | * Returns the index of the tab at the specified X, Y location in a notebook. | |
| 287 | * | |
| 288 | * @param win The GTK+ window containing the notebook. | |
| 289 | * @param x The X coordinate. | |
| 290 | * @param y The Y coordinate. | |
| 291 | * | |
| 292 | * @return The index of the tab at the location. | |
| 293 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
294 | int gaim_gtkconv_get_tab_at_xy(GaimConvWindow *win, int x, int y); |
| 4359 | 295 | |
| 296 | /** | |
| 297 | * Returns the index of the destination tab at the | |
| 298 | * specified X, Y location in a notebook. | |
| 299 | * | |
| 300 | * This is used for drag-and-drop functions when the tab at the index | |
| 301 | * is a destination tab. | |
| 302 | * | |
| 303 | * @param win The GTK+ window containing the notebook. | |
| 304 | * @param x The X coordinate. | |
| 305 | * @param y The Y coordinate. | |
| 306 | * | |
| 307 | * @return The index of the tab at the location. | |
| 308 | */ | |
|
7118
280b3b85a28a
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
309 | int gaim_gtkconv_get_dest_tab_at_xy(GaimConvWindow *win, int x, int y); |
| 4359 | 310 | |
|
5673
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
311 | /*@}*/ |
|
47f654fb5134
[gaim-migrate @ 6091]
Christian Hammond <chipx86@chipx86.com>
parents:
5167
diff
changeset
|
312 | |
| 4359 | 313 | #endif /* _GAIM_GTK_CONVERSATION_H_ */ |