Mercurial > pidgin.yaz
comparison pidgin/gtkutils.h @ 32599:d9cb56d33839
Add a pidgin_create_webview utility function, which acts similarly to
the imhtml version. Note that an editable webview does not yet exist,
so don't call this function with editable=TRUE!
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 09 Sep 2011 01:52:12 +0000 |
parents | 58e0e310ef2e |
children | 5aa171c8776b |
comparison
equal
deleted
inserted
replaced
32598:1798b24a4fd5 | 32599:d9cb56d33839 |
---|---|
105 * @param sw_ret This will be filled with a pointer to the scrolled window | 105 * @param sw_ret This will be filled with a pointer to the scrolled window |
106 * widget which contains the imhtml. | 106 * widget which contains the imhtml. |
107 * @return The GtkFrame containing the toolbar and imhtml. | 107 * @return The GtkFrame containing the toolbar and imhtml. |
108 */ | 108 */ |
109 GtkWidget *pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret); | 109 GtkWidget *pidgin_create_imhtml(gboolean editable, GtkWidget **imhtml_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret); |
110 | |
111 /** | |
112 * Create an GtkWebView widget and associated GtkIMHtmlToolbar widget. This | |
113 * function puts both widgets in a nice GtkFrame. They're separated by an | |
114 * attractive GtkSeparator. | |
115 * FIXME: There is no editable GtkWebView yet. | |
116 * | |
117 * @param editable @c TRUE if this webview should be editable. If this is | |
118 * @c FALSE, then the toolbar will NOT be created. If this webview | |
119 * should be read-only at first, but may become editable later, then | |
120 * pass in @c TRUE here and then manually call gtk_webview_set_editable() | |
121 * later. | |
122 * @param webview_ret A pointer to a pointer to a GtkWidget. This pointer | |
123 * will be set to the webview when this function exits. | |
124 * @param toolbar_ret A pointer to a pointer to a GtkWidget. If editable is | |
125 * TRUE then this will be set to the toolbar when this function exits. | |
126 * Otherwise this will be set to @c NULL. | |
127 * @param sw_ret This will be filled with a pointer to the scrolled window | |
128 * widget which contains the webview. | |
129 * @return The GtkFrame containing the toolbar and webview. | |
130 */ | |
131 GtkWidget *pidgin_create_webview(gboolean editable, GtkWidget **webview_ret, GtkWidget **toolbar_ret, GtkWidget **sw_ret); | |
110 | 132 |
111 /** | 133 /** |
112 * Creates a small button | 134 * Creates a small button |
113 * | 135 * |
114 * @param image A button image. | 136 * @param image A button image. |