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