annotate src/gtkimhtml.h @ 12737:a1e241dd50b6

[gaim-migrate @ 15082] Conversation and Logging Message Timestamp Formatting... The idea here is that we should honor the user's locale for message timestamps in the conversation window and in the logs. I've added a signal and created a plugin that allows one to override this. The plugin is named "Message Timestamp Formats". Enabling that will by default change the timestamps back to the format we had before this commit. (That is to say, it forces the old format and ignores the locale.) The plugin also has options to show dates in the timestamps "Always", "In Chats", or "For Delayed Messages" (the default behavior). This addresses all requests for 12 hour timestamps, allows people to continue with the 24 hour timestamps we have, even if their locale says differently, enables plugin authors to override the message timestamp formats in any way they choose, and addresses requests for complete dates in logs. To recap, if you don't like the format string your locale has, enabled the "Message Timestamp Formats" plugin. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 05 Jan 2006 20:17:36 +0000
parents adf79d8ceb2d
children 778d08e87ad0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5034
4691c5936c01 [gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents: 5012
diff changeset
1 /**
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
2 * @file gtkimhtml.h GTK+ IM/HTML rendering component
5034
4691c5936c01 [gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents: 5012
diff changeset
3 * @ingroup gtkui
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
4 *
8046
fa6395637e2c [gaim-migrate @ 8730]
Sean Egan <seanegan@gmail.com>
parents: 7988
diff changeset
5 * Gaim is the legal property of its developers, whose names are too numerous
fa6395637e2c [gaim-migrate @ 8730]
Sean Egan <seanegan@gmail.com>
parents: 7988
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
fa6395637e2c [gaim-migrate @ 8730]
Sean Egan <seanegan@gmail.com>
parents: 7988
diff changeset
7 * source distribution.
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
8 *
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
9 * This program is free software; you can redistribute it and/or modify
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
10 * under the terms of the GNU General Public License as published by
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
11 * the Free Software Foundation; either version 2 of the License, or
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
12 * (at your option) any later version.
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
13 *
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
17 * GNU General Public License for more details.
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
18 *
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
20 * along with this program; if not, write to the Free Software
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
22 */
9713
db62420a53a2 [gaim-migrate @ 10574]
Mark Doliner <mark@kingant.net>
parents: 9573
diff changeset
23 #ifndef _GAIM_GTKIMHTML_H_
db62420a53a2 [gaim-migrate @ 10574]
Mark Doliner <mark@kingant.net>
parents: 9573
diff changeset
24 #define _GAIM_GTKIMHTML_H_
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
25
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
26 #include <gdk/gdk.h>
3922
30f52e7afd1d [gaim-migrate @ 4094]
Sean Egan <seanegan@gmail.com>
parents: 3867
diff changeset
27 #include <gtk/gtktextview.h>
4735
66c2388046fb [gaim-migrate @ 5050]
Sean Egan <seanegan@gmail.com>
parents: 4371
diff changeset
28 #include <gtk/gtktooltips.h>
5012
3ee1b1409660 [gaim-migrate @ 5348]
Nathan Walp <nwalp@pidgin.im>
parents: 4947
diff changeset
29 #include <gtk/gtkimage.h>
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
30
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
31 #ifdef __cplusplus
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
32 extern "C" {
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
33 #endif
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
34
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
35 /**************************************************************************
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
36 * @name Structures
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
37 **************************************************************************/
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
38 /*@{*/
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
39
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
40 #define GTK_TYPE_IMHTML (gtk_imhtml_get_type ())
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
41 #define GTK_IMHTML(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_IMHTML, GtkIMHtml))
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
42 #define GTK_IMHTML_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMHTML, GtkIMHtmlClass))
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
43 #define GTK_IS_IMHTML(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_IMHTML))
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
44 #define GTK_IS_IMHTML_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMHTML))
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
45 #define GTK_IMHTML_SCALABLE(obj) ((GtkIMHtmlScalable *)obj)
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
46
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
47 typedef struct _GtkIMHtml GtkIMHtml;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
48 typedef struct _GtkIMHtmlClass GtkIMHtmlClass;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
49 typedef struct _GtkIMHtmlFontDetail GtkIMHtmlFontDetail; /* The five elements contained in a FONT tag */
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
50 typedef struct _GtkSmileyTree GtkSmileyTree;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
51 typedef struct _GtkIMHtmlSmiley GtkIMHtmlSmiley;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
52 typedef struct _GtkIMHtmlScalable GtkIMHtmlScalable;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
53 typedef struct _GtkIMHtmlImage GtkIMHtmlImage;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
54 typedef struct _GtkIMHtmlHr GtkIMHtmlHr;
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
55 typedef struct _GtkIMHtmlFuncs GtkIMHtmlFuncs;
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
56
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
57 typedef enum {
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
58 GTK_IMHTML_BOLD = 1 << 0,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
59 GTK_IMHTML_ITALIC = 1 << 1,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
60 GTK_IMHTML_UNDERLINE = 1 << 2,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
61 GTK_IMHTML_GROW = 1 << 3,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
62 GTK_IMHTML_SHRINK = 1 << 4,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
63 GTK_IMHTML_FACE = 1 << 5,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
64 GTK_IMHTML_FORECOLOR = 1 << 6,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
65 GTK_IMHTML_BACKCOLOR = 1 << 7,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
66 GTK_IMHTML_BACKGROUND = 1 << 8,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
67 GTK_IMHTML_LINK = 1 << 9,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
68 GTK_IMHTML_IMAGE = 1 << 10,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
69 GTK_IMHTML_SMILEY = 1 << 11,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
70 GTK_IMHTML_LINKDESC = 1 << 12,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
71 GTK_IMHTML_STRIKE = 1 << 13,
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
72 GTK_IMHTML_ALL = -1
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
73 } GtkIMHtmlButtons;
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
74
11525
b47708f46a38 [gaim-migrate @ 13773]
Tim Ringenbach <marv@pidgin.im>
parents: 11485
diff changeset
75 typedef enum {
b47708f46a38 [gaim-migrate @ 13773]
Tim Ringenbach <marv@pidgin.im>
parents: 11485
diff changeset
76 GTK_IMHTML_SMILEY_CUSTOM = 1 << 0
b47708f46a38 [gaim-migrate @ 13773]
Tim Ringenbach <marv@pidgin.im>
parents: 11485
diff changeset
77 } GtkIMHtmlSmileyFlags;
b47708f46a38 [gaim-migrate @ 13773]
Tim Ringenbach <marv@pidgin.im>
parents: 11485
diff changeset
78
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
79 struct _GtkIMHtml {
3922
30f52e7afd1d [gaim-migrate @ 4094]
Sean Egan <seanegan@gmail.com>
parents: 3867
diff changeset
80 GtkTextView text_view;
30f52e7afd1d [gaim-migrate @ 4094]
Sean Egan <seanegan@gmail.com>
parents: 3867
diff changeset
81 GtkTextBuffer *text_buffer;
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
82 GdkCursor *hand_cursor;
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
83 GdkCursor *arrow_cursor;
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
84 GdkCursor *text_cursor;
4032
2b3a9d8f168e [gaim-migrate @ 4238]
Sean Egan <seanegan@gmail.com>
parents: 3922
diff changeset
85 GHashTable *smiley_data;
2b3a9d8f168e [gaim-migrate @ 4238]
Sean Egan <seanegan@gmail.com>
parents: 3922
diff changeset
86 GtkSmileyTree *default_smilies;
8456
5f8d4ab6d375 [gaim-migrate @ 9186]
Luke Schierer <lschiere@pidgin.im>
parents: 8427
diff changeset
87 char *protocol_name;
10798
08981462ebbb [gaim-migrate @ 12441]
Tim Ringenbach <marv@pidgin.im>
parents: 10797
diff changeset
88 guint scroll_src;
08981462ebbb [gaim-migrate @ 12441]
Tim Ringenbach <marv@pidgin.im>
parents: 10797
diff changeset
89 GTimer *scroll_time;
4254
e9f243406a3d [gaim-migrate @ 4505]
Sean Egan <seanegan@gmail.com>
parents: 4046
diff changeset
90
6124
16fd7811effd [gaim-migrate @ 6598]
Mark Doliner <mark@kingant.net>
parents: 6066
diff changeset
91 gboolean show_comments;
4735
66c2388046fb [gaim-migrate @ 5050]
Sean Egan <seanegan@gmail.com>
parents: 4371
diff changeset
92
66c2388046fb [gaim-migrate @ 5050]
Sean Egan <seanegan@gmail.com>
parents: 4371
diff changeset
93 GtkWidget *tip_window;
66c2388046fb [gaim-migrate @ 5050]
Sean Egan <seanegan@gmail.com>
parents: 4371
diff changeset
94 char *tip;
66c2388046fb [gaim-migrate @ 5050]
Sean Egan <seanegan@gmail.com>
parents: 4371
diff changeset
95 guint tip_timer;
10799
6f67d4088da0 [gaim-migrate @ 12442]
Tim Ringenbach <marv@pidgin.im>
parents: 10798
diff changeset
96 GtkTextTag *prelit_tag;
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
97
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
98 GList *scalables;
4947
24c9a23df63b [gaim-migrate @ 5281]
Sean Egan <seanegan@gmail.com>
parents: 4895
diff changeset
99 GdkRectangle old_rect;
7295
c7f0a4397d9e [gaim-migrate @ 7879]
Sean Egan <seanegan@gmail.com>
parents: 6982
diff changeset
100
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
101 gchar *search_string;
7694
6a9acef3b867 [gaim-migrate @ 8339]
Sean Egan <seanegan@gmail.com>
parents: 7346
diff changeset
102
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
103 gboolean editable;
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
104 GtkIMHtmlButtons format_functions;
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
105 gboolean wbfo; /* Whole buffer formatting only. */
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
106
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
107 gint insert_offset;
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
108
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
109 struct {
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
110 gboolean bold:1;
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
111 gboolean italic:1;
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
112 gboolean underline:1;
9924
872c4d8c1192 [gaim-migrate @ 10816]
Tim Ringenbach <marv@pidgin.im>
parents: 9713
diff changeset
113 gboolean strike:1;
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
114 gchar *forecolor;
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
115 gchar *backcolor;
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
116 gchar *background;
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
117 gchar *fontface;
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
118 int fontsize;
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
119 GtkTextTag *link;
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
120 } edit;
8740
61a090413b93 [gaim-migrate @ 9495]
Christian Hammond <chipx86@chipx86.com>
parents: 8735
diff changeset
121
8681
e2e56231023c [gaim-migrate @ 9434]
Sean Egan <seanegan@gmail.com>
parents: 8677
diff changeset
122 char *clipboard_text_string;
e2e56231023c [gaim-migrate @ 9434]
Sean Egan <seanegan@gmail.com>
parents: 8677
diff changeset
123 char *clipboard_html_string;
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
124
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
125 GSList *im_images;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
126 GtkIMHtmlFuncs *funcs;
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
127 };
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
128
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
129 struct _GtkIMHtmlClass {
3922
30f52e7afd1d [gaim-migrate @ 4094]
Sean Egan <seanegan@gmail.com>
parents: 3867
diff changeset
130 GtkTextViewClass parent_class;
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
131
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
132 void (*url_clicked)(GtkIMHtml *, const gchar *);
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
133 void (*buttons_update)(GtkIMHtml *, GtkIMHtmlButtons);
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
134 void (*toggle_format)(GtkIMHtml *, GtkIMHtmlButtons);
8427
2e18099ded93 [gaim-migrate @ 9157]
Sean Egan <seanegan@gmail.com>
parents: 8420
diff changeset
135 void (*clear_format)(GtkIMHtml *);
8506
887c0259b47b [gaim-migrate @ 9242]
Luke Schierer <lschiere@pidgin.im>
parents: 8481
diff changeset
136 void (*update_format)(GtkIMHtml *);
10108
f0100b414d98 [gaim-migrate @ 11141]
Sean Egan <seanegan@gmail.com>
parents: 9950
diff changeset
137 gboolean (*message_send)(GtkIMHtml *);
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
138 };
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
139
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
140 struct _GtkIMHtmlFontDetail {
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
141 gushort size;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
142 gchar *face;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
143 gchar *fore;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
144 gchar *back;
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
145 gchar *bg;
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
146 gchar *sml;
9950
ba085944efee [gaim-migrate @ 10846]
Tim Ringenbach <marv@pidgin.im>
parents: 9924
diff changeset
147 gboolean underline;
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
148 };
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
149
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
150 struct _GtkSmileyTree {
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
151 GString *values;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
152 GtkSmileyTree **children;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
153 GtkIMHtmlSmiley *image;
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
154 };
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
155
4263
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
156 struct _GtkIMHtmlSmiley {
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
157 gchar *smile;
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
158 gchar *file;
6814
782907a6ae65 [gaim-migrate @ 7354]
Christian Hammond <chipx86@chipx86.com>
parents: 6282
diff changeset
159 GdkPixbufAnimation *icon;
4263
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
160 gboolean hidden;
10526
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
161 GdkPixbufLoader *loader;
11525
b47708f46a38 [gaim-migrate @ 13773]
Tim Ringenbach <marv@pidgin.im>
parents: 11485
diff changeset
162 GSList *anchors;
12335
3726ff9022f3 [gaim-migrate @ 14639]
Tim Ringenbach <marv@pidgin.im>
parents: 12323
diff changeset
163 GtkIMHtmlSmileyFlags flags;
3726ff9022f3 [gaim-migrate @ 14639]
Tim Ringenbach <marv@pidgin.im>
parents: 12323
diff changeset
164 GtkIMHtml *imhtml;
4263
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
165 };
74f65a3d2a1f [gaim-migrate @ 4514]
Sean Egan <seanegan@gmail.com>
parents: 4254
diff changeset
166
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
167 struct _GtkIMHtmlScalable {
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
168 void (*scale)(struct _GtkIMHtmlScalable *, int, int);
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
169 void (*add_to)(struct _GtkIMHtmlScalable *, GtkIMHtml *, GtkTextIter *);
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
170 void (*free)(struct _GtkIMHtmlScalable *);
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
171 };
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
172
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
173 struct _GtkIMHtmlImage {
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
174 GtkIMHtmlScalable scalable;
5012
3ee1b1409660 [gaim-migrate @ 5348]
Nathan Walp <nwalp@pidgin.im>
parents: 4947
diff changeset
175 GtkImage *image;
5046
44945824ba60 [gaim-migrate @ 5394]
Nathan Walp <nwalp@pidgin.im>
parents: 5034
diff changeset
176 GdkPixbuf *pixbuf;
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
177 GtkTextMark *mark;
5012
3ee1b1409660 [gaim-migrate @ 5348]
Nathan Walp <nwalp@pidgin.im>
parents: 4947
diff changeset
178 gchar *filename;
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
179 int width;
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
180 int height;
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
181 int id;
9573
c8e0426c63ed [gaim-migrate @ 10416]
Mark Doliner <mark@kingant.net>
parents: 9307
diff changeset
182 GtkWidget *filesel;
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
183 };
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
184
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
185 struct _GtkIMHtmlHr {
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
186 GtkIMHtmlScalable scalable;
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
187 GtkWidget *sep;
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
188 };
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
189
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
190 typedef enum {
12553
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
191 GTK_IMHTML_NO_COLOURS = 1 << 0,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
192 GTK_IMHTML_NO_FONTS = 1 << 1,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
193 GTK_IMHTML_NO_COMMENTS = 1 << 2, /* Remove */
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
194 GTK_IMHTML_NO_TITLE = 1 << 3,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
195 GTK_IMHTML_NO_NEWLINE = 1 << 4,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
196 GTK_IMHTML_NO_SIZES = 1 << 5,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
197 GTK_IMHTML_NO_SCROLL = 1 << 6,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
198 GTK_IMHTML_RETURN_LOG = 1 << 7,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
199 GTK_IMHTML_USE_POINTSIZE = 1 << 8,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
200 GTK_IMHTML_NO_FORMATTING = 1 << 9,
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
201 GTK_IMHTML_USE_SMOOTHSCROLLING = 1 << 10
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
202 } GtkIMHtmlOptions;
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
203
10145
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
204 enum {
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
205 GTK_IMHTML_DRAG_URL = 0,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
206 GTK_IMHTML_DRAG_HTML,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
207 GTK_IMHTML_DRAG_UTF8_STRING,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
208 GTK_IMHTML_DRAG_COMPOUND_TEXT,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
209 GTK_IMHTML_DRAG_STRING,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
210 GTK_IMHTML_DRAG_TEXT,
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
211 GTK_IMHTML_DRAG_NUM
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
212 };
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
213
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
214 #define GTK_IMHTML_DND_TARGETS \
10345
2e01c503aa4f [gaim-migrate @ 11556]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10243
diff changeset
215 { "text/uri-list", 0, GTK_IMHTML_DRAG_URL }, \
10243
e450f24d1fe1 [gaim-migrate @ 11383]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10165
diff changeset
216 { "_NETSCAPE_URL", 0, GTK_IMHTML_DRAG_URL }, \
10145
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
217 { "text/html", 0, GTK_IMHTML_DRAG_HTML }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
218 { "x-url/ftp", 0, GTK_IMHTML_DRAG_URL }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
219 { "x-url/http", 0, GTK_IMHTML_DRAG_URL }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
220 { "UTF8_STRING", 0, GTK_IMHTML_DRAG_UTF8_STRING }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
221 { "COMPOUND_TEXT", 0, GTK_IMHTML_DRAG_COMPOUND_TEXT }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
222 { "STRING", 0, GTK_IMHTML_DRAG_STRING }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
223 { "text/plain", 0, GTK_IMHTML_DRAG_TEXT }, \
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
224 { "TEXT", 0, GTK_IMHTML_DRAG_TEXT }
4d484e455839 [gaim-migrate @ 11218]
Stu Tomlinson <stu@nosnilmot.com>
parents: 10108
diff changeset
225
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
226 typedef gpointer (*GtkIMHtmlGetImageFunc) (int id);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
227 typedef gpointer (*GtkIMHtmlGetImageDataFunc) (gpointer i);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
228 typedef size_t (*GtkIMHtmlGetImageSizeFunc) (gpointer i);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
229 typedef const char *(*GtkIMHtmlGetImageFilenameFunc)(gpointer i);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
230 typedef void (*GtkIMHtmlImageRefFunc) (int id);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
231 typedef void (*GtkIMHtmlImageUnrefFunc) (int id);
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
232
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
233 struct _GtkIMHtmlFuncs {
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
234 GtkIMHtmlGetImageFunc image_get;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
235 GtkIMHtmlGetImageDataFunc image_get_data;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
236 GtkIMHtmlGetImageSizeFunc image_get_size;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
237 GtkIMHtmlGetImageFilenameFunc image_get_filename;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
238 GtkIMHtmlImageRefFunc image_ref;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
239 GtkIMHtmlImageUnrefFunc image_unref;
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
240 };
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
241
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
242 /*@}*/
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
243
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
244 /**************************************************************************
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
245 * @name GTK+ IM/HTML rendering component API
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
246 **************************************************************************/
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
247 /*@{*/
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
248
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
249 /**
9037
960bb3bd9ba6 [gaim-migrate @ 9813]
Luke Schierer <lschiere@pidgin.im>
parents: 9034
diff changeset
250 * Returns the GType object for an IM/HTML widget.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
251 *
9037
960bb3bd9ba6 [gaim-migrate @ 9813]
Luke Schierer <lschiere@pidgin.im>
parents: 9034
diff changeset
252 * @return The GType for an IM/HTML widget.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
253 */
9037
960bb3bd9ba6 [gaim-migrate @ 9813]
Luke Schierer <lschiere@pidgin.im>
parents: 9034
diff changeset
254 GType gtk_imhtml_get_type(void);
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
255
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
256 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
257 * Creates and returns a new GTK+ IM/HTML widget.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
258 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
259 * @return The GTK+ IM/HTML widget created.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
260 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
261 GtkWidget *gtk_imhtml_new(void *, void *);
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
262
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
263 /**
10526
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
264 * Returns the smiley object associated with the text.
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
265 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
266 * @param imhtml The GTK+ IM/HTML.
10526
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
267 * @param sml The name of the smiley category.
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
268 * @param text The text associated with the smiley.
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
269 */
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
270
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
271 GtkIMHtmlSmiley *gtk_imhtml_smiley_get(GtkIMHtml * imhtml,
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
272 const gchar * sml, const gchar * text);
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
273
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
274
55e7d72fc09a [gaim-migrate @ 11843]
Tim Ringenbach <marv@pidgin.im>
parents: 10525
diff changeset
275 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
276 * Associates a smiley with a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
277 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
278 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
279 * @param sml The name of the smiley category.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
280 * @param smiley The GtkIMSmiley to associate.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
281 */
10537
74180743304a [gaim-migrate @ 11890]
Mark Doliner <mark@kingant.net>
parents: 10526
diff changeset
282 void gtk_imhtml_associate_smiley(GtkIMHtml *imhtml, const gchar *sml, GtkIMHtmlSmiley *smiley);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
283
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
284 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
285 * Removes all smileys associated with a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
286 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
287 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
288 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
289 void gtk_imhtml_remove_smileys(GtkIMHtml *imhtml);
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
290
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
291 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
292 * Sets the function callbacks to use with a GTK+ IM/HTML instance.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
293 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
294 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
295 * @param f The GtkIMHTMLFuncs struct containing the functions to use.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
296 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
297 void gtk_imhtml_set_funcs(GtkIMHtml *imhtml, GtkIMHtmlFuncs *f);
5967
156953fe3e14 [gaim-migrate @ 6414]
Mark Doliner <mark@kingant.net>
parents: 5537
diff changeset
298
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
299 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
300 * Enables or disables showing the contents of HTML comments in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
301 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
302 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
303 * @param show @c TRUE if comments should be shown, or @c FALSE otherwise.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
304 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
305 void gtk_imhtml_show_comments(GtkIMHtml *imhtml, gboolean show);
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
306
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
307 /**
11814
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
308 * Gets the protocol name associated with this GTK+ IM/HTML.
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
309 *
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
310 * @param imhtml The GTK+ IM/HTML
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
311 */
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
312 const char *gtk_imhtml_get_protocol_name(GtkIMHtml *imhtml);
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
313
fa17fc619f17 [gaim-migrate @ 14105]
Richard Laager <rlaager@wiktel.com>
parents: 11525
diff changeset
314 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
315 * Associates a protocol name with a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
316 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
317 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
318 * @param protocol_name The protocol name to associate with the IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
319 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
320 void gtk_imhtml_set_protocol_name(GtkIMHtml *imhtml, const gchar *protocol_name);
8456
5f8d4ab6d375 [gaim-migrate @ 9186]
Luke Schierer <lschiere@pidgin.im>
parents: 8427
diff changeset
321
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
322 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
323 * Appends HTML formatted text to a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
324 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
325 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
326 * @param text The formatted text to append.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
327 * @param options A GtkIMHtmlOptions object indicating insert behavior.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
328 */
9307
2138b3a07cb8 [gaim-migrate @ 10115]
Tim Ringenbach <marv@pidgin.im>
parents: 9185
diff changeset
329 #define gtk_imhtml_append_text(imhtml, text, options) \
2138b3a07cb8 [gaim-migrate @ 10115]
Tim Ringenbach <marv@pidgin.im>
parents: 9185
diff changeset
330 gtk_imhtml_append_text_with_images(imhtml, text, options, NULL)
6982
083d1e4a9c78 [gaim-migrate @ 7538]
Mark Doliner <mark@kingant.net>
parents: 6814
diff changeset
331
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
332 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
333 * Appends HTML formatted text to a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
334 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
335 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
336 * @param text The formatted text to append.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
337 * @param options A GtkIMHtmlOptions object indicating insert behavior.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
338 * @param unused Use @c NULL value.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
339 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
340 void gtk_imhtml_append_text_with_images(GtkIMHtml *imhtml,
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
341 const gchar *text,
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
342 GtkIMHtmlOptions options,
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
343 GSList *unused);
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
344
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
345 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
346 * Inserts HTML formatted text to a GTK+ IM/HTML at a given iter.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
347 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
348 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
349 * @param text The formatted text to append.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
350 * @param options A GtkIMHtmlOptions object indicating insert behavior.
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
351 * @param iter A GtkTextIter in the GTK+ IM/HTML at which to insert text.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
352 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
353 void gtk_imhtml_insert_html_at_iter(GtkIMHtml *imhtml,
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
354 const gchar *text,
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
355 GtkIMHtmlOptions options,
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
356 GtkTextIter *iter);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
357
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
358 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
359 * Scrolls a GTK+ IM/HTML to the end of its contents.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
360 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
361 * @param imhtml The GTK+ IM/HTML.
12557
adf79d8ceb2d [gaim-migrate @ 14876]
Richard Laager <rlaager@wiktel.com>
parents: 12553
diff changeset
362 * @param smooth A boolean indicating if smooth scrolling should be used.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
363 */
12553
9d7fb0b21d9f [gaim-migrate @ 14871]
Nathan Walp <nwalp@pidgin.im>
parents: 12335
diff changeset
364 void gtk_imhtml_scroll_to_end(GtkIMHtml *imhtml, gboolean smooth);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
365
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
366 /**
11224
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
367 * Delete the contents of a GTK+ IM/HTML between start and end.
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
368 *
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
369 * @param imhtml The GTK+ IM/HTML.
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
370 * @param start a postition in the imhtml's buffer
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
371 * @param end another postition in the imhtml's buffer
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
372 */
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
373 void gtk_imhtml_delete(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end);
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
374
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
375 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
376 * Purges the contents from a GTK+ IM/HTML and resets formatting.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
377 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
378 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
379 */
11224
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
380 #define gtk_imhtml_clear(imhtml) \
409d6a11da51 [gaim-migrate @ 13360]
Daniel Atallah <daniel.atallah@gmail.com>
parents: 10814
diff changeset
381 gtk_imhtml_delete(imhtml, NULL, NULL)
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
382
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
383 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
384 * Scrolls a GTK+ IM/HTML up by one page.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
385 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
386 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
387 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
388 void gtk_imhtml_page_up(GtkIMHtml *imhtml);
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
389
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
390 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
391 * Scrolls a GTK+ IM/HTML down by one page.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
392 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
393 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
394 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
395 void gtk_imhtml_page_down(GtkIMHtml *imhtml);
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
396
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
397 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
398 * Creates and returns an new GTK+ IM/HTML scalable object.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
399 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
400 * @return A new IM/HTML Scalable object.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
401 */
12323
fc464a0abccc [gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents: 11814
diff changeset
402 GtkIMHtmlScalable *gtk_imhtml_scalable_new(void);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
403
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
404 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
405 * Creates and returns an new GTK+ IM/HTML scalable object with an image.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
406 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
407 * @param img A GdkPixbuf of the image to add.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
408 * @param filename The filename to associate with the image.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
409 * @param id The id to associate with the image.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
410 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
411 * @return A new IM/HTML Scalable object with an image.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
412 */
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
413 GtkIMHtmlScalable *gtk_imhtml_image_new(GdkPixbuf *img, const gchar *filename, int id);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
414
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
415 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
416 * Destroys and frees a GTK+ IM/HTML scalable image.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
417 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
418 * @param scale The GTK+ IM/HTML scalable.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
419 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
420 void gtk_imhtml_image_free(GtkIMHtmlScalable *scale);
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
421
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
422 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
423 * Rescales a GTK+ IM/HTML scalable image to a given size.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
424 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
425 * @param scale The GTK+ IM/HTML scalable.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
426 * @param width The new width.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
427 * @param height The new height.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
428 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
429 void gtk_imhtml_image_scale(GtkIMHtmlScalable *scale, int width, int height);
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
430
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
431 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
432 * Adds a GTK+ IM/HTML scalable image to a given GTK+ IM/HTML at a given iter.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
433 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
434 * @param scale The GTK+ IM/HTML scalable.
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
435 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
436 * @param iter The GtkTextIter at which to add the scalable.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
437 */
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
438 void gtk_imhtml_image_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter);
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
439
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
440 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
441 * Creates and returns an new GTK+ IM/HTML scalable with a horizontal rule.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
442 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
443 * @return A new IM/HTML Scalable object with an image.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
444 */
12323
fc464a0abccc [gaim-migrate @ 14627]
Richard Laager <rlaager@wiktel.com>
parents: 11814
diff changeset
445 GtkIMHtmlScalable *gtk_imhtml_hr_new(void);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
446
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
447 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
448 * Destroys and frees a GTK+ IM/HTML scalable horizontal rule.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
449 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
450 * @param scale The GTK+ IM/HTML scalable.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
451 */
9034
bbb8733c7818 [gaim-migrate @ 9810]
Tim Ringenbach <marv@pidgin.im>
parents: 9033
diff changeset
452 void gtk_imhtml_hr_free(GtkIMHtmlScalable *scale);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
453
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
454 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
455 * Rescales a GTK+ IM/HTML scalable horizontal rule to a given size.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
456 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
457 * @param scale The GTK+ IM/HTML scalable.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
458 * @param width The new width.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
459 * @param height The new height.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
460 */
9034
bbb8733c7818 [gaim-migrate @ 9810]
Tim Ringenbach <marv@pidgin.im>
parents: 9033
diff changeset
461 void gtk_imhtml_hr_scale(GtkIMHtmlScalable *scale, int width, int height);
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
462
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
463 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
464 * Adds a GTK+ IM/HTML scalable horizontal rule to a given GTK+ IM/HTML at
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
465 * a given iter.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
466 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
467 * @param scale The GTK+ IM/HTML scalable.
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
468 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
469 * @param iter The GtkTextIter at which to add the scalable.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
470 */
9307
2138b3a07cb8 [gaim-migrate @ 10115]
Tim Ringenbach <marv@pidgin.im>
parents: 9185
diff changeset
471 void gtk_imhtml_hr_add_to(GtkIMHtmlScalable *scale, GtkIMHtml *imhtml, GtkTextIter *iter);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
472
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
473 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
474 * Finds and highlights a given string in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
475 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
476 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
477 * @param text The string to search for.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
478 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
479 * @return @c TRUE if a search was performed, or @c FALSE if not.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
480 */
7295
c7f0a4397d9e [gaim-migrate @ 7879]
Sean Egan <seanegan@gmail.com>
parents: 6982
diff changeset
481 gboolean gtk_imhtml_search_find(GtkIMHtml *imhtml, const gchar *text);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
482
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
483 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
484 * Clears the highlighting from a prior search in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
485 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
486 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
487 */
7295
c7f0a4397d9e [gaim-migrate @ 7879]
Sean Egan <seanegan@gmail.com>
parents: 6982
diff changeset
488 void gtk_imhtml_search_clear(GtkIMHtml *imhtml);
4895
9e50494f63a1 [gaim-migrate @ 5227]
Nathan Walp <nwalp@pidgin.im>
parents: 4764
diff changeset
489
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
490 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
491 * Enables or disables editing in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
492 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
493 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
494 * @param editable @c TRUE to make the widget editable, or @c FALSE otherwise.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
495 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
496 void gtk_imhtml_set_editable(GtkIMHtml *imhtml, gboolean editable);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
497
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
498 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
499 * Enables or disables whole buffer formatting only (wbfo) in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
500 * In this mode formatting options to the buffer take effect for the entire
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
501 * buffer instead of specific text.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
502 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
503 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
504 * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
505 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
506 void gtk_imhtml_set_whole_buffer_formatting_only(GtkIMHtml *imhtml, gboolean wbfo);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
507
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
508 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
509 * Indicates which formatting functions to enable and disable in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
510 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
511 * @param imhtml The GTK+ IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
512 * @param buttons A GtkIMHtmlButtons bitmask indicating which functions to use.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
513 */
8420
c25c697525b7 [gaim-migrate @ 9150]
Sean Egan <seanegan@gmail.com>
parents: 8105
diff changeset
514 void gtk_imhtml_set_format_functions(GtkIMHtml *imhtml, GtkIMHtmlButtons buttons);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
515
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
516 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
517 * Returns which formatting functions are enabled in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
518 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
519 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
520 *
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
521 * @return A GtkIMHtmlButtons bitmask indicating which functions to are enabled.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
522 */
8788
262f81346c0a [gaim-migrate @ 9550]
Mark Doliner <mark@kingant.net>
parents: 8740
diff changeset
523 GtkIMHtmlButtons gtk_imhtml_get_format_functions(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
524
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
525 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
526 * Sets each boolean to TRUE if that formatting option is enabled at the
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
527 * current position in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
528 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
529 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
530 * @param bold A reference to a boolean for bold.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
531 * @param italic A reference to a boolean for italic.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
532 * @param underline A reference to a boolean for underline.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
533 */
8516
5b25f72c4723 [gaim-migrate @ 9254]
Luke Schierer <lschiere@pidgin.im>
parents: 8506
diff changeset
534 void gtk_imhtml_get_current_format(GtkIMHtml *imhtml, gboolean *bold, gboolean *italic, gboolean *underline);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
535
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
536 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
537 * Returns a string containing the selected font face at the current position
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
538 * in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
539 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
540 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
541 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
542 * @return A string containg the font face or @c NULL if none is set.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
543 */
9025
b24967757d46 [gaim-migrate @ 9801]
Luke Schierer <lschiere@pidgin.im>
parents: 8962
diff changeset
544 char *gtk_imhtml_get_current_fontface(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
545
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
546 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
547 * Returns a string containing the selected foreground color at the current
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
548 * position in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
549 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
550 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
551 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
552 * @return A string containg the foreground color or @c NULL if none is set.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
553 */
9025
b24967757d46 [gaim-migrate @ 9801]
Luke Schierer <lschiere@pidgin.im>
parents: 8962
diff changeset
554 char *gtk_imhtml_get_current_forecolor(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
555
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
556 /**
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
557 * Returns a string containing the selected font background color at the current
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
558 * position in a GTK+ IM/HTML.
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
559 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
560 * @param imhtml The GTK+ IM/HTML.
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
561 *
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
562 * @return A string containg the font background color or @c NULL if none is set.
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
563 */
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
564 char *gtk_imhtml_get_current_backcolor(GtkIMHtml *imhtml);
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
565
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
566 /**
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
567 * Returns a string containing the selected background color at the current
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
568 * position in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
569 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
570 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
571 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
572 * @return A string containg the background color or @c NULL if none is set.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
573 */
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
574 char *gtk_imhtml_get_current_background(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
575
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
576 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
577 * Returns a integer containing the selected HTML font size at the current
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
578 * position in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
579 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
580 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
581 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
582 * @return The HTML font size.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
583 */
9025
b24967757d46 [gaim-migrate @ 9801]
Luke Schierer <lschiere@pidgin.im>
parents: 8962
diff changeset
584 gint gtk_imhtml_get_current_fontsize(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
585
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
586 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
587 * Checks whether a GTK+ IM/HTML is marked as editable.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
588 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
589 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
590 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
591 * @return @c TRUE if the IM/HTML is editable, or @c FALSE otherwise.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
592 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
593 gboolean gtk_imhtml_get_editable(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
594
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
595 /**
11269
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
596 * Clear all the formatting on a GTK+ IM/HTML.
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
597 *
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
598 * @param imhtml The GTK+ IM/HTML.
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
599 */
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
600 void gtk_imhtml_clear_formatting(GtkIMHtml *imhtml);
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
601
1cbe76d30e81 [gaim-migrate @ 13451]
Richard Laager <rlaager@wiktel.com>
parents: 11267
diff changeset
602 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
603 * Toggles bold at the cursor location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
604 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
605 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
606 */
11267
477e5cca8287 [gaim-migrate @ 13449]
Richard Laager <rlaager@wiktel.com>
parents: 11224
diff changeset
607 void gtk_imhtml_toggle_bold(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
608
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
609 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
610 * Toggles italic at the cursor location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
611 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
612 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
613 */
11267
477e5cca8287 [gaim-migrate @ 13449]
Richard Laager <rlaager@wiktel.com>
parents: 11224
diff changeset
614 void gtk_imhtml_toggle_italic(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
615
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
616 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
617 * Toggles underline at the cursor location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
618 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
619 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
620 */
11267
477e5cca8287 [gaim-migrate @ 13449]
Richard Laager <rlaager@wiktel.com>
parents: 11224
diff changeset
621 void gtk_imhtml_toggle_underline(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
622
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
623 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
624 * Toggles strikethrough at the cursor location or selection in a GTK+ IM/HTML.
9924
872c4d8c1192 [gaim-migrate @ 10816]
Tim Ringenbach <marv@pidgin.im>
parents: 9713
diff changeset
625 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
626 * @param imhtml The GTK+ IM/HTML.
9924
872c4d8c1192 [gaim-migrate @ 10816]
Tim Ringenbach <marv@pidgin.im>
parents: 9713
diff changeset
627 */
11267
477e5cca8287 [gaim-migrate @ 13449]
Richard Laager <rlaager@wiktel.com>
parents: 11224
diff changeset
628 void gtk_imhtml_toggle_strike(GtkIMHtml *imhtml);
9924
872c4d8c1192 [gaim-migrate @ 10816]
Tim Ringenbach <marv@pidgin.im>
parents: 9713
diff changeset
629
872c4d8c1192 [gaim-migrate @ 10816]
Tim Ringenbach <marv@pidgin.im>
parents: 9713
diff changeset
630 /**
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
631 * Toggles a foreground color at the current location or selection in a GTK
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
632 * IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
633 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
634 * @param imhtml The GTK+ IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
635 * @param color The HTML-style color, or @c NULL or "" to clear the color.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
636 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
637 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
638 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
639 gboolean gtk_imhtml_toggle_forecolor(GtkIMHtml *imhtml, const char *color);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
640
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
641 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
642 * Toggles a background color at the current location or selection in a GTK
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
643 * IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
644 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
645 * @param imhtml The GTK+ IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
646 * @param color The HTML-style color, or @c NULL or "" to clear the color.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
647 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
648 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
649 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
650 gboolean gtk_imhtml_toggle_backcolor(GtkIMHtml *imhtml, const char *color);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
651
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
652 /**
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
653 * Toggles a background color at the current location or selection in a GTK
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
654 * IM/HTML.
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
655 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
656 * @param imhtml The GTK+ IM/HTML.
10776
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
657 * @param color The HTML-style color, or @c NULL or "" to clear the color.
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
658 *
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
659 * @return @c TRUE if a color was set, or @c FALSE if it was cleared.
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
660 */
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
661 gboolean gtk_imhtml_toggle_background(GtkIMHtml *imhtml, const char *color);
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
662
b640d066eb51 [gaim-migrate @ 12387]
Tim Ringenbach <marv@pidgin.im>
parents: 10692
diff changeset
663 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
664 * Toggles a font face at the current location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
665 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
666 * @param imhtml The GTK+ IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
667 * @param face The font face name, or @c NULL or "" to clear the font.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
668 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
669 * @return @c TRUE if a font name was set, or @c FALSE if it was cleared.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
670 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
671 gboolean gtk_imhtml_toggle_fontface(GtkIMHtml *imhtml, const char *face);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
672
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
673 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
674 * Toggles a link tag with the given URL at the current location or selection
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
675 * in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
676 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
677 * @param imhtml The GTK+ IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
678 * @param url The URL for the link or @c NULL to terminate the link.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
679 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
680 void gtk_imhtml_toggle_link(GtkIMHtml *imhtml, const char *url);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
681
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
682 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
683 * Inserts a link to the given url at the given GtkTextMark in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
684 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
685 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
686 * @param mark The GtkTextMark to insert the link at.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
687 * @param url The URL for the link.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
688 * @param text The string to use for the link description.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
689 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
690 void gtk_imhtml_insert_link(GtkIMHtml *imhtml, GtkTextMark *mark, const char *url, const char *text);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
691
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
692 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
693 * Inserts a smiley at the current location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
694 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
695 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
696 * @param sml The category of the smiley.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
697 * @param smiley The text of the smiley to insert.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
698 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
699 void gtk_imhtml_insert_smiley(GtkIMHtml *imhtml, const char *sml, char *smiley);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
700 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
701 * Inserts a smiley at the given iter in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
702 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
703 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
704 * @param sml The category of the smiley.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
705 * @param smiley The text of the smiley to insert.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
706 * @param iter The GtkTextIter in the IM/HTML to insert the smiley at.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
707 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
708 void gtk_imhtml_insert_smiley_at_iter(GtkIMHtml *imhtml, const char *sml, char *smiley, GtkTextIter *iter);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
709
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
710 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
711 * Inserts the IM/HTML scalable image with the given id at the given iter in a
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
712 * GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
713 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
714 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
715 * @param id The id of the IM/HTML scalable.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
716 * @param iter The GtkTextIter in the IM/HTML to insert the image at.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
717 */
8962
4ff4c34b7500 [gaim-migrate @ 9736]
Tim Ringenbach <marv@pidgin.im>
parents: 8881
diff changeset
718 void gtk_imhtml_insert_image_at_iter(GtkIMHtml *imhtml, int id, GtkTextIter *iter);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
719
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
720 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
721 * Sets the font size at the current location or selection in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
722 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
723 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
724 * @param size The HTML font size to use.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
725 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
726 void gtk_imhtml_font_set_size(GtkIMHtml *imhtml, gint size);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
727
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
728 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
729 * Decreases the font size by 1 at the current location or selection in a GTK
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
730 * IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
731 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
732 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
733 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
734 void gtk_imhtml_font_shrink(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
735
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
736 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
737 * Increases the font size by 1 at the current location or selection in a GTK
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
738 * IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
739 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
740 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
741 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
742 void gtk_imhtml_font_grow(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
743
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
744 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
745 * Returns the HTML formatted contents between two iters in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
746 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
747 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
748 * @param start The GtkTextIter indicating the start point in the IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
749 * @param end The GtkTextIter indicating the end point in the IM/HTML.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
750 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
751 * @return A string containing the HTML formatted text.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
752 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
753 char *gtk_imhtml_get_markup_range(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *end);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
754
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
755 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
756 * Returns the entire HTML formatted contents of a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
757 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
758 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
759 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
760 * @return A string containing the HTML formatted text.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
761 */
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
762 char *gtk_imhtml_get_markup(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
763
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
764 /**
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
765 * Returns a null terminated array of pointers to null terminated strings, each
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
766 * string for each line. g_strfreev() should be called to free it when done.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
767 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
768 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
769 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
770 * @return A null terminated array of null terminated HTML formatted strings.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
771 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
772 char **gtk_imhtml_get_markup_lines(GtkIMHtml *imhtml);
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
773
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
774 /**
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
775 * Returns the entire unformatted (plain text) contents of a GTK+ IM/HTML
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
776 * between two iters in a GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
777 *
10814
364a2ef907ae [gaim-migrate @ 12468]
Luke Schierer <lschiere@pidgin.im>
parents: 10799
diff changeset
778 * @param imhtml The GTK+ IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
779 * @param start The GtkTextIter indicating the start point in the IM/HTML.
9185
f2e75dd2971a [gaim-migrate @ 9980]
Luke Schierer <lschiere@pidgin.im>
parents: 9041
diff changeset
780 * @param stop The GtkTextIter indicating the end point in the IM/HTML.
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
781 *
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
782 * @return A string containing the unformatted text.
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
783 */
8677
cc2ce209cc46 [gaim-migrate @ 9430]
Sean Egan <seanegan@gmail.com>
parents: 8519
diff changeset
784 char *gtk_imhtml_get_text(GtkIMHtml *imhtml, GtkTextIter *start, GtkTextIter *stop);
8061
ea073d234191 [gaim-migrate @ 8749]
Nathan Walp <nwalp@pidgin.im>
parents: 8046
diff changeset
785
9033
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
786 /*@}*/
4ef4d3220f81 [gaim-migrate @ 9809]
Tim Ringenbach <marv@pidgin.im>
parents: 9029
diff changeset
787
1428
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
788 #ifdef __cplusplus
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
789 }
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
790 #endif
00b3d02a2168 [gaim-migrate @ 1438]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
791
9713
db62420a53a2 [gaim-migrate @ 10574]
Mark Doliner <mark@kingant.net>
parents: 9573
diff changeset
792 #endif /* _GAIM_GTKIMHTML_H_ */