annotate src/gtkgaim.h @ 10229:9aa0b6d11bbf

[gaim-migrate @ 11364] This is a heavily warmenhoved patch from Alceste Scalas. Here's what it changes: If the user drags an image file into the buddy list or conversation, it presents three options (when applicable): Set as buddy icon - sets this image to be the buddy icon for this buddy Send image file - Initiates a file transfer to send this image. Insert in message - Inserts in the gtkimhtml for use as an IM image. If the user drags a .desktop web link, it will insert a hyperlink in the conversation. All other types of .desktop files fail with an error dialog. If anyone can think of better ways to handle any of them, let me know. This also happens to implement gaim_request_choice, which had previously been unimplemented. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 22 Nov 2004 02:57:34 +0000
parents b6178d85d132
children 6a043ae92db6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9791
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
1 /**
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
2 * @file gtkgaim.h UI definitions and includes
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
3 * @ingroup gtkui
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
4 *
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
5 * gaim
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
6 *
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
7 * Gaim is the legal property of its developers, whose names are too numerous
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
8 * to list here. Please refer to the COPYRIGHT file distributed with this
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
9 * source distribution.
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
10 *
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
14 * (at your option) any later version.
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
15 *
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
19 * GNU General Public License for more details.
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
20 *
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
21 * You should have received a copy of the GNU General Public License
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
22 * along with this program; if not, write to the Free Software
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
24 */
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
25 #ifndef _GAIM_GTKGAIM_H_
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
26 #define _GAIM_GTKGAIM_H_
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
27
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
28 #ifndef _WIN32
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
29 # include <gdk/gdkx.h>
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
30 #endif
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
31
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
32 #include <gtk/gtk.h>
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
33
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
34 #ifndef _WIN32
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
35 # define GAIM_ALERT_TITLE ""
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
36 #else
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
37 # define GAIM_ALERT_TITLE "Gaim"
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
38 #endif
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
39
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
40 /*
10062
b6178d85d132 [gaim-migrate @ 11037]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9791
diff changeset
41 * This is backwards-compatibility code for older versions of GTK+ (< 2.4.x)
b6178d85d132 [gaim-migrate @ 11037]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9791
diff changeset
42 * It defines the new wrap behavior (unknown in earlier versions)
9791
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
43 * as the old (slightly buggy) wrap behavior.
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
44 */
10062
b6178d85d132 [gaim-migrate @ 11037]
Stu Tomlinson <stu@nosnilmot.com>
parents: 9791
diff changeset
45 #if (!GTK_CHECK_VERSION(2,4,0))
9791
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
46 #define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
47 #endif
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
48
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
49
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
50 #endif /* _GAIM_GTKGAIM_H_ */
4a15962c344a [gaim-migrate @ 10659]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
51