Fri, 23 Feb 2024 05:04:57 -0600
Prepare for the 2.14.13 release
Testing Done:
Ran `make distcheck`
Reviewed at https://reviews.imfreedom.org/r/2974/
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
5012
diff
changeset
|
1 | /** |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
2 | * @file gtkimhtml.h GTK+ IM/HTML rendering component |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15572
diff
changeset
|
3 | * @ingroup pidgin |
|
20890
c4253dc37ac0
ChangeLog by resiak@soc.pidgin.im:
Will Thompson <resiak@pidgin.im>
parents:
20147
diff
changeset
|
4 | * @see @ref gtkimhtml-signals |
|
20147
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 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
7 | /* Pidgin is the legal property of its developers, whose names are too numerous |
| 8046 | 8 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 9 | * source distribution. | |
| 1428 | 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18151
diff
changeset
|
23 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 1428 | 24 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
25 | #ifndef _PIDGINIMHTML_H_ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
26 | #define _PIDGINIMHTML_H_ |
| 1428 | 27 | |
| 28 | #include <gdk/gdk.h> | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25900
diff
changeset
|
29 | #include <gtk/gtk.h> |
|
17880
5e73968467e0
Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@pidgin.im>
parents:
16385
diff
changeset
|
30 | #include "gtksourceundomanager.h" |
| 1428 | 31 | |
|
17388
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
32 | #include "connection.h" |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
33 | |
| 1428 | 34 | #ifdef __cplusplus |
| 35 | extern "C" { | |
| 36 | #endif | |
| 37 | ||
| 9033 | 38 | /************************************************************************** |
| 39 | * @name Structures | |
| 40 | **************************************************************************/ | |
| 41 | /*@{*/ | |
| 42 | ||
|
26818
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
43 | #define GTK_TYPE_IMHTML (gtk_imhtml_get_type()) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
44 | #define GTK_IMHTML(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_IMHTML, GtkIMHtml)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
45 | #define GTK_IMHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_IMHTML, GtkIMHtmlClass)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
46 | #define GTK_IS_IMHTML(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_IMHTML)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
47 | #define GTK_IS_IMHTML_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_IMHTML)) |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
48 | #define GTK_IMHTML_SCALABLE(obj) ((GtkIMHtmlScalable *)obj) |
|
26818
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
49 | #define GTK_IMHTML_ANIMATION(obj) ((GtkIMHtmlAnimation *)obj) |
| 1428 | 50 | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
51 | typedef struct _GtkIMHtml GtkIMHtml; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
52 | typedef struct _GtkIMHtmlClass GtkIMHtmlClass; |
|
31310
7835bac46b07
Add support for rendering strikethrough when received as in-line CSS,
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28423
diff
changeset
|
53 | #if !(defined PIDGIN_DISABLE_DEPRECATED) && !(defined _PIDGIN_GTKIMHTML_C_) |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
54 | typedef struct _GtkIMHtmlFontDetail GtkIMHtmlFontDetail; /* The five elements contained in a FONT tag */ |
|
31310
7835bac46b07
Add support for rendering strikethrough when received as in-line CSS,
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28423
diff
changeset
|
55 | #endif |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
56 | typedef struct _GtkSmileyTree GtkSmileyTree; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
57 | typedef struct _GtkIMHtmlSmiley GtkIMHtmlSmiley; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
58 | typedef struct _GtkIMHtmlScalable GtkIMHtmlScalable; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
59 | typedef struct _GtkIMHtmlImage GtkIMHtmlImage; |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
60 | typedef struct _GtkIMHtmlAnimation GtkIMHtmlAnimation; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
61 | typedef struct _GtkIMHtmlHr GtkIMHtmlHr; |
| 8962 | 62 | typedef struct _GtkIMHtmlFuncs GtkIMHtmlFuncs; |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
63 | |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
64 | /** |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
65 | * @since 2.6.0 |
|
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
66 | */ |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
67 | typedef struct _GtkIMHtmlLink GtkIMHtmlLink; |
| 8061 | 68 | |
| 8420 | 69 | typedef enum { |
| 10776 | 70 | GTK_IMHTML_BOLD = 1 << 0, |
| 71 | GTK_IMHTML_ITALIC = 1 << 1, | |
| 72 | GTK_IMHTML_UNDERLINE = 1 << 2, | |
| 73 | GTK_IMHTML_GROW = 1 << 3, | |
| 74 | GTK_IMHTML_SHRINK = 1 << 4, | |
| 75 | GTK_IMHTML_FACE = 1 << 5, | |
| 76 | GTK_IMHTML_FORECOLOR = 1 << 6, | |
| 77 | GTK_IMHTML_BACKCOLOR = 1 << 7, | |
| 78 | GTK_IMHTML_BACKGROUND = 1 << 8, | |
| 79 | GTK_IMHTML_LINK = 1 << 9, | |
| 80 | GTK_IMHTML_IMAGE = 1 << 10, | |
| 81 | GTK_IMHTML_SMILEY = 1 << 11, | |
| 82 | GTK_IMHTML_LINKDESC = 1 << 12, | |
| 83 | GTK_IMHTML_STRIKE = 1 << 13, | |
|
23311
2ef53b1a2dc6
Update changelogs and some of the docs for the new API. Preparing to merge with i.p.p
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23012
diff
changeset
|
84 | /** Show custom smileys when appropriate. @since 2.5.0 */ |
|
23012
ed48af43e0f5
Changelog the API additions, and add a missing define. Thanks to malu for
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22655
diff
changeset
|
85 | GTK_IMHTML_CUSTOM_SMILEY = 1 << 14, |
| 10776 | 86 | GTK_IMHTML_ALL = -1 |
| 8420 | 87 | } GtkIMHtmlButtons; |
| 8061 | 88 | |
|
11525
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
89 | typedef enum { |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
90 | GTK_IMHTML_SMILEY_CUSTOM = 1 << 0 |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
91 | } GtkIMHtmlSmileyFlags; |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
92 | |
| 1428 | 93 | struct _GtkIMHtml { |
| 3922 | 94 | GtkTextView text_view; |
| 95 | GtkTextBuffer *text_buffer; | |
| 1428 | 96 | GdkCursor *hand_cursor; |
| 97 | GdkCursor *arrow_cursor; | |
| 8061 | 98 | GdkCursor *text_cursor; |
| 4032 | 99 | GHashTable *smiley_data; |
| 100 | GtkSmileyTree *default_smilies; | |
| 8456 | 101 | char *protocol_name; |
| 10798 | 102 | guint scroll_src; |
| 103 | GTimer *scroll_time; | |
|
16385
aa5b9456e258
Fixes #213 This allows only 20 animated smileys to be animnating at a time
Sean Egan <seanegan@pidgin.im>
parents:
16254
diff
changeset
|
104 | GQueue *animations; |
|
aa5b9456e258
Fixes #213 This allows only 20 animated smileys to be animnating at a time
Sean Egan <seanegan@pidgin.im>
parents:
16254
diff
changeset
|
105 | int num_animations; |
| 4254 | 106 | |
|
6124
322206d79652
[gaim-migrate @ 6598]
Mark Doliner <markdoliner@pidgin.im>
parents:
6066
diff
changeset
|
107 | gboolean show_comments; |
| 4735 | 108 | |
| 109 | GtkWidget *tip_window; | |
| 110 | char *tip; | |
| 111 | guint tip_timer; | |
| 10799 | 112 | GtkTextTag *prelit_tag; |
| 4895 | 113 | |
| 114 | GList *scalables; | |
| 4947 | 115 | GdkRectangle old_rect; |
| 7295 | 116 | |
| 8061 | 117 | gchar *search_string; |
| 7694 | 118 | |
| 8061 | 119 | gboolean editable; |
| 8420 | 120 | GtkIMHtmlButtons format_functions; |
| 8677 | 121 | gboolean wbfo; /* Whole buffer formatting only. */ |
| 122 | ||
| 123 | gint insert_offset; | |
| 8420 | 124 | |
| 8061 | 125 | struct { |
| 8677 | 126 | gboolean bold:1; |
| 127 | gboolean italic:1; | |
| 128 | gboolean underline:1; | |
| 9924 | 129 | gboolean strike:1; |
| 8677 | 130 | gchar *forecolor; |
| 131 | gchar *backcolor; | |
| 10776 | 132 | gchar *background; |
| 8677 | 133 | gchar *fontface; |
| 8061 | 134 | int fontsize; |
| 8677 | 135 | GtkTextTag *link; |
| 8061 | 136 | } edit; |
|
8740
098a43943bba
[gaim-migrate @ 9495]
Christian Hammond <chipx86@chipx86.com>
parents:
8735
diff
changeset
|
137 | |
|
24569
5dbd0617a27d
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
Richard Laager <rlaager@pidgin.im>
parents:
23366
diff
changeset
|
138 | #if !(defined PIDGIN_DISABLE_DEPRECATED) || (defined _PIDGIN_GTKIMHTML_C_) |
|
21122
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
139 | /** @deprecated */ |
| 8681 | 140 | char *clipboard_text_string; |
|
21122
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
141 | /** @deprecated */ |
| 8681 | 142 | char *clipboard_html_string; |
|
21122
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
143 | #else |
|
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
144 | char *depr1; |
|
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
145 | char *depr2; |
|
c3b9f355e11a
Mark the unused GtkIMHtml fields as deprecated.
Daniel Atallah <datallah@pidgin.im>
parents:
21086
diff
changeset
|
146 | #endif |
| 8962 | 147 | |
| 148 | GSList *im_images; | |
| 149 | GtkIMHtmlFuncs *funcs; | |
|
17880
5e73968467e0
Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@pidgin.im>
parents:
16385
diff
changeset
|
150 | GtkSourceUndoManager *undo_manager; |
| 1428 | 151 | }; |
| 152 | ||
| 153 | struct _GtkIMHtmlClass { | |
| 3922 | 154 | GtkTextViewClass parent_class; |
| 1428 | 155 | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
156 | void (*url_clicked)(GtkIMHtml *, const gchar *); |
| 8420 | 157 | void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); |
| 158 | void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); | |
| 8427 | 159 | void (*clear_format)(GtkIMHtml *); |
| 8506 | 160 | void (*update_format)(GtkIMHtml *); |
| 10108 | 161 | gboolean (*message_send)(GtkIMHtml *); |
|
17880
5e73968467e0
Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@pidgin.im>
parents:
16385
diff
changeset
|
162 | void (*undo)(GtkIMHtml *); |
|
5e73968467e0
Undo/Redo in GtkImHtml from GtkSourceView. This may not be adaquate enough for us.
Sean Egan <seanegan@pidgin.im>
parents:
16385
diff
changeset
|
163 | void (*redo)(GtkIMHtml *); |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
164 | GList *protocols; /* List of GtkIMHtmlProtocol's */ |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
165 | }; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
166 | |
|
31310
7835bac46b07
Add support for rendering strikethrough when received as in-line CSS,
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28423
diff
changeset
|
167 | #if !(defined PIDGIN_DISABLE_DEPRECATED) && !(defined _PIDGIN_GTKIMHTML_C_) |
|
7835bac46b07
Add support for rendering strikethrough when received as in-line CSS,
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28423
diff
changeset
|
168 | /** @deprecated as of 2.7.10 */ |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
169 | struct _GtkIMHtmlFontDetail { |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
170 | gushort size; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
171 | gchar *face; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
172 | gchar *fore; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
173 | gchar *back; |
| 10776 | 174 | gchar *bg; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
175 | gchar *sml; |
| 9950 | 176 | gboolean underline; |
| 14395 | 177 | gshort bold; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
178 | }; |
|
31310
7835bac46b07
Add support for rendering strikethrough when received as in-line CSS,
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
28423
diff
changeset
|
179 | #endif |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
180 | |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
181 | struct _GtkSmileyTree { |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
182 | GString *values; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
183 | GtkSmileyTree **children; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
184 | GtkIMHtmlSmiley *image; |
| 1428 | 185 | }; |
| 186 | ||
| 4263 | 187 | struct _GtkIMHtmlSmiley { |
| 188 | gchar *smile; | |
| 189 | gchar *file; | |
| 6814 | 190 | GdkPixbufAnimation *icon; |
| 4263 | 191 | gboolean hidden; |
| 10526 | 192 | GdkPixbufLoader *loader; |
|
11525
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
193 | GSList *anchors; |
| 12335 | 194 | GtkIMHtmlSmileyFlags flags; |
| 195 | GtkIMHtml *imhtml; | |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27123
diff
changeset
|
196 | gpointer data; /** @since 2.6.0 */ |
|
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27123
diff
changeset
|
197 | gsize datasize; /** @since 2.6.0 */ |
| 4263 | 198 | }; |
| 199 | ||
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
200 | struct _GtkIMHtmlScalable { |
| 4895 | 201 | void (*scale)(struct _GtkIMHtmlScalable *, int, int); |
| 202 | void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *); | |
| 203 | void (*free)(struct _GtkIMHtmlScalable *); | |
| 204 | }; | |
| 205 | ||
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
206 | struct _GtkIMHtmlImage { |
| 4895 | 207 | GtkIMHtmlScalable scalable; |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
208 | GtkImage *image; /**< Contains the scaled version of this pixbuf. */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
209 | GdkPixbuf *pixbuf; /**< The original pixbuf, before any scaling. */ |
| 4895 | 210 | GtkTextMark *mark; |
| 5012 | 211 | gchar *filename; |
| 4895 | 212 | int width; |
| 213 | int height; | |
| 8962 | 214 | int id; |
|
9573
7fb26654aee8
[gaim-migrate @ 10416]
Mark Doliner <markdoliner@pidgin.im>
parents:
9307
diff
changeset
|
215 | GtkWidget *filesel; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
216 | }; |
| 4895 | 217 | |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
218 | struct _GtkIMHtmlAnimation { |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
219 | GtkIMHtmlImage imhtmlimage; |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
220 | GdkPixbufAnimation *anim; /**< The original animation, before any scaling. */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
221 | GdkPixbufAnimationIter *iter; |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
222 | guint timer; |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
223 | }; |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
224 | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
225 | struct _GtkIMHtmlHr { |
| 4895 | 226 | GtkIMHtmlScalable scalable; |
| 227 | GtkWidget *sep; | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
228 | }; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
229 | |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
230 | typedef enum { |
| 12553 | 231 | GTK_IMHTML_NO_COLOURS = 1 << 0, |
| 232 | GTK_IMHTML_NO_FONTS = 1 << 1, | |
| 233 | GTK_IMHTML_NO_COMMENTS = 1 << 2, /* Remove */ | |
| 234 | GTK_IMHTML_NO_TITLE = 1 << 3, | |
| 235 | GTK_IMHTML_NO_NEWLINE = 1 << 4, | |
| 236 | GTK_IMHTML_NO_SIZES = 1 << 5, | |
| 237 | GTK_IMHTML_NO_SCROLL = 1 << 6, | |
| 238 | GTK_IMHTML_RETURN_LOG = 1 << 7, | |
| 239 | GTK_IMHTML_USE_POINTSIZE = 1 << 8, | |
| 240 | GTK_IMHTML_NO_FORMATTING = 1 << 9, | |
|
22003
904ebe8d6058
Patch from 'goutnet' to not insert smileys when pasting as plain text.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
21122
diff
changeset
|
241 | GTK_IMHTML_USE_SMOOTHSCROLLING = 1 << 10, |
|
33217
7e266d890064
Remove trailing commas from enums.
David Michael <fedora.dm0@gmail.com>
parents:
31310
diff
changeset
|
242 | GTK_IMHTML_NO_SMILEY = 1 << 11 |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
243 | } GtkIMHtmlOptions; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
244 | |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
245 | enum { |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
246 | GTK_IMHTML_DRAG_URL = 0, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
247 | GTK_IMHTML_DRAG_HTML, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
248 | GTK_IMHTML_DRAG_UTF8_STRING, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
249 | GTK_IMHTML_DRAG_COMPOUND_TEXT, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
250 | GTK_IMHTML_DRAG_STRING, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
251 | GTK_IMHTML_DRAG_TEXT, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
252 | GTK_IMHTML_DRAG_NUM |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
253 | }; |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
254 | |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
255 | #define GTK_IMHTML_DND_TARGETS \ |
|
10345
7d7f8cfa2b4f
[gaim-migrate @ 11556]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
10243
diff
changeset
|
256 | { "text/uri-list", 0, GTK_IMHTML_DRAG_URL }, \ |
|
10243
6d75b29afc71
[gaim-migrate @ 11383]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10165
diff
changeset
|
257 | { "_NETSCAPE_URL", 0, GTK_IMHTML_DRAG_URL }, \ |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
258 | { "text/html", 0, GTK_IMHTML_DRAG_HTML }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
259 | { "x-url/ftp", 0, GTK_IMHTML_DRAG_URL }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
260 | { "x-url/http", 0, GTK_IMHTML_DRAG_URL }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
261 | { "UTF8_STRING", 0, GTK_IMHTML_DRAG_UTF8_STRING }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
262 | { "COMPOUND_TEXT", 0, GTK_IMHTML_DRAG_COMPOUND_TEXT }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
263 | { "STRING", 0, GTK_IMHTML_DRAG_STRING }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
264 | { "text/plain", 0, GTK_IMHTML_DRAG_TEXT }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
265 | { "TEXT", 0, GTK_IMHTML_DRAG_TEXT } |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
266 | |
| 8962 | 267 | typedef gpointer (*GtkIMHtmlGetImageFunc) (int id); |
| 268 | typedef gpointer (*GtkIMHtmlGetImageDataFunc) (gpointer i); | |
| 269 | typedef size_t (*GtkIMHtmlGetImageSizeFunc) (gpointer i); | |
| 270 | typedef const char *(*GtkIMHtmlGetImageFilenameFunc)(gpointer i); | |
| 271 | typedef void (*GtkIMHtmlImageRefFunc) (int id); | |
| 272 | typedef void (*GtkIMHtmlImageUnrefFunc) (int id); | |
| 273 | ||
| 274 | struct _GtkIMHtmlFuncs { | |
| 275 | GtkIMHtmlGetImageFunc image_get; | |
| 276 | GtkIMHtmlGetImageDataFunc image_get_data; | |
| 277 | GtkIMHtmlGetImageSizeFunc image_get_size; | |
| 278 | GtkIMHtmlGetImageFilenameFunc image_get_filename; | |
| 279 | GtkIMHtmlImageRefFunc image_ref; | |
| 280 | GtkIMHtmlImageUnrefFunc image_unref; | |
| 281 | }; | |
| 282 | ||
| 9033 | 283 | /*@}*/ |
| 8962 | 284 | |
| 9033 | 285 | /************************************************************************** |
| 286 | * @name GTK+ IM/HTML rendering component API | |
| 287 | **************************************************************************/ | |
| 288 | /*@{*/ | |
| 289 | ||
| 290 | /** | |
| 9037 | 291 | * Returns the GType object for an IM/HTML widget. |
| 9033 | 292 | * |
| 9037 | 293 | * @return The GType for an IM/HTML widget. |
| 9033 | 294 | */ |
| 9037 | 295 | GType gtk_imhtml_get_type(void); |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
296 | |
| 9033 | 297 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
298 | * Creates and returns a new GTK+ IM/HTML widget. |
| 9033 | 299 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
300 | * @return The GTK+ IM/HTML widget created. |
| 9033 | 301 | */ |
| 302 | GtkWidget *gtk_imhtml_new(void *, void *); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
303 | |
| 9033 | 304 | /** |
| 10526 | 305 | * Returns the smiley object associated with the text. |
| 306 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
307 | * @param imhtml The GTK+ IM/HTML. |
| 10526 | 308 | * @param sml The name of the smiley category. |
| 309 | * @param text The text associated with the smiley. | |
| 310 | */ | |
| 311 | ||
| 312 | GtkIMHtmlSmiley *gtk_imhtml_smiley_get(GtkIMHtml * imhtml, | |
| 313 | const gchar * sml, const gchar * text); | |
| 314 | ||
| 315 | ||
| 316 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
317 | * Associates a smiley with a GTK+ IM/HTML. |
| 9033 | 318 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
319 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 320 | * @param sml The name of the smiley category. |
| 321 | * @param smiley The GtkIMSmiley to associate. | |
| 322 | */ | |
|
10537
9ece7671fa62
[gaim-migrate @ 11890]
Mark Doliner <markdoliner@pidgin.im>
parents:
10526
diff
changeset
|
323 | void gtk_imhtml_associate_smiley(GtkIMHtml *imhtml, const gchar *sml, GtkIMHtmlSmiley *smiley); |
| 9033 | 324 | |
| 325 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
326 | * Removes all smileys associated with a GTK+ IM/HTML. |
| 9033 | 327 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
328 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 329 | */ |
| 330 | void gtk_imhtml_remove_smileys(GtkIMHtml *imhtml); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
331 | |
| 9033 | 332 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
333 | * Sets the function callbacks to use with a GTK+ IM/HTML instance. |
| 9033 | 334 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
335 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 336 | * @param f The GtkIMHTMLFuncs struct containing the functions to use. |
| 337 | */ | |
| 338 | void gtk_imhtml_set_funcs(GtkIMHtml *imhtml, GtkIMHtmlFuncs *f); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
339 | |
| 9033 | 340 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
341 | * Enables or disables showing the contents of HTML comments in a GTK+ IM/HTML. |
| 9033 | 342 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
343 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 344 | * @param show @c TRUE if comments should be shown, or @c FALSE otherwise. |
| 345 | */ | |
| 346 | void gtk_imhtml_show_comments(GtkIMHtml *imhtml, gboolean show); | |
| 8962 | 347 | |
| 9033 | 348 | /** |
|
11814
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
349 | * Gets the protocol name associated with this GTK+ IM/HTML. |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
350 | * |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
351 | * @param imhtml The GTK+ IM/HTML |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
352 | */ |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
353 | const char *gtk_imhtml_get_protocol_name(GtkIMHtml *imhtml); |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
354 | |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
355 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
356 | * Associates a protocol name with a GTK+ IM/HTML. |
| 9033 | 357 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
358 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 359 | * @param protocol_name The protocol name to associate with the IM/HTML. |
| 360 | */ | |
| 361 | void gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, const gchar *protocol_name); | |
| 8456 | 362 | |
| 9033 | 363 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
364 | * Appends HTML formatted text to a GTK+ IM/HTML. |
| 9033 | 365 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
366 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 367 | * @param text The formatted text to append. |
| 368 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
| 369 | */ | |
| 9307 | 370 | #define gtk_imhtml_append_text(imhtml, text, options) \ |
| 371 | gtk_imhtml_append_text_with_images(imhtml, text, options, NULL) | |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6814
diff
changeset
|
372 | |
| 9033 | 373 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
374 | * Appends HTML formatted text to a GTK+ IM/HTML. |
| 9033 | 375 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
376 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 377 | * @param text The formatted text to append. |
| 378 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
| 9185 | 379 | * @param unused Use @c NULL value. |
| 9033 | 380 | */ |
| 381 | void gtk_imhtml_append_text_with_images(GtkIMHtml *imhtml, | |
| 382 | const gchar *text, | |
| 383 | GtkIMHtmlOptions options, | |
| 384 | GSList *unused); | |
| 385 | ||
| 386 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
387 | * Inserts HTML formatted text to a GTK+ IM/HTML at a given iter. |
| 9033 | 388 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
389 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 390 | * @param text The formatted text to append. |
| 391 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
392 | * @param iter A GtkTextIter in the GTK+ IM/HTML at which to insert text. |
| 9033 | 393 | */ |
| 8677 | 394 | void gtk_imhtml_insert_html_at_iter(GtkIMHtml *imhtml, |
| 395 | const gchar *text, | |
| 396 | GtkIMHtmlOptions options, | |
| 397 | GtkTextIter *iter); | |
| 9033 | 398 | |
| 399 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
400 | * Scrolls a GTK+ IM/HTML to the end of its contents. |
| 9033 | 401 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
402 | * @param imhtml The GTK+ IM/HTML. |
|
12557
6c318efafe32
[gaim-migrate @ 14876]
Richard Laager <rlaager@pidgin.im>
parents:
12553
diff
changeset
|
403 | * @param smooth A boolean indicating if smooth scrolling should be used. |
| 9033 | 404 | */ |
| 12553 | 405 | void gtk_imhtml_scroll_to_end(GtkIMHtml *imhtml, gboolean smooth); |
| 9033 | 406 | |
| 407 | /** | |
|
11224
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
408 | * Delete the contents of a GTK+ IM/HTML between start and end. |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
409 | * |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
410 | * @param imhtml The GTK+ IM/HTML. |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
411 | * @param start a postition in the imhtml's buffer |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
412 | * @param end another postition in the imhtml's buffer |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
413 | */ |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
414 | void gtk_imhtml_delete(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end); |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
415 | |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
416 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
417 | * Purges the contents from a GTK+ IM/HTML and resets formatting. |
| 9033 | 418 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
419 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 420 | */ |
|
11224
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
421 | #define gtk_imhtml_clear(imhtml) \ |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
422 | gtk_imhtml_delete(imhtml, NULL, NULL) |
| 4895 | 423 | |
| 9033 | 424 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
425 | * Scrolls a GTK+ IM/HTML up by one page. |
| 9033 | 426 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
427 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 428 | */ |
| 429 | void gtk_imhtml_page_up(GtkIMHtml *imhtml); | |
| 430 | ||
| 431 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
432 | * Scrolls a GTK+ IM/HTML down by one page. |
| 9033 | 433 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
434 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 435 | */ |
| 436 | void gtk_imhtml_page_down(GtkIMHtml *imhtml); | |
| 437 | ||
| 438 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
439 | * Creates and returns an new GTK+ IM/HTML scalable object. |
| 9033 | 440 | * |
| 441 | * @return A new IM/HTML Scalable object. | |
| 442 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11814
diff
changeset
|
443 | GtkIMHtmlScalable *gtk_imhtml_scalable_new(void); |
| 9033 | 444 | |
| 445 | /** | |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
446 | * Creates and returns a new GTK+ IM/HTML scalable object with an image. |
| 9033 | 447 | * |
| 448 | * @param img A GdkPixbuf of the image to add. | |
| 449 | * @param filename The filename to associate with the image. | |
| 450 | * @param id The id to associate with the image. | |
| 451 | * | |
| 452 | * @return A new IM/HTML Scalable object with an image. | |
| 453 | */ | |
| 8962 | 454 | GtkIMHtmlScalable *gtk_imhtml_image_new(GdkPixbuf *img, const gchar *filename, int id); |
| 9033 | 455 | |
| 456 | /** | |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
457 | * Creates and returns a new GTK+ IM/HTML scalable object with an |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
458 | * animated image. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
459 | * |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
460 | * @param img A GdkPixbufAnimation of the image to add. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
461 | * @param filename The filename to associate with the image. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
462 | * @param id The id to associate with the image. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
463 | * |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
464 | * @return A new IM/HTML Scalable object with an image. |
|
20940
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20890
diff
changeset
|
465 | * |
|
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20890
diff
changeset
|
466 | * @since 2.1.0 |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
467 | */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
468 | /* |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
469 | * TODO: All this animation code could be combined much better with |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
470 | * the image code. It couldn't be done when it was written |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
471 | * because it requires breaking backward compatibility. It |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
472 | * would be good to do it for 3.0.0. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
473 | */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
474 | GtkIMHtmlScalable *gtk_imhtml_animation_new(GdkPixbufAnimation *img, const gchar *filename, int id); |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
475 | |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
476 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
477 | * Destroys and frees a GTK+ IM/HTML scalable image. |
| 9033 | 478 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
479 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 480 | */ |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
481 | /* TODO: Is there any reason this isn't private? */ |
| 9033 | 482 | void gtk_imhtml_image_free(GtkIMHtmlScalable *scale); |
| 4895 | 483 | |
| 9033 | 484 | /** |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
485 | * Destroys and frees a GTK+ IM/HTML scalable animation. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
486 | * |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
487 | * @param scale The GTK+ IM/HTML scalable. |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
488 | */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
489 | /* TODO: Is there any reason this isn't private? */ |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
490 | void gtk_imhtml_animation_free(GtkIMHtmlScalable *scale); |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
491 | |
|
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
492 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
493 | * Rescales a GTK+ IM/HTML scalable image to a given size. |
| 9033 | 494 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
495 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 496 | * @param width The new width. |
| 497 | * @param height The new height. | |
| 498 | */ | |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
499 | /* TODO: Is there any reason this isn't private? */ |
| 9033 | 500 | void gtk_imhtml_image_scale(GtkIMHtmlScalable *scale, int width, int height); |
| 501 | ||
| 502 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
503 | * Adds a GTK+ IM/HTML scalable image to a given GTK+ IM/HTML at a given iter. |
| 9033 | 504 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
505 | * @param scale The GTK+ IM/HTML scalable. |
|
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
506 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 507 | * @param iter The GtkTextIter at which to add the scalable. |
| 508 | */ | |
|
18151
97fd60f47229
When an animated image is inserted into a conversation window, animate
Mark Doliner <markdoliner@pidgin.im>
parents:
18105
diff
changeset
|
509 | /* TODO: Is there any reason this isn't private? */ |
| 9033 | 510 | void gtk_imhtml_image_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter); |
| 511 | ||
| 512 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
513 | * Creates and returns an new GTK+ IM/HTML scalable with a horizontal rule. |
| 9033 | 514 | * |
| 515 | * @return A new IM/HTML Scalable object with an image. | |
| 516 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11814
diff
changeset
|
517 | GtkIMHtmlScalable *gtk_imhtml_hr_new(void); |
| 9033 | 518 | |
| 519 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
520 | * Destroys and frees a GTK+ IM/HTML scalable horizontal rule. |
| 9033 | 521 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
522 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 523 | */ |
| 9034 | 524 | void gtk_imhtml_hr_free(GtkIMHtmlScalable *scale); |
| 9033 | 525 | |
| 526 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
527 | * Rescales a GTK+ IM/HTML scalable horizontal rule to a given size. |
| 9033 | 528 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
529 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 530 | * @param width The new width. |
| 531 | * @param height The new height. | |
| 532 | */ | |
| 9034 | 533 | void gtk_imhtml_hr_scale(GtkIMHtmlScalable *scale, int width, int height); |
| 4895 | 534 | |
| 9033 | 535 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
536 | * Adds a GTK+ IM/HTML scalable horizontal rule to a given GTK+ IM/HTML at |
| 9033 | 537 | * a given iter. |
| 538 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
539 | * @param scale The GTK+ IM/HTML scalable. |
|
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
540 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 541 | * @param iter The GtkTextIter at which to add the scalable. |
| 542 | */ | |
| 9307 | 543 | void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter); |
| 9033 | 544 | |
| 545 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
546 | * Finds and highlights a given string in a GTK+ IM/HTML. |
| 9033 | 547 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
548 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 549 | * @param text The string to search for. |
| 550 | * | |
| 551 | * @return @c TRUE if a search was performed, or @c FALSE if not. | |
| 552 | */ | |
| 7295 | 553 | gboolean gtk_imhtml_search_find(GtkIMHtml *imhtml, const gchar *text); |
| 9033 | 554 | |
| 555 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
556 | * Clears the highlighting from a prior search in a GTK+ IM/HTML. |
| 9033 | 557 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
558 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 559 | */ |
| 7295 | 560 | void gtk_imhtml_search_clear(GtkIMHtml *imhtml); |
| 4895 | 561 | |
| 9033 | 562 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
563 | * Enables or disables editing in a GTK+ IM/HTML. |
| 9033 | 564 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
565 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 566 | * @param editable @c TRUE to make the widget editable, or @c FALSE otherwise. |
| 567 | */ | |
| 8061 | 568 | void gtk_imhtml_set_editable(GtkIMHtml *imhtml, gboolean editable); |
| 9033 | 569 | |
| 570 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
571 | * Enables or disables whole buffer formatting only (wbfo) in a GTK+ IM/HTML. |
| 9033 | 572 | * In this mode formatting options to the buffer take effect for the entire |
| 573 | * buffer instead of specific text. | |
| 574 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
575 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 576 | * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise. |
| 577 | */ | |
| 8677 | 578 | void gtk_imhtml_set_whole_buffer_formatting_only(GtkIMHtml *imhtml, gboolean wbfo); |
| 9033 | 579 | |
| 580 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
581 | * Indicates which formatting functions to enable and disable in a GTK+ IM/HTML. |
| 9033 | 582 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
583 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 584 | * @param buttons A GtkIMHtmlButtons bitmask indicating which functions to use. |
| 9033 | 585 | */ |
| 8420 | 586 | void gtk_imhtml_set_format_functions(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons); |
| 9033 | 587 | |
| 588 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
589 | * Returns which formatting functions are enabled in a GTK+ IM/HTML. |
| 9033 | 590 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
591 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 592 | * |
| 9185 | 593 | * @return A GtkIMHtmlButtons bitmask indicating which functions to are enabled. |
| 9033 | 594 | */ |
|
8788
a13634443a38
[gaim-migrate @ 9550]
Mark Doliner <markdoliner@pidgin.im>
parents:
8740
diff
changeset
|
595 | GtkIMHtmlButtons gtk_imhtml_get_format_functions(GtkIMHtml *imhtml); |
| 9033 | 596 | |
| 597 | /** | |
|
12900
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
598 | * Sets each boolean to @c TRUE or @c FALSE to indicate if that formatting option |
|
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
599 | * is enabled at the current position in a GTK+ IM/HTML. |
| 9033 | 600 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
601 | * @param imhtml The GTK+ IM/HTML. |
|
12900
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
602 | * @param bold The boolean to set for bold or @c NULL. |
|
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
603 | * @param italic The boolean to set for italic or @c NULL. |
|
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
604 | * @param underline The boolean to set for underline or @c NULL. |
| 9033 | 605 | */ |
| 8516 | 606 | void gtk_imhtml_get_current_format(GtkIMHtml *imhtml, gboolean *bold, gboolean *italic, gboolean *underline); |
| 9033 | 607 | |
| 608 | /** | |
| 609 | * Returns a string containing the selected font face at the current position | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
610 | * in a GTK+ IM/HTML. |
| 9033 | 611 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
612 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 613 | * |
| 614 | * @return A string containg the font face or @c NULL if none is set. | |
| 615 | */ | |
| 9025 | 616 | char *gtk_imhtml_get_current_fontface(GtkIMHtml *imhtml); |
| 9033 | 617 | |
| 618 | /** | |
| 619 | * Returns a string containing the selected foreground color at the current | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
620 | * position in a GTK+ IM/HTML. |
| 9033 | 621 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
622 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 623 | * |
| 624 | * @return A string containg the foreground color or @c NULL if none is set. | |
| 625 | */ | |
| 9025 | 626 | char *gtk_imhtml_get_current_forecolor(GtkIMHtml *imhtml); |
| 9033 | 627 | |
| 628 | /** | |
| 10776 | 629 | * Returns a string containing the selected font background color at the current |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
630 | * position in a GTK+ IM/HTML. |
| 10776 | 631 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
632 | * @param imhtml The GTK+ IM/HTML. |
| 10776 | 633 | * |
| 634 | * @return A string containg the font background color or @c NULL if none is set. | |
| 635 | */ | |
| 636 | char *gtk_imhtml_get_current_backcolor(GtkIMHtml *imhtml); | |
| 637 | ||
| 638 | /** | |
| 9033 | 639 | * Returns a string containing the selected background color at the current |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
640 | * position in a GTK+ IM/HTML. |
| 9033 | 641 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
642 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 643 | * |
| 644 | * @return A string containg the background color or @c NULL if none is set. | |
| 645 | */ | |
| 10776 | 646 | char *gtk_imhtml_get_current_background(GtkIMHtml *imhtml); |
| 9033 | 647 | |
| 648 | /** | |
| 649 | * Returns a integer containing the selected HTML font size at the current | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
650 | * position in a GTK+ IM/HTML. |
| 9033 | 651 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
652 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 653 | * |
| 654 | * @return The HTML font size. | |
| 655 | */ | |
| 9025 | 656 | gint gtk_imhtml_get_current_fontsize(GtkIMHtml *imhtml); |
| 9033 | 657 | |
| 658 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
659 | * Checks whether a GTK+ IM/HTML is marked as editable. |
| 9033 | 660 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
661 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 662 | * |
| 663 | * @return @c TRUE if the IM/HTML is editable, or @c FALSE otherwise. | |
| 664 | */ | |
| 8061 | 665 | gboolean gtk_imhtml_get_editable(GtkIMHtml *imhtml); |
| 9033 | 666 | |
| 667 | /** | |
|
11269
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
668 | * Clear all the formatting on a GTK+ IM/HTML. |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
669 | * |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
670 | * @param imhtml The GTK+ IM/HTML. |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
671 | */ |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
672 | void gtk_imhtml_clear_formatting(GtkIMHtml *imhtml); |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
673 | |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
674 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
675 | * Toggles bold at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 676 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
677 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 678 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
679 | void gtk_imhtml_toggle_bold(GtkIMHtml *imhtml); |
| 9033 | 680 | |
| 681 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
682 | * Toggles italic at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 683 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
684 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 685 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
686 | void gtk_imhtml_toggle_italic(GtkIMHtml *imhtml); |
| 9033 | 687 | |
| 688 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
689 | * Toggles underline at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 690 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
691 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 692 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
693 | void gtk_imhtml_toggle_underline(GtkIMHtml *imhtml); |
| 9033 | 694 | |
| 695 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
696 | * Toggles strikethrough at the cursor location or selection in a GTK+ IM/HTML. |
| 9924 | 697 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
698 | * @param imhtml The GTK+ IM/HTML. |
| 9924 | 699 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
700 | void gtk_imhtml_toggle_strike(GtkIMHtml *imhtml); |
| 9924 | 701 | |
| 702 | /** | |
| 9033 | 703 | * Toggles a foreground color at the current location or selection in a GTK |
| 704 | * IM/HTML. | |
| 705 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
706 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 707 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 9033 | 708 | * |
| 709 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 710 | */ | |
| 8061 | 711 | gboolean gtk_imhtml_toggle_forecolor(GtkIMHtml *imhtml, const char *color); |
| 9033 | 712 | |
| 713 | /** | |
| 714 | * Toggles a background color at the current location or selection in a GTK | |
| 715 | * IM/HTML. | |
| 716 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
717 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 718 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 9033 | 719 | * |
| 720 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 721 | */ | |
| 8061 | 722 | gboolean gtk_imhtml_toggle_backcolor(GtkIMHtml *imhtml, const char *color); |
| 9033 | 723 | |
| 724 | /** | |
| 10776 | 725 | * Toggles a background color at the current location or selection in a GTK |
| 726 | * IM/HTML. | |
| 727 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
728 | * @param imhtml The GTK+ IM/HTML. |
| 10776 | 729 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 730 | * | |
| 731 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 732 | */ | |
| 733 | gboolean gtk_imhtml_toggle_background(GtkIMHtml *imhtml, const char *color); | |
| 734 | ||
| 735 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
736 | * Toggles a font face at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 737 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
738 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 739 | * @param face The font face name, or @c NULL or "" to clear the font. |
| 9033 | 740 | * |
| 741 | * @return @c TRUE if a font name was set, or @c FALSE if it was cleared. | |
| 742 | */ | |
| 8061 | 743 | gboolean gtk_imhtml_toggle_fontface(GtkIMHtml *imhtml, const char *face); |
| 9033 | 744 | |
| 745 | /** | |
| 746 | * Toggles a link tag with the given URL at the current location or selection | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
747 | * in a GTK+ IM/HTML. |
| 9033 | 748 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
749 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 750 | * @param url The URL for the link or @c NULL to terminate the link. |
| 9033 | 751 | */ |
| 8677 | 752 | void gtk_imhtml_toggle_link(GtkIMHtml *imhtml, const char *url); |
| 9033 | 753 | |
| 754 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
755 | * Inserts a link to the given url at the given GtkTextMark in a GTK+ IM/HTML. |
| 9033 | 756 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
757 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 758 | * @param mark The GtkTextMark to insert the link at. |
| 759 | * @param url The URL for the link. | |
| 760 | * @param text The string to use for the link description. | |
| 761 | */ | |
| 8677 | 762 | void gtk_imhtml_insert_link(GtkIMHtml *imhtml, GtkTextMark *mark, const char *url, const char *text); |
| 9033 | 763 | |
| 764 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
765 | * Inserts a smiley at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 766 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
767 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 768 | * @param sml The category of the smiley. |
| 769 | * @param smiley The text of the smiley to insert. | |
| 770 | */ | |
| 8061 | 771 | void gtk_imhtml_insert_smiley(GtkIMHtml *imhtml, const char *sml, char *smiley); |
| 9033 | 772 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
773 | * Inserts a smiley at the given iter in a GTK+ IM/HTML. |
| 9033 | 774 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
775 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 776 | * @param sml The category of the smiley. |
| 777 | * @param smiley The text of the smiley to insert. | |
| 778 | * @param iter The GtkTextIter in the IM/HTML to insert the smiley at. | |
| 779 | */ | |
| 8677 | 780 | void gtk_imhtml_insert_smiley_at_iter(GtkIMHtml *imhtml, const char *sml, char *smiley, GtkTextIter *iter); |
| 9033 | 781 | |
| 782 | /** | |
| 783 | * Inserts the IM/HTML scalable image with the given id at the given iter in a | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
784 | * GTK+ IM/HTML. |
| 9033 | 785 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
786 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 787 | * @param id The id of the IM/HTML scalable. |
| 788 | * @param iter The GtkTextIter in the IM/HTML to insert the image at. | |
| 789 | */ | |
| 8962 | 790 | void gtk_imhtml_insert_image_at_iter(GtkIMHtml *imhtml, int id, GtkTextIter *iter); |
| 9033 | 791 | |
| 792 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
793 | * Sets the font size at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 794 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
795 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 796 | * @param size The HTML font size to use. |
| 797 | */ | |
| 8061 | 798 | void gtk_imhtml_font_set_size(GtkIMHtml *imhtml, gint size); |
| 9033 | 799 | |
| 800 | /** | |
| 801 | * Decreases the font size by 1 at the current location or selection in a GTK | |
| 802 | * IM/HTML. | |
| 803 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
804 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 805 | */ |
| 8061 | 806 | void gtk_imhtml_font_shrink(GtkIMHtml *imhtml); |
| 9033 | 807 | |
| 808 | /** | |
| 809 | * Increases the font size by 1 at the current location or selection in a GTK | |
| 810 | * IM/HTML. | |
| 811 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
812 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 813 | */ |
| 8061 | 814 | void gtk_imhtml_font_grow(GtkIMHtml *imhtml); |
| 9033 | 815 | |
| 816 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
817 | * Returns the HTML formatted contents between two iters in a GTK+ IM/HTML. |
| 9033 | 818 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
819 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 820 | * @param start The GtkTextIter indicating the start point in the IM/HTML. |
| 821 | * @param end The GtkTextIter indicating the end point in the IM/HTML. | |
| 822 | * | |
| 823 | * @return A string containing the HTML formatted text. | |
| 824 | */ | |
| 8061 | 825 | char *gtk_imhtml_get_markup_range(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end); |
| 9033 | 826 | |
| 827 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
828 | * Returns the entire HTML formatted contents of a GTK+ IM/HTML. |
| 9033 | 829 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
830 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 831 | * |
| 832 | * @return A string containing the HTML formatted text. | |
| 833 | */ | |
| 8061 | 834 | char *gtk_imhtml_get_markup(GtkIMHtml *imhtml); |
| 9033 | 835 | |
| 836 | /** | |
| 837 | * Returns a null terminated array of pointers to null terminated strings, each | |
| 838 | * string for each line. g_strfreev() should be called to free it when done. | |
| 839 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
840 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 841 | * |
| 842 | * @return A null terminated array of null terminated HTML formatted strings. | |
| 843 | */ | |
| 8677 | 844 | char **gtk_imhtml_get_markup_lines(GtkIMHtml *imhtml); |
| 9033 | 845 | |
| 846 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
847 | * Returns the entire unformatted (plain text) contents of a GTK+ IM/HTML |
|
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
848 | * between two iters in a GTK+ IM/HTML. |
| 9033 | 849 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
850 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 851 | * @param start The GtkTextIter indicating the start point in the IM/HTML. |
| 9185 | 852 | * @param stop The GtkTextIter indicating the end point in the IM/HTML. |
| 9033 | 853 | * |
| 854 | * @return A string containing the unformatted text. | |
| 855 | */ | |
| 8677 | 856 | char *gtk_imhtml_get_text(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *stop); |
| 8061 | 857 | |
|
17388
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
858 | /** |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
859 | * Setup formatting for an imhtml depending on the flags specified. |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
860 | * |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
861 | * @param imhtml The GTK+ IM/HTML. |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
862 | * @param flags The connection flag which describes the allowed types of formatting. |
|
20940
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20890
diff
changeset
|
863 | * |
|
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20890
diff
changeset
|
864 | * @since 2.1.0 |
|
17388
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
865 | */ |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
866 | void gtk_imhtml_setup_entry(GtkIMHtml *imhtml, PurpleConnectionFlags flags); |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
867 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
868 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
869 | * Create a new GtkIMHtmlSmiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
870 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
871 | * @param file The image file for the smiley |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
872 | * @param shortcut The key shortcut for the smiley |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
873 | * @param hide @c TRUE if the smiley should be hidden in the smiley dialog, @c FALSE otherwise |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
874 | * @param flags The smiley flags |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
875 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
876 | * @return The newly created smiley |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
877 | * @since 2.5.0 |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
878 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
879 | GtkIMHtmlSmiley *gtk_imhtml_smiley_create(const char *file, const char *shortcut, gboolean hide, |
|
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
880 | GtkIMHtmlSmileyFlags flags); |
|
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
881 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
882 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
883 | * Reload the image data for the smiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
884 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
885 | * @param smiley The smiley to reload |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
886 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
887 | * @since 2.5.0 |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
888 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
889 | void gtk_imhtml_smiley_reload(GtkIMHtmlSmiley *smiley); |
|
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
890 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
891 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
892 | * Destroy a GtkIMHtmlSmiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
893 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
894 | * @param smiley The smiley to destroy |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
895 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
896 | * @since 2.5.0 |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
897 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
898 | void gtk_imhtml_smiley_destroy(GtkIMHtmlSmiley *smiley); |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
899 | |
|
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
900 | /** |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
901 | * Register a protocol with the GtkIMHtml widget. Registering a protocol would |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
902 | * allow certain text to be clickable. |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
903 | * |
|
25008
f52b9372eb19
Revert the URL scheme passing changes, keeping the miscellaneous other stuff
Richard Laager <rlaager@pidgin.im>
parents:
25007
diff
changeset
|
904 | * @param name The name of the protocol (e.g. http://) |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
905 | * @param activate The callback to trigger when the protocol text is clicked. |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
906 | * Removes any current protocol definition if @c NULL. The |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
907 | * callback should return @c TRUE if the link was activated |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
908 | * properly, @c FALSE otherwise. |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
909 | * @param context_menu The callback to trigger when the context menu is popped |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
910 | * up on the protocol text. The callback should return |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
911 | * @c TRUE if the request for context menu was processed |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
912 | * successfully, @c FALSE otherwise. |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
913 | * |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27123
diff
changeset
|
914 | * @return @c TRUE if the protocol was successfully registered (or unregistered, when \a activate is @c NULL) |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
915 | * |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
916 | * @since 2.6.0 |
|
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
917 | */ |
|
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
918 | gboolean gtk_imhtml_class_register_protocol(const char *name, |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
919 | gboolean (*activate)(GtkIMHtml *imhtml, GtkIMHtmlLink *link), |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
920 | gboolean (*context_menu)(GtkIMHtml *imhtml, GtkIMHtmlLink *link, GtkWidget *menu)); |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
921 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
922 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
923 | * Get the URL associated with a link. This should be used by the IMHtml protocol-callbacks. |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
924 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
925 | * @param link The GtkIMHtmlLink object sent to the callback functions |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
926 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
927 | * @return The URL |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
928 | * |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
929 | * @since 2.6.0 |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
930 | */ |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
931 | const char *gtk_imhtml_link_get_url(GtkIMHtmlLink *link); |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
932 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
933 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
934 | * Get the GtkTextTag object (if any) associated with a particular link. |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
935 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
936 | * @param link The GtkIMHtmlLink object sent to the callback functions |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
937 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
938 | * @return The GtkTextTag object, or @c NULL |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
939 | * |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
940 | * @since 2.6.0 |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
941 | */ |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
942 | const GtkTextTag *gtk_imhtml_link_get_text_tag(GtkIMHtmlLink *link); |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
943 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
944 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
945 | * Activates a GtkIMHtmlLink object. This triggers the 'url-clicked' signal, marks the |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
946 | * link as visited (when possible). |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
947 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
948 | * @param link The GtkIMHtmlLink object sent to the callback functions |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
949 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
950 | * @return @c TRUE if 'url-clicked' signal was emitted, @c FALSE otherwise. |
|
25885
5b5e2ca316b2
Add @since 2.6.0 doxygen comments to some of our new functions, and
Mark Doliner <markdoliner@pidgin.im>
parents:
25008
diff
changeset
|
951 | * |
|
24698
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
952 | * @since 2.6.0 |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
953 | */ |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
954 | gboolean gtk_imhtml_link_activate(GtkIMHtmlLink *link); |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
955 | |
|
25900
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
956 | /** |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
957 | * By default this widget intercepts presses of the "return" key and |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
958 | * emits the "message_send" signal instead. If you don't want this |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
959 | * behavior, and you want the standard GtkTextView behavior of |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
960 | * inserting a newline into the buffer, then call this function. |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
961 | * |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
962 | * @param imhtml The GtkIMHtml where you want the "return" key to add |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
963 | * newline and not emit the "message_send" signal. |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
964 | */ |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
965 | void gtk_imhtml_set_return_inserts_newline(GtkIMHtml *imhtml); |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
966 | |
|
27032
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
967 | /** |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
968 | * By default this widget populates the PRIMARY clipboard with any selected |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
969 | * text (as you would expect). For scenarios (e.g. select-on-focus) where this |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
970 | * would be problematic, this function can disable the PRIMARY population. |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
971 | * |
|
27039
9bc89c7c3aee
Changelog the GtkIMHtml PRIMARY clipboard API addition and fix a typo in
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
27032
diff
changeset
|
972 | * @param imhtml The GtkIMHtml to enable/disable populating PRIMARY |
|
27032
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
973 | * @param populate enable/disable PRIMARY population |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
974 | */ |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
975 | void gtk_imhtml_set_populate_primary_clipboard(GtkIMHtml *imhtml, gboolean populate); |
|
991e2899be82
Avoid overwriting the PRIMARY clipboard when we select-on-focus the status text for easy editing. Fixes #8781.
Daniel Atallah <datallah@pidgin.im>
parents:
26818
diff
changeset
|
976 | |
| 9033 | 977 | /*@}*/ |
| 978 | ||
| 1428 | 979 | #ifdef __cplusplus |
| 980 | } | |
| 981 | #endif | |
| 982 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
983 | #endif /* _PIDGINIMHTML_H_ */ |