Mercurial > pidgin
annotate pidgin/gtkwebview.h @ 32456:0250c8b3e159
Add some formatting signals to webview from imhtml.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 05 Jan 2012 05:59:21 +0000 |
parents | c5e5938bb89a |
children | 4547ab591cfc |
rev | line source |
---|---|
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
1 /** |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
2 * @file gtkwebview.h Wrapper over the Gtk WebKitWebView component |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
3 * @ingroup pidgin |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
4 */ |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
5 |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
6 /* pidgin |
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
7 * |
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
8 * Pidgin is the legal property of its developers, whose names are too numerous |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
9 * to list here. Please refer to the COPYRIGHT file distributed with this |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
10 * source distribution. |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
11 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
12 * This program is free software; you can redistribute it and/or modify |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
13 * it under the terms of the GNU General Public License as published by |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
14 * the Free Software Foundation; either version 2 of the License, or |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
15 * (at your option) any later version. |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
16 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
17 * This program is distributed in the hope that it will be useful, |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
20 * GNU General Public License for more details. |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
21 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
22 * You should have received a copy of the GNU General Public License |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
23 * along with this program; if not, write to the Free Software |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
25 * |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
26 */ |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
27 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
28 #ifndef _PIDGIN_WEBVIEW_H_ |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
29 #define _PIDGIN_WEBVIEW_H_ |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
30 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
31 #include <glib.h> |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
32 #include <gtk/gtk.h> |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
33 #include <webkit/webkit.h> |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
34 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
35 #define GTK_TYPE_WEBVIEW (gtk_webview_get_type()) |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
36 #define GTK_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_WEBVIEW, GtkWebView)) |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
37 #define GTK_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_WEBVIEW, GtkWebViewClass)) |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
38 #define GTK_IS_WEBVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_WEBVIEW)) |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
39 #define GTK_IS_WEBVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_WEBVIEW)) |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
40 #define GTK_WEBVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_WEBVIEW, GtkWebViewClass)) |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
41 |
32450
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
42 typedef enum { |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
43 GTK_WEBVIEW_BOLD = 1 << 0, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
44 GTK_WEBVIEW_ITALIC = 1 << 1, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
45 GTK_WEBVIEW_UNDERLINE = 1 << 2, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
46 GTK_WEBVIEW_GROW = 1 << 3, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
47 GTK_WEBVIEW_SHRINK = 1 << 4, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
48 GTK_WEBVIEW_FACE = 1 << 5, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
49 GTK_WEBVIEW_FORECOLOR = 1 << 6, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
50 GTK_WEBVIEW_BACKCOLOR = 1 << 7, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
51 GTK_WEBVIEW_BACKGROUND = 1 << 8, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
52 GTK_WEBVIEW_LINK = 1 << 9, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
53 GTK_WEBVIEW_IMAGE = 1 << 10, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
54 GTK_WEBVIEW_SMILEY = 1 << 11, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
55 GTK_WEBVIEW_LINKDESC = 1 << 12, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
56 GTK_WEBVIEW_STRIKE = 1 << 13, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
57 /** Show custom smileys when appropriate. */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
58 GTK_WEBVIEW_CUSTOM_SMILEY = 1 << 14, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
59 GTK_WEBVIEW_ALL = -1 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
60 } GtkWebViewButtons; |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
61 |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
62 typedef struct _GtkWebView GtkWebView; |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
63 typedef struct _GtkWebViewClass GtkWebViewClass; |
32080
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
64 |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
65 struct _GtkWebView |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
66 { |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
67 WebKitWebView parent; |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
68 }; |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
69 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
70 struct _GtkWebViewClass |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
71 { |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
72 WebKitWebViewClass parent; |
32456
0250c8b3e159
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32455
diff
changeset
|
73 |
0250c8b3e159
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32455
diff
changeset
|
74 void (*buttons_update)(GtkWebView *, GtkWebViewButtons); |
0250c8b3e159
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32455
diff
changeset
|
75 void (*toggle_format)(GtkWebView *, GtkWebViewButtons); |
0250c8b3e159
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32455
diff
changeset
|
76 void (*clear_format)(GtkWebView *); |
0250c8b3e159
Add some formatting signals to webview from imhtml.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32455
diff
changeset
|
77 void (*update_format)(GtkWebView *); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
78 }; |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
79 |
32436
34f778db624f
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32419
diff
changeset
|
80 G_BEGIN_DECLS |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
81 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
82 /** |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
83 * Returns the GType for a GtkWebView widget |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
84 * |
32284
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
85 * @return The GType for GtkWebView widget |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
86 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
87 GType gtk_webview_get_type(void); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
88 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
89 /** |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
90 * Create a new GtkWebView object |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
91 * |
32284
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
92 * @return A GtkWidget corresponding to the GtkWebView object |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
93 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
94 GtkWidget *gtk_webview_new(void); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
95 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
96 /** |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
97 * TODO WEBKIT: Right now this just tests whether an append has been called |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
98 * since the last clear or since the Widget was created. So it does not |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
99 * test for load_string's called in between. |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
100 * |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
101 * @param webview The GtkWebView object |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
102 * |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
103 * @return gboolean indicating whether the webview is empty |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
104 */ |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
105 gboolean gtk_webview_is_empty(GtkWebView *webview); |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
106 |
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
107 /** |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
108 * A very basic routine to append html, which can be considered |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
109 * equivalent to a "document.write" using JavaScript. |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
110 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
111 * @param webview The GtkWebView object |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
112 * @param markup The html markup to append |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
113 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
114 void gtk_webview_append_html(GtkWebView *webview, const char *markup); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
115 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
116 /** |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
117 * Rather than use webkit_webview_load_string, this routine |
32176
5aa171c8776b
Fix a bunch of tiny problems generating our doxygen documentation
Mark Doliner <mark@kingant.net>
parents:
32133
diff
changeset
|
118 * parses and displays the \<img id=?\> tags that make use of the |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
119 * Pidgin imgstore. |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
120 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
121 * @param webview The GtkWebView object |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
122 * @param html The HTML content to load |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
123 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
124 void gtk_webview_load_html_string_with_imgstore(GtkWebView *webview, const char *html); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
125 |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
126 /** |
32080
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
127 * Execute the JavaScript only after the webkit_webview_load_string |
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
128 * loads completely. We also guarantee that the scripts are executed |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
129 * in the order they are called here. This is useful to avoid race |
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
130 * conditions when calling JS functions immediately after opening the |
32080
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
131 * page. |
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
132 * |
32284
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
133 * @param webview The GtkWebView object |
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
134 * @param script The script to execute |
32080
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
135 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
136 void gtk_webview_safe_execute_script(GtkWebView *webview, const char *script); |
32080
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
137 |
b89351c7580b
safely execute JS scripts only after loading is done. Untested code as of now, will test it in next commit.
tdrhq@soc.pidgin.im
parents:
32061
diff
changeset
|
138 /** |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
139 * A convenience routine to quote a string for use as a JavaScript |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
140 * string. For instance, "hello 'world'" becomes "'hello \\'world\\''" |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
141 * |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
142 * @param str The string to escape and quote |
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
143 * |
32284
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
144 * @return The quoted string |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
145 */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
146 char *gtk_webview_quote_js_string(const char *str); |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
147 |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
148 /** |
32442
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
149 * Set the vertical adjustment for the GtkWebView. |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
150 * |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
151 * @param webview The GtkWebView object |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
152 * @param vadj The GtkAdjustment that control the webview |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
153 */ |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
154 void gtk_webview_set_vadjustment(GtkWebView *webview, GtkAdjustment *vadj); |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
155 |
fb8447f6649c
Rearrange these files a bit to group common functions
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32436
diff
changeset
|
156 /** |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
157 * Scrolls the Webview to the end of its contents. |
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
158 * |
32284
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
159 * @param webview The GtkWebView object |
6fb2b4b44934
Clean up documentation.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32199
diff
changeset
|
160 * @param smooth A boolean indicating if smooth scrolling should be used |
32120
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
161 */ |
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
162 void gtk_webview_scroll_to_end(GtkWebView *webview, gboolean smooth); |
24c8a98a6acc
webkit: Scroll to end when appending html.
masca@cpw.pidgin.im
parents:
32109
diff
changeset
|
163 |
32419
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
164 /** |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
165 * Scrolls a GtkWebView up by one page. |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
166 * |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
167 * @param webview The GtkWebView. |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
168 */ |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
169 void gtk_webview_page_up(GtkWebView *webview); |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
170 |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
171 /** |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
172 * Scrolls a GtkWebView down by one page. |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
173 * |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
174 * @param webview The GtkWebView. |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
175 */ |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
176 void gtk_webview_page_down(GtkWebView *webview); |
7b9566b77501
Add page up/down for WebKit view.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32284
diff
changeset
|
177 |
32450
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
178 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
179 * Enables or disables editing in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
180 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
181 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
182 * @param editable @c TRUE to make the widget editable, or @c FALSE otherwise. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
183 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
184 void gtk_webview_set_editable(GtkWebView *webview, gboolean editable); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
185 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
186 /** |
32455
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
187 * Setup formatting for a GtkWebView depending on the flags specified. |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
188 * |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
189 * @param webview The GtkWebView. |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
190 * @param flags The connection flags describing the allowed formatting. |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
191 */ |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
192 void gtk_webview_setup_entry(GtkWebView *webview, PurpleConnectionFlags flags); |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
193 |
c5e5938bb89a
Add a function for setting a WebView entry based on the
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32450
diff
changeset
|
194 /** |
32450
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
195 * Enables or disables whole buffer formatting only (wbfo) in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
196 * In this mode formatting options to the buffer take effect for the entire |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
197 * buffer instead of specific text. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
198 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
199 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
200 * @param wbfo @c TRUE to enable the mode, or @c FALSE otherwise. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
201 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
202 void gtk_webview_set_whole_buffer_formatting_only(GtkWebView *webview, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
203 gboolean wbfo); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
204 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
205 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
206 * Indicates which formatting functions to enable and disable in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
207 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
208 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
209 * @param buttons A GtkWebViewButtons bitmask indicating which functions to use |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
210 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
211 void gtk_webview_set_format_functions(GtkWebView *webview, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
212 GtkWebViewButtons buttons); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
213 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
214 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
215 * Returns which formatting functions are enabled in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
216 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
217 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
218 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
219 * @return A GtkWebViewButtons bitmask indicating which functions to are enabled |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
220 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
221 GtkWebViewButtons gtk_webview_get_format_functions(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
222 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
223 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
224 * Sets each boolean to @c TRUE or @c FALSE to indicate if that formatting |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
225 * option is enabled at the current position in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
226 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
227 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
228 * @param bold The boolean to set for bold or @c NULL. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
229 * @param italic The boolean to set for italic or @c NULL. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
230 * @param underline The boolean to set for underline or @c NULL. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
231 * @param strikethrough The boolean to set for strikethrough or @c NULL. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
232 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
233 void gtk_webview_get_current_format(GtkWebView *webview, gboolean *bold, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
234 gboolean *italic, gboolean *underline, |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
235 gboolean *strike); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
236 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
237 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
238 * Returns a string containing the selected font face at the current position |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
239 * in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
240 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
241 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
242 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
243 * @return A string containing the font face or @c NULL if none is set. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
244 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
245 const char *gtk_webview_get_current_fontface(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
246 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
247 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
248 * Returns a string containing the selected foreground color at the current |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
249 * position in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
250 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
251 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
252 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
253 * @return A string containing the foreground color or @c NULL if none is set. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
254 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
255 const char *gtk_webview_get_current_forecolor(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
256 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
257 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
258 * Returns a string containing the selected font background color at the current |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
259 * position in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
260 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
261 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
262 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
263 * @return A string containing the background color or @c NULL if none is set. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
264 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
265 const char *gtk_webview_get_current_backcolor(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
266 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
267 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
268 * Returns a string containing the selected background color at the current |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
269 * position in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
270 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
271 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
272 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
273 * @return A string containg the background color or @c NULL if none is set. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
274 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
275 const char *gtk_webview_get_current_background(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
276 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
277 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
278 * Returns a integer containing the selected HTML font size at the current |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
279 * position in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
280 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
281 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
282 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
283 * @return The HTML font size. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
284 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
285 gint gtk_webview_get_current_fontsize(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
286 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
287 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
288 * Checks whether a GtkWebView is marked as editable. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
289 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
290 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
291 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
292 * @return @c TRUE if the IM/HTML is editable, or @c FALSE otherwise. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
293 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
294 gboolean gtk_webview_get_editable(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
295 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
296 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
297 * Clear all the formatting on a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
298 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
299 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
300 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
301 void gtk_webview_clear_formatting(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
302 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
303 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
304 * Toggles bold at the cursor location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
305 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
306 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
307 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
308 void gtk_webview_toggle_bold(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
309 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
310 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
311 * Toggles italic at the cursor location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
312 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
313 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
314 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
315 void gtk_webview_toggle_italic(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
316 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
317 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
318 * Toggles underline at the cursor location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
319 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
320 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
321 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
322 void gtk_webview_toggle_underline(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
323 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
324 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
325 * Toggles strikethrough at the cursor location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
326 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
327 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
328 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
329 void gtk_webview_toggle_strike(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
330 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
331 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
332 * Toggles a foreground color at the current location or selection in a |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
333 * GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
334 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
335 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
336 * @param color The HTML-style color, or @c NULL or "" to clear the color. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
337 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
338 * @return @c TRUE if a color was set, or @c FALSE if it was cleared. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
339 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
340 gboolean gtk_webview_toggle_forecolor(GtkWebView *webview, const char *color); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
341 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
342 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
343 * Toggles a background color at the current location or selection in a |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
344 * GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
345 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
346 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
347 * @param color The HTML-style color, or @c NULL or "" to clear the color. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
348 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
349 * @return @c TRUE if a color was set, or @c FALSE if it was cleared. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
350 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
351 gboolean gtk_webview_toggle_backcolor(GtkWebView *webview, const char *color); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
352 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
353 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
354 * Toggles a background color at the current location or selection in a |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
355 * GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
356 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
357 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
358 * @param color The HTML-style color, or @c NULL or "" to clear the color. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
359 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
360 * @return @c TRUE if a color was set, or @c FALSE if it was cleared. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
361 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
362 gboolean gtk_webview_toggle_background(GtkWebView *webview, const char *color); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
363 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
364 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
365 * Toggles a font face at the current location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
366 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
367 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
368 * @param face The font face name, or @c NULL or "" to clear the font. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
369 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
370 * @return @c TRUE if a font name was set, or @c FALSE if it was cleared. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
371 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
372 gboolean gtk_webview_toggle_fontface(GtkWebView *webview, const char *face); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
373 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
374 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
375 * Sets the font size at the current location or selection in a GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
376 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
377 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
378 * @param size The HTML font size to use. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
379 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
380 void gtk_webview_font_set_size(GtkWebView *webview, gint size); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
381 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
382 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
383 * Decreases the font size by 1 at the current location or selection in a |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
384 * GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
385 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
386 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
387 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
388 void gtk_webview_font_shrink(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
389 |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
390 /** |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
391 * Increases the font size by 1 at the current location or selection in a |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
392 * GtkWebView. |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
393 * |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
394 * @param webview The GtkWebView |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
395 */ |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
396 void gtk_webview_font_grow(GtkWebView *webview); |
0d50155445fd
Copy some editing functions from GtkIMHtml. These are incomplete.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32444
diff
changeset
|
397 |
32436
34f778db624f
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32419
diff
changeset
|
398 G_END_DECLS |
34f778db624f
Add G_BEGIN/END_DECLS to Pidgin public headers, most of which did
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32419
diff
changeset
|
399 |
32061
ac42a0dfda48
Apparently I missed these in my previous commit.
tdrhq@soc.pidgin.im
parents:
diff
changeset
|
400 #endif /* _PIDGIN_WEBVIEW_H_ */ |
32133
8e1ec44ede75
Clean up this WebKit stuff. Fix up broken merging, mark unfinished
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32120
diff
changeset
|
401 |