Tue, 07 May 2013 05:04:46 -0400
Rewrite debug window filter in JS.
Note, this does cause a couple regressions, but they are probably not
that big a deal. First, the JS regular expression syntax is slightly
different. Second, the JS regex API lacks a way to reliably determine
the location of matched groups, so we can't highlight just the groups
and must highlight the entire expression.
I suspect that none of our users ever had to use any fancy regex in the
debug window, and that most of our developers didn't even know it could
be done. So I doubt these regressions will cause much pain.
|
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 | |
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32656
diff
changeset
|
34 | G_BEGIN_DECLS |
| 1428 | 35 | |
| 9033 | 36 | /************************************************************************** |
| 37 | * @name Structures | |
| 38 | **************************************************************************/ | |
| 39 | /*@{*/ | |
| 40 | ||
|
26818
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
41 | #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
|
42 | #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
|
43 | #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
|
44 | #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
|
45 | #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
|
46 | #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
|
47 | #define GTK_IMHTML_ANIMATION(obj) ((GtkIMHtmlAnimation *)obj) |
| 1428 | 48 | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
49 | typedef struct _GtkIMHtml GtkIMHtml; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
50 | typedef struct _GtkIMHtmlClass GtkIMHtmlClass; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
51 | typedef struct _GtkSmileyTree GtkSmileyTree; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
52 | typedef struct _GtkIMHtmlSmiley GtkIMHtmlSmiley; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
53 | typedef struct _GtkIMHtmlScalable GtkIMHtmlScalable; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
54 | 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
|
55 | typedef struct _GtkIMHtmlAnimation GtkIMHtmlAnimation; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
56 | typedef struct _GtkIMHtmlHr GtkIMHtmlHr; |
| 8962 | 57 | 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
|
58 | |
|
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
|
59 | typedef struct _GtkIMHtmlLink GtkIMHtmlLink; |
| 8061 | 60 | |
| 8420 | 61 | typedef enum { |
| 10776 | 62 | GTK_IMHTML_BOLD = 1 << 0, |
| 63 | GTK_IMHTML_ITALIC = 1 << 1, | |
| 64 | GTK_IMHTML_UNDERLINE = 1 << 2, | |
| 65 | GTK_IMHTML_GROW = 1 << 3, | |
| 66 | GTK_IMHTML_SHRINK = 1 << 4, | |
| 67 | GTK_IMHTML_FACE = 1 << 5, | |
| 68 | GTK_IMHTML_FORECOLOR = 1 << 6, | |
| 69 | GTK_IMHTML_BACKCOLOR = 1 << 7, | |
| 70 | GTK_IMHTML_BACKGROUND = 1 << 8, | |
| 71 | GTK_IMHTML_LINK = 1 << 9, | |
| 72 | GTK_IMHTML_IMAGE = 1 << 10, | |
| 73 | GTK_IMHTML_SMILEY = 1 << 11, | |
| 74 | GTK_IMHTML_LINKDESC = 1 << 12, | |
| 75 | GTK_IMHTML_STRIKE = 1 << 13, | |
|
32604
8d0a34f26244
Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
Andrew Victor <andrew.victor@mxit.com>
parents:
32296
diff
changeset
|
76 | /** Show custom smileys when appropriate. */ |
|
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
|
77 | GTK_IMHTML_CUSTOM_SMILEY = 1 << 14, |
| 10776 | 78 | GTK_IMHTML_ALL = -1 |
| 8420 | 79 | } GtkIMHtmlButtons; |
| 8061 | 80 | |
|
11525
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
81 | typedef enum { |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
82 | GTK_IMHTML_SMILEY_CUSTOM = 1 << 0 |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
83 | } GtkIMHtmlSmileyFlags; |
|
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
84 | |
| 1428 | 85 | struct _GtkIMHtml { |
| 3922 | 86 | GtkTextView text_view; |
| 87 | GtkTextBuffer *text_buffer; | |
| 1428 | 88 | GdkCursor *hand_cursor; |
| 89 | GdkCursor *arrow_cursor; | |
| 8061 | 90 | GdkCursor *text_cursor; |
| 4032 | 91 | GHashTable *smiley_data; |
| 92 | GtkSmileyTree *default_smilies; | |
| 8456 | 93 | char *protocol_name; |
| 10798 | 94 | guint scroll_src; |
| 95 | 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
|
96 | 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
|
97 | int num_animations; |
| 4254 | 98 | |
|
6124
322206d79652
[gaim-migrate @ 6598]
Mark Doliner <markdoliner@pidgin.im>
parents:
6066
diff
changeset
|
99 | gboolean show_comments; |
| 4735 | 100 | |
| 101 | GtkWidget *tip_window; | |
| 102 | char *tip; | |
| 103 | guint tip_timer; | |
| 10799 | 104 | GtkTextTag *prelit_tag; |
| 4895 | 105 | |
| 106 | GList *scalables; | |
| 4947 | 107 | GdkRectangle old_rect; |
| 7295 | 108 | |
| 8061 | 109 | gchar *search_string; |
| 7694 | 110 | |
| 8061 | 111 | gboolean editable; |
| 8420 | 112 | GtkIMHtmlButtons format_functions; |
| 8677 | 113 | gboolean wbfo; /* Whole buffer formatting only. */ |
| 114 | ||
| 115 | gint insert_offset; | |
| 8420 | 116 | |
| 8061 | 117 | struct { |
| 8677 | 118 | gboolean bold:1; |
| 119 | gboolean italic:1; | |
| 120 | gboolean underline:1; | |
| 9924 | 121 | gboolean strike:1; |
| 8677 | 122 | gchar *forecolor; |
| 123 | gchar *backcolor; | |
| 10776 | 124 | gchar *background; |
| 8677 | 125 | gchar *fontface; |
| 8061 | 126 | int fontsize; |
| 8677 | 127 | GtkTextTag *link; |
| 8061 | 128 | } edit; |
|
8740
098a43943bba
[gaim-migrate @ 9495]
Christian Hammond <chipx86@chipx86.com>
parents:
8735
diff
changeset
|
129 | |
| 8962 | 130 | GSList *im_images; |
| 131 | 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
|
132 | GtkSourceUndoManager *undo_manager; |
| 1428 | 133 | }; |
| 134 | ||
| 135 | struct _GtkIMHtmlClass { | |
| 3922 | 136 | GtkTextViewClass parent_class; |
| 1428 | 137 | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
138 | void (*url_clicked)(GtkIMHtml *, const gchar *); |
| 8420 | 139 | void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons); |
| 140 | void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons); | |
| 8427 | 141 | void (*clear_format)(GtkIMHtml *); |
| 8506 | 142 | void (*update_format)(GtkIMHtml *); |
| 10108 | 143 | 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
|
144 | 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
|
145 | 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
|
146 | GList *protocols; /* List of GtkIMHtmlProtocol's */ |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
147 | }; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
148 | |
| 4263 | 149 | struct _GtkIMHtmlSmiley { |
| 150 | gchar *smile; | |
| 151 | gchar *file; | |
| 6814 | 152 | GdkPixbufAnimation *icon; |
| 4263 | 153 | gboolean hidden; |
| 10526 | 154 | GdkPixbufLoader *loader; |
|
11525
1d06283bdcc9
[gaim-migrate @ 13773]
Francesco Fracassi <ffracassi@users.sourceforge.net>
parents:
11485
diff
changeset
|
155 | GSList *anchors; |
| 12335 | 156 | GtkIMHtmlSmileyFlags flags; |
| 157 | GtkIMHtml *imhtml; | |
|
32604
8d0a34f26244
Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
Andrew Victor <andrew.victor@mxit.com>
parents:
32296
diff
changeset
|
158 | gpointer data; |
|
8d0a34f26244
Clean the API documentation in preparation for 3.0.0 by removing all the old @since tags.
Andrew Victor <andrew.victor@mxit.com>
parents:
32296
diff
changeset
|
159 | gsize datasize; |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
160 | }; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
161 | |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
162 | typedef enum { |
| 12553 | 163 | GTK_IMHTML_NO_COLOURS = 1 << 0, |
| 164 | GTK_IMHTML_NO_FONTS = 1 << 1, | |
| 165 | GTK_IMHTML_NO_COMMENTS = 1 << 2, /* Remove */ | |
| 166 | GTK_IMHTML_NO_TITLE = 1 << 3, | |
| 167 | GTK_IMHTML_NO_NEWLINE = 1 << 4, | |
| 168 | GTK_IMHTML_NO_SIZES = 1 << 5, | |
| 169 | GTK_IMHTML_NO_SCROLL = 1 << 6, | |
| 170 | GTK_IMHTML_RETURN_LOG = 1 << 7, | |
| 171 | GTK_IMHTML_USE_POINTSIZE = 1 << 8, | |
| 172 | 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
|
173 | GTK_IMHTML_USE_SMOOTHSCROLLING = 1 << 10, |
|
33217
7e266d890064
Remove trailing commas from enums.
David Michael <fedora.dm0@gmail.com>
parents:
31310
diff
changeset
|
174 | GTK_IMHTML_NO_SMILEY = 1 << 11 |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
175 | } GtkIMHtmlOptions; |
|
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
176 | |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
177 | enum { |
|
33191
fc3bb5ccd0eb
Reorder GtkIMHtml drag IDs to (mostly) match WebKit's.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
178 | GTK_IMHTML_DRAG_HTML = 0, |
|
fc3bb5ccd0eb
Reorder GtkIMHtml drag IDs to (mostly) match WebKit's.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
179 | GTK_IMHTML_DRAG_TEXT, |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
180 | GTK_IMHTML_DRAG_UTF8_STRING, |
|
33191
fc3bb5ccd0eb
Reorder GtkIMHtml drag IDs to (mostly) match WebKit's.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32790
diff
changeset
|
181 | GTK_IMHTML_DRAG_URL, |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
182 | GTK_IMHTML_DRAG_COMPOUND_TEXT, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
183 | GTK_IMHTML_DRAG_STRING, |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
184 | GTK_IMHTML_DRAG_NUM |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
185 | }; |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
186 | |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
187 | #define GTK_IMHTML_DND_TARGETS \ |
|
10345
7d7f8cfa2b4f
[gaim-migrate @ 11556]
Felipe Contreras <felipe.contreras@gmail.com>
parents:
10243
diff
changeset
|
188 | { "text/uri-list", 0, GTK_IMHTML_DRAG_URL }, \ |
|
10243
6d75b29afc71
[gaim-migrate @ 11383]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10165
diff
changeset
|
189 | { "_NETSCAPE_URL", 0, GTK_IMHTML_DRAG_URL }, \ |
|
10145
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
190 | { "text/html", 0, GTK_IMHTML_DRAG_HTML }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
191 | { "x-url/ftp", 0, GTK_IMHTML_DRAG_URL }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
192 | { "x-url/http", 0, GTK_IMHTML_DRAG_URL }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
193 | { "UTF8_STRING", 0, GTK_IMHTML_DRAG_UTF8_STRING }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
194 | { "COMPOUND_TEXT", 0, GTK_IMHTML_DRAG_COMPOUND_TEXT }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
195 | { "STRING", 0, GTK_IMHTML_DRAG_STRING }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
196 | { "text/plain", 0, GTK_IMHTML_DRAG_TEXT }, \ |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
197 | { "TEXT", 0, GTK_IMHTML_DRAG_TEXT } |
|
f1405f65ff41
[gaim-migrate @ 11218]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10108
diff
changeset
|
198 | |
| 8962 | 199 | typedef gpointer (*GtkIMHtmlGetImageFunc) (int id); |
| 200 | typedef gpointer (*GtkIMHtmlGetImageDataFunc) (gpointer i); | |
| 201 | typedef size_t (*GtkIMHtmlGetImageSizeFunc) (gpointer i); | |
| 202 | typedef const char *(*GtkIMHtmlGetImageFilenameFunc)(gpointer i); | |
| 203 | typedef void (*GtkIMHtmlImageRefFunc) (int id); | |
| 204 | typedef void (*GtkIMHtmlImageUnrefFunc) (int id); | |
| 205 | ||
| 206 | struct _GtkIMHtmlFuncs { | |
| 207 | GtkIMHtmlGetImageFunc image_get; | |
| 208 | GtkIMHtmlGetImageDataFunc image_get_data; | |
| 209 | GtkIMHtmlGetImageSizeFunc image_get_size; | |
| 210 | GtkIMHtmlGetImageFilenameFunc image_get_filename; | |
| 211 | GtkIMHtmlImageRefFunc image_ref; | |
| 212 | GtkIMHtmlImageUnrefFunc image_unref; | |
| 213 | }; | |
| 214 | ||
| 9033 | 215 | /*@}*/ |
| 8962 | 216 | |
| 9033 | 217 | /************************************************************************** |
| 218 | * @name GTK+ IM/HTML rendering component API | |
| 219 | **************************************************************************/ | |
| 220 | /*@{*/ | |
| 221 | ||
| 222 | /** | |
| 9037 | 223 | * Returns the GType object for an IM/HTML widget. |
| 9033 | 224 | * |
| 9037 | 225 | * @return The GType for an IM/HTML widget. |
| 9033 | 226 | */ |
| 9037 | 227 | GType gtk_imhtml_get_type(void); |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
228 | |
| 9033 | 229 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
230 | * Creates and returns a new GTK+ IM/HTML widget. |
| 9033 | 231 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
232 | * @return The GTK+ IM/HTML widget created. |
| 9033 | 233 | */ |
| 234 | GtkWidget *gtk_imhtml_new(void *, void *); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
235 | |
| 9033 | 236 | /** |
| 10526 | 237 | * Returns the smiley object associated with the text. |
| 238 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
239 | * @param imhtml The GTK+ IM/HTML. |
| 10526 | 240 | * @param sml The name of the smiley category. |
| 241 | * @param text The text associated with the smiley. | |
| 242 | */ | |
| 243 | ||
| 244 | GtkIMHtmlSmiley *gtk_imhtml_smiley_get(GtkIMHtml * imhtml, | |
| 245 | const gchar * sml, const gchar * text); | |
| 246 | ||
| 247 | ||
| 248 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
249 | * Associates a smiley with a GTK+ IM/HTML. |
| 9033 | 250 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
251 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 252 | * @param sml The name of the smiley category. |
| 253 | * @param smiley The GtkIMSmiley to associate. | |
| 254 | */ | |
|
10537
9ece7671fa62
[gaim-migrate @ 11890]
Mark Doliner <markdoliner@pidgin.im>
parents:
10526
diff
changeset
|
255 | void gtk_imhtml_associate_smiley(GtkIMHtml *imhtml, const gchar *sml, GtkIMHtmlSmiley *smiley); |
| 9033 | 256 | |
| 257 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
258 | * Removes all smileys associated with a GTK+ IM/HTML. |
| 9033 | 259 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
260 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 261 | */ |
| 262 | void gtk_imhtml_remove_smileys(GtkIMHtml *imhtml); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
263 | |
| 9033 | 264 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
265 | * Sets the function callbacks to use with a GTK+ IM/HTML instance. |
| 9033 | 266 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
267 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 268 | * @param f The GtkIMHTMLFuncs struct containing the functions to use. |
| 269 | */ | |
| 270 | void gtk_imhtml_set_funcs(GtkIMHtml *imhtml, GtkIMHtmlFuncs *f); | |
|
5967
df8268ccde45
[gaim-migrate @ 6414]
Mark Doliner <markdoliner@pidgin.im>
parents:
5537
diff
changeset
|
271 | |
| 9033 | 272 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
273 | * Enables or disables showing the contents of HTML comments in a GTK+ IM/HTML. |
| 9033 | 274 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
275 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 276 | * @param show @c TRUE if comments should be shown, or @c FALSE otherwise. |
| 277 | */ | |
| 278 | void gtk_imhtml_show_comments(GtkIMHtml *imhtml, gboolean show); | |
| 8962 | 279 | |
| 9033 | 280 | /** |
|
11814
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
281 | * Gets the protocol name associated with this GTK+ IM/HTML. |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
282 | * |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
283 | * @param imhtml The GTK+ IM/HTML |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
284 | */ |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
285 | const char *gtk_imhtml_get_protocol_name(GtkIMHtml *imhtml); |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
286 | |
|
5003711283c0
[gaim-migrate @ 14105]
Richard Laager <rlaager@pidgin.im>
parents:
11525
diff
changeset
|
287 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
288 | * Associates a protocol name with a GTK+ IM/HTML. |
| 9033 | 289 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
290 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 291 | * @param protocol_name The protocol name to associate with the IM/HTML. |
| 292 | */ | |
| 293 | void gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, const gchar *protocol_name); | |
| 8456 | 294 | |
| 9033 | 295 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
296 | * Appends HTML formatted text to a GTK+ IM/HTML. |
| 9033 | 297 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
298 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 299 | * @param text The formatted text to append. |
| 300 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
| 301 | */ | |
| 9307 | 302 | #define gtk_imhtml_append_text(imhtml, text, options) \ |
| 303 | gtk_imhtml_append_text_with_images(imhtml, text, options, NULL) | |
|
6982
12f08de92674
[gaim-migrate @ 7538]
Mark Doliner <markdoliner@pidgin.im>
parents:
6814
diff
changeset
|
304 | |
| 9033 | 305 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
306 | * Appends HTML formatted text to a GTK+ IM/HTML. |
| 9033 | 307 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
308 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 309 | * @param text The formatted text to append. |
| 310 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
| 9185 | 311 | * @param unused Use @c NULL value. |
| 9033 | 312 | */ |
| 313 | void gtk_imhtml_append_text_with_images(GtkIMHtml *imhtml, | |
| 314 | const gchar *text, | |
| 315 | GtkIMHtmlOptions options, | |
| 316 | GSList *unused); | |
| 317 | ||
| 318 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
319 | * Inserts HTML formatted text to a GTK+ IM/HTML at a given iter. |
| 9033 | 320 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
321 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 322 | * @param text The formatted text to append. |
| 323 | * @param options A GtkIMHtmlOptions object indicating insert behavior. | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
324 | * @param iter A GtkTextIter in the GTK+ IM/HTML at which to insert text. |
| 9033 | 325 | */ |
| 8677 | 326 | void gtk_imhtml_insert_html_at_iter(GtkIMHtml *imhtml, |
| 327 | const gchar *text, | |
| 328 | GtkIMHtmlOptions options, | |
| 329 | GtkTextIter *iter); | |
| 9033 | 330 | |
| 331 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
332 | * Scrolls a GTK+ IM/HTML to the end of its contents. |
| 9033 | 333 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
334 | * @param imhtml The GTK+ IM/HTML. |
|
12557
6c318efafe32
[gaim-migrate @ 14876]
Richard Laager <rlaager@pidgin.im>
parents:
12553
diff
changeset
|
335 | * @param smooth A boolean indicating if smooth scrolling should be used. |
| 9033 | 336 | */ |
| 12553 | 337 | void gtk_imhtml_scroll_to_end(GtkIMHtml *imhtml, gboolean smooth); |
| 9033 | 338 | |
| 339 | /** | |
|
11224
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
340 | * 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
|
341 | * |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
342 | * @param imhtml The GTK+ IM/HTML. |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
343 | * @param start a postition in the imhtml's buffer |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
344 | * @param end another postition in the imhtml's buffer |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
345 | */ |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
346 | void gtk_imhtml_delete(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end); |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
347 | |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
348 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
349 | * Purges the contents from a GTK+ IM/HTML and resets formatting. |
| 9033 | 350 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
351 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 352 | */ |
|
11224
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
353 | #define gtk_imhtml_clear(imhtml) \ |
|
04c1712bb953
[gaim-migrate @ 13360]
Daniel Atallah <datallah@pidgin.im>
parents:
10814
diff
changeset
|
354 | gtk_imhtml_delete(imhtml, NULL, NULL) |
| 4895 | 355 | |
| 9033 | 356 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
357 | * Scrolls a GTK+ IM/HTML up by one page. |
| 9033 | 358 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
359 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 360 | */ |
| 361 | void gtk_imhtml_page_up(GtkIMHtml *imhtml); | |
| 362 | ||
| 363 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
364 | * Scrolls a GTK+ IM/HTML down by one page. |
| 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 | */ |
| 368 | void gtk_imhtml_page_down(GtkIMHtml *imhtml); | |
| 369 | ||
| 370 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
371 | * Creates and returns an new GTK+ IM/HTML scalable object. |
| 9033 | 372 | * |
| 373 | * @return A new IM/HTML Scalable object. | |
| 374 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11814
diff
changeset
|
375 | GtkIMHtmlScalable *gtk_imhtml_scalable_new(void); |
| 9033 | 376 | |
| 377 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
378 | * Creates and returns an new GTK+ IM/HTML scalable with a horizontal rule. |
| 9033 | 379 | * |
| 380 | * @return A new IM/HTML Scalable object with an image. | |
| 381 | */ | |
|
12323
f52908fb23b0
[gaim-migrate @ 14627]
Richard Laager <rlaager@pidgin.im>
parents:
11814
diff
changeset
|
382 | GtkIMHtmlScalable *gtk_imhtml_hr_new(void); |
| 9033 | 383 | |
| 384 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
385 | * Destroys and frees a GTK+ IM/HTML scalable horizontal rule. |
| 9033 | 386 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
387 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 388 | */ |
| 9034 | 389 | void gtk_imhtml_hr_free(GtkIMHtmlScalable *scale); |
| 9033 | 390 | |
| 391 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
392 | * Rescales a GTK+ IM/HTML scalable horizontal rule to a given size. |
| 9033 | 393 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
394 | * @param scale The GTK+ IM/HTML scalable. |
| 9033 | 395 | * @param width The new width. |
| 396 | * @param height The new height. | |
| 397 | */ | |
| 9034 | 398 | void gtk_imhtml_hr_scale(GtkIMHtmlScalable *scale, int width, int height); |
| 4895 | 399 | |
| 9033 | 400 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
401 | * Adds a GTK+ IM/HTML scalable horizontal rule to a given GTK+ IM/HTML at |
| 9033 | 402 | * a given iter. |
| 403 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
404 | * @param scale The GTK+ IM/HTML scalable. |
|
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
405 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 406 | * @param iter The GtkTextIter at which to add the scalable. |
| 407 | */ | |
| 9307 | 408 | void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter); |
| 9033 | 409 | |
| 410 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
411 | * Finds and highlights a given string in a GTK+ IM/HTML. |
| 9033 | 412 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
413 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 414 | * @param text The string to search for. |
| 415 | * | |
| 416 | * @return @c TRUE if a search was performed, or @c FALSE if not. | |
| 417 | */ | |
| 7295 | 418 | gboolean gtk_imhtml_search_find(GtkIMHtml *imhtml, const gchar *text); |
| 9033 | 419 | |
| 420 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
421 | * Clears the highlighting from a prior search in a GTK+ IM/HTML. |
| 9033 | 422 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
423 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 424 | */ |
| 7295 | 425 | void gtk_imhtml_search_clear(GtkIMHtml *imhtml); |
| 4895 | 426 | |
| 9033 | 427 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
428 | * Enables or disables editing in a GTK+ IM/HTML. |
| 9033 | 429 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
430 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 431 | * @param editable @c TRUE to make the widget editable, or @c FALSE otherwise. |
| 432 | */ | |
| 8061 | 433 | void gtk_imhtml_set_editable(GtkIMHtml *imhtml, gboolean editable); |
| 9033 | 434 | |
| 435 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
436 | * Enables or disables whole buffer formatting only (wbfo) in a GTK+ IM/HTML. |
| 9033 | 437 | * In this mode formatting options to the buffer take effect for the entire |
| 438 | * buffer instead of specific text. | |
| 439 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
440 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 441 | * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise. |
| 442 | */ | |
| 8677 | 443 | void gtk_imhtml_set_whole_buffer_formatting_only(GtkIMHtml *imhtml, gboolean wbfo); |
| 9033 | 444 | |
| 445 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
446 | * Indicates which formatting functions to enable and disable in a GTK+ IM/HTML. |
| 9033 | 447 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
448 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 449 | * @param buttons A GtkIMHtmlButtons bitmask indicating which functions to use. |
| 9033 | 450 | */ |
| 8420 | 451 | void gtk_imhtml_set_format_functions(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons); |
| 9033 | 452 | |
| 453 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
454 | * Returns which formatting functions are enabled in a GTK+ IM/HTML. |
| 9033 | 455 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
456 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 457 | * |
| 9185 | 458 | * @return A GtkIMHtmlButtons bitmask indicating which functions to are enabled. |
| 9033 | 459 | */ |
|
8788
a13634443a38
[gaim-migrate @ 9550]
Mark Doliner <markdoliner@pidgin.im>
parents:
8740
diff
changeset
|
460 | GtkIMHtmlButtons gtk_imhtml_get_format_functions(GtkIMHtml *imhtml); |
| 9033 | 461 | |
| 462 | /** | |
|
12900
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
463 | * 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
|
464 | * is enabled at the current position in a GTK+ IM/HTML. |
| 9033 | 465 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
466 | * @param imhtml The GTK+ IM/HTML. |
|
12900
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
467 | * @param bold The boolean to set for bold or @c NULL. |
|
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
468 | * @param italic The boolean to set for italic or @c NULL. |
|
7fe519669e07
[gaim-migrate @ 15253]
Richard Laager <rlaager@pidgin.im>
parents:
12557
diff
changeset
|
469 | * @param underline The boolean to set for underline or @c NULL. |
| 9033 | 470 | */ |
| 8516 | 471 | void gtk_imhtml_get_current_format(GtkIMHtml *imhtml, gboolean *bold, gboolean *italic, gboolean *underline); |
| 9033 | 472 | |
| 473 | /** | |
| 474 | * 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
|
475 | * in a GTK+ IM/HTML. |
| 9033 | 476 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
477 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 478 | * |
| 479 | * @return A string containg the font face or @c NULL if none is set. | |
| 480 | */ | |
| 9025 | 481 | char *gtk_imhtml_get_current_fontface(GtkIMHtml *imhtml); |
| 9033 | 482 | |
| 483 | /** | |
| 484 | * 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
|
485 | * position in a GTK+ IM/HTML. |
| 9033 | 486 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
487 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 488 | * |
| 489 | * @return A string containg the foreground color or @c NULL if none is set. | |
| 490 | */ | |
| 9025 | 491 | char *gtk_imhtml_get_current_forecolor(GtkIMHtml *imhtml); |
| 9033 | 492 | |
| 493 | /** | |
| 10776 | 494 | * 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
|
495 | * position in a GTK+ IM/HTML. |
| 10776 | 496 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
497 | * @param imhtml The GTK+ IM/HTML. |
| 10776 | 498 | * |
| 499 | * @return A string containg the font background color or @c NULL if none is set. | |
| 500 | */ | |
| 501 | char *gtk_imhtml_get_current_backcolor(GtkIMHtml *imhtml); | |
| 502 | ||
| 503 | /** | |
| 9033 | 504 | * 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
|
505 | * position in a GTK+ IM/HTML. |
| 9033 | 506 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
507 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 508 | * |
| 509 | * @return A string containg the background color or @c NULL if none is set. | |
| 510 | */ | |
| 10776 | 511 | char *gtk_imhtml_get_current_background(GtkIMHtml *imhtml); |
| 9033 | 512 | |
| 513 | /** | |
| 514 | * 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
|
515 | * position in a GTK+ IM/HTML. |
| 9033 | 516 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
517 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 518 | * |
| 519 | * @return The HTML font size. | |
| 520 | */ | |
| 9025 | 521 | gint gtk_imhtml_get_current_fontsize(GtkIMHtml *imhtml); |
| 9033 | 522 | |
| 523 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
524 | * Checks whether a GTK+ IM/HTML is marked as editable. |
| 9033 | 525 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
526 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 527 | * |
| 528 | * @return @c TRUE if the IM/HTML is editable, or @c FALSE otherwise. | |
| 529 | */ | |
| 8061 | 530 | gboolean gtk_imhtml_get_editable(GtkIMHtml *imhtml); |
| 9033 | 531 | |
| 532 | /** | |
|
11269
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
533 | * Clear all the formatting on a GTK+ IM/HTML. |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
534 | * |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
535 | * @param imhtml The GTK+ IM/HTML. |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
536 | */ |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
537 | void gtk_imhtml_clear_formatting(GtkIMHtml *imhtml); |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
538 | |
|
ca63789d57b9
[gaim-migrate @ 13451]
Richard Laager <rlaager@pidgin.im>
parents:
11267
diff
changeset
|
539 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
540 | * Toggles bold at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 541 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
542 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 543 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
544 | void gtk_imhtml_toggle_bold(GtkIMHtml *imhtml); |
| 9033 | 545 | |
| 546 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
547 | * Toggles italic at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 548 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
549 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 550 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
551 | void gtk_imhtml_toggle_italic(GtkIMHtml *imhtml); |
| 9033 | 552 | |
| 553 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
554 | * Toggles underline at the cursor location or selection in a GTK+ IM/HTML. |
| 9033 | 555 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
556 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 557 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
558 | void gtk_imhtml_toggle_underline(GtkIMHtml *imhtml); |
| 9033 | 559 | |
| 560 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
561 | * Toggles strikethrough at the cursor location or selection in a GTK+ IM/HTML. |
| 9924 | 562 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
563 | * @param imhtml The GTK+ IM/HTML. |
| 9924 | 564 | */ |
|
11267
78f1eb5b3d6e
[gaim-migrate @ 13449]
Richard Laager <rlaager@pidgin.im>
parents:
11224
diff
changeset
|
565 | void gtk_imhtml_toggle_strike(GtkIMHtml *imhtml); |
| 9924 | 566 | |
| 567 | /** | |
| 9033 | 568 | * Toggles a foreground color at the current location or selection in a GTK |
| 569 | * IM/HTML. | |
| 570 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
571 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 572 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 9033 | 573 | * |
| 574 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 575 | */ | |
| 8061 | 576 | gboolean gtk_imhtml_toggle_forecolor(GtkIMHtml *imhtml, const char *color); |
| 9033 | 577 | |
| 578 | /** | |
| 579 | * Toggles a background color at the current location or selection in a GTK | |
| 580 | * IM/HTML. | |
| 581 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
582 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 583 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 9033 | 584 | * |
| 585 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 586 | */ | |
| 8061 | 587 | gboolean gtk_imhtml_toggle_backcolor(GtkIMHtml *imhtml, const char *color); |
| 9033 | 588 | |
| 589 | /** | |
| 10776 | 590 | * Toggles a background color at the current location or selection in a GTK |
| 591 | * IM/HTML. | |
| 592 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
593 | * @param imhtml The GTK+ IM/HTML. |
| 10776 | 594 | * @param color The HTML-style color, or @c NULL or "" to clear the color. |
| 595 | * | |
| 596 | * @return @c TRUE if a color was set, or @c FALSE if it was cleared. | |
| 597 | */ | |
| 598 | gboolean gtk_imhtml_toggle_background(GtkIMHtml *imhtml, const char *color); | |
| 599 | ||
| 600 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
601 | * Toggles a font face at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 602 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
603 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 604 | * @param face The font face name, or @c NULL or "" to clear the font. |
| 9033 | 605 | * |
| 606 | * @return @c TRUE if a font name was set, or @c FALSE if it was cleared. | |
| 607 | */ | |
| 8061 | 608 | gboolean gtk_imhtml_toggle_fontface(GtkIMHtml *imhtml, const char *face); |
| 9033 | 609 | |
| 610 | /** | |
| 611 | * 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
|
612 | * in a GTK+ IM/HTML. |
| 9033 | 613 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
614 | * @param imhtml The GTK+ IM/HTML. |
| 9185 | 615 | * @param url The URL for the link or @c NULL to terminate the link. |
| 9033 | 616 | */ |
| 8677 | 617 | void gtk_imhtml_toggle_link(GtkIMHtml *imhtml, const char *url); |
| 9033 | 618 | |
| 619 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
620 | * Inserts a link to the given url at the given GtkTextMark 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 | * @param mark The GtkTextMark to insert the link at. |
| 624 | * @param url The URL for the link. | |
| 625 | * @param text The string to use for the link description. | |
| 626 | */ | |
| 8677 | 627 | void gtk_imhtml_insert_link(GtkIMHtml *imhtml, GtkTextMark *mark, const char *url, const char *text); |
| 9033 | 628 | |
| 629 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
630 | * Inserts a smiley at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 631 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
632 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 633 | * @param sml The category of the smiley. |
| 634 | * @param smiley The text of the smiley to insert. | |
| 635 | */ | |
| 8061 | 636 | void gtk_imhtml_insert_smiley(GtkIMHtml *imhtml, const char *sml, char *smiley); |
| 9033 | 637 | /** |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
638 | * Inserts a smiley at the given iter in a GTK+ IM/HTML. |
| 9033 | 639 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
640 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 641 | * @param sml The category of the smiley. |
| 642 | * @param smiley The text of the smiley to insert. | |
| 643 | * @param iter The GtkTextIter in the IM/HTML to insert the smiley at. | |
| 644 | */ | |
| 8677 | 645 | void gtk_imhtml_insert_smiley_at_iter(GtkIMHtml *imhtml, const char *sml, char *smiley, GtkTextIter *iter); |
| 9033 | 646 | |
| 647 | /** | |
| 648 | * 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
|
649 | * GTK+ IM/HTML. |
| 9033 | 650 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
651 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 652 | * @param id The id of the IM/HTML scalable. |
| 653 | * @param iter The GtkTextIter in the IM/HTML to insert the image at. | |
| 654 | */ | |
| 8962 | 655 | void gtk_imhtml_insert_image_at_iter(GtkIMHtml *imhtml, int id, GtkTextIter *iter); |
| 9033 | 656 | |
| 657 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
658 | * Sets the font size at the current location or selection in a GTK+ IM/HTML. |
| 9033 | 659 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
660 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 661 | * @param size The HTML font size to use. |
| 662 | */ | |
| 8061 | 663 | void gtk_imhtml_font_set_size(GtkIMHtml *imhtml, gint size); |
| 9033 | 664 | |
| 665 | /** | |
| 666 | * Decreases the font size by 1 at the current location or selection in a GTK | |
| 667 | * IM/HTML. | |
| 668 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
669 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 670 | */ |
| 8061 | 671 | void gtk_imhtml_font_shrink(GtkIMHtml *imhtml); |
| 9033 | 672 | |
| 673 | /** | |
| 674 | * Increases the font size by 1 at the current location or selection in a GTK | |
| 675 | * IM/HTML. | |
| 676 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
677 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 678 | */ |
| 8061 | 679 | void gtk_imhtml_font_grow(GtkIMHtml *imhtml); |
| 9033 | 680 | |
| 681 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
682 | * Returns the HTML formatted contents between two iters 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 | * @param start The GtkTextIter indicating the start point in the IM/HTML. |
| 686 | * @param end The GtkTextIter indicating the end point in the IM/HTML. | |
| 687 | * | |
| 688 | * @return A string containing the HTML formatted text. | |
| 689 | */ | |
| 8061 | 690 | char *gtk_imhtml_get_markup_range(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end); |
| 9033 | 691 | |
| 692 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
693 | * Returns the entire HTML formatted contents of a GTK+ IM/HTML. |
| 9033 | 694 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
695 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 696 | * |
| 697 | * @return A string containing the HTML formatted text. | |
| 698 | */ | |
| 8061 | 699 | char *gtk_imhtml_get_markup(GtkIMHtml *imhtml); |
| 9033 | 700 | |
| 701 | /** | |
| 702 | * Returns a null terminated array of pointers to null terminated strings, each | |
| 703 | * string for each line. g_strfreev() should be called to free it when done. | |
| 704 | * | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
705 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 706 | * |
| 707 | * @return A null terminated array of null terminated HTML formatted strings. | |
| 708 | */ | |
| 8677 | 709 | char **gtk_imhtml_get_markup_lines(GtkIMHtml *imhtml); |
| 9033 | 710 | |
| 711 | /** | |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
712 | * 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
|
713 | * between two iters in a GTK+ IM/HTML. |
| 9033 | 714 | * |
|
10814
7e17cb56b019
[gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents:
10799
diff
changeset
|
715 | * @param imhtml The GTK+ IM/HTML. |
| 9033 | 716 | * @param start The GtkTextIter indicating the start point in the IM/HTML. |
| 9185 | 717 | * @param stop The GtkTextIter indicating the end point in the IM/HTML. |
| 9033 | 718 | * |
| 719 | * @return A string containing the unformatted text. | |
| 720 | */ | |
| 8677 | 721 | char *gtk_imhtml_get_text(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *stop); |
| 8061 | 722 | |
|
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
|
723 | /** |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
724 | * 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
|
725 | * |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
726 | * @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
|
727 | * @param flags The connection flag which describes the allowed types of formatting. |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
728 | */ |
|
8be39f0de528
Allow formatted text in the pounce dialog. Also, use the same code to
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16385
diff
changeset
|
729 | 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
|
730 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
731 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
732 | * Create a new GtkIMHtmlSmiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
733 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
734 | * @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
|
735 | * @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
|
736 | * @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
|
737 | * @param flags The smiley flags |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
738 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
739 | * @return The newly created smiley |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
740 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
741 | 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
|
742 | 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
|
743 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
744 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
745 | * Reload the image data for the smiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
746 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
747 | * @param smiley The smiley to reload |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
748 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
749 | 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
|
750 | |
|
23366
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
751 | /** |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
752 | * Destroy a GtkIMHtmlSmiley. |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
753 | * |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
754 | * @param smiley The smiley to destroy |
|
8dc4fd250a6e
Add documentation for some new API.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
23311
diff
changeset
|
755 | */ |
|
22655
718f1149a81c
Introduce API for GtkIMHtmlSmiley. Use this to prevent leaking remote custom emoticons.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22003
diff
changeset
|
756 | 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
|
757 | |
|
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
758 | /** |
|
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
|
759 | * 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
|
760 | * 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
|
761 | * |
|
25008
f52b9372eb19
Revert the URL scheme passing changes, keeping the miscellaneous other stuff
Richard Laager <rlaager@pidgin.im>
parents:
25007
diff
changeset
|
762 | * @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
|
763 | * @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
|
764 | * 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
|
765 | * 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
|
766 | * 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
|
767 | * @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
|
768 | * 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
|
769 | * @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
|
770 | * 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
|
771 | * |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
27123
diff
changeset
|
772 | * @return @c TRUE if the protocol was successfully registered (or unregistered, when \a activate is @c NULL) |
|
24674
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
773 | */ |
|
36bf974a7d78
Allow plugins to specify custom link types to the GtkIMHtml widget.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24569
diff
changeset
|
774 | 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
|
775 | 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
|
776 | 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
|
777 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
778 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
779 | * 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
|
780 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
781 | * @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
|
782 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
783 | * @return The URL |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
784 | */ |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
785 | 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
|
786 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
787 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
788 | * 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
|
789 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
790 | * @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
|
791 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
792 | * @return The GtkTextTag object, or @c NULL |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
793 | */ |
|
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
|
794 | 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
|
795 | |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
796 | /** |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
797 | * 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
|
798 | * 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
|
799 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
800 | * @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
|
801 | * |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
802 | * @return @c TRUE if 'url-clicked' signal was emitted, @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
|
803 | */ |
|
f9dd7117ade0
Clean up some crufts. I think this is now mergeable with .next.minor.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
24674
diff
changeset
|
804 | 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
|
805 | |
|
25900
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
806 | /** |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
807 | * 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
|
808 | * 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
|
809 | * 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
|
810 | * 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
|
811 | * |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
812 | * @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
|
813 | * 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
|
814 | */ |
|
0be61f1b3dd1
Add a GtkIMHtml function that causes the widget to actually insert a
Mark Doliner <markdoliner@pidgin.im>
parents:
25885
diff
changeset
|
815 | 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
|
816 | |
|
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
|
817 | /** |
|
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
|
818 | * 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
|
819 | * 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
|
820 | * 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
|
821 | * |
|
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
|
822 | * @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
|
823 | * @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
|
824 | */ |
|
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
|
825 | 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
|
826 | |
| 9033 | 827 | /*@}*/ |
| 828 | ||
|
32790
b95c7c504118
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32656
diff
changeset
|
829 | G_END_DECLS |
| 1428 | 830 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
831 | #endif /* _PIDGINIMHTML_H_ */ |