pidgin: 073c067f: Use a GtkWebViewToolbar when creating an...

qulogic at pidgin.im qulogic at pidgin.im
Thu Jan 5 23:00:47 EST 2012


----------------------------------------------------------------------
Revision: 073c067fa0d2b0dc8378ade5b6398691ad7d371b
Parent:   95f4d1bab1edc099c703fdc4cadb9f88c427b896
Author:   qulogic at pidgin.im
Date:     01/04/12 04:45:10
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/073c067fa0d2b0dc8378ade5b6398691ad7d371b

Changelog: 

Use a GtkWebViewToolbar when creating an editable GtkWebView.

Changes against parent 95f4d1bab1edc099c703fdc4cadb9f88c427b896

  patched  pidgin/gtkutils.c

-------------- next part --------------
============================================================
--- pidgin/gtkutils.c	b65521c8992ff71de842e6996845f791580408cc
+++ pidgin/gtkutils.c	95018761affa5cb36898d7aac9b73c55d1f6c31e
@@ -68,6 +68,7 @@
 #include "gtkthemes.h"
 #include "gtkutils.h"
 #include "gtkwebview.h"
+#include "gtkwebviewtoolbar.h"
 #include "pidgin/minidialog.h"
 
 typedef struct {
@@ -295,7 +296,7 @@ pidgin_create_webview(gboolean editable,
 	gtk_widget_show(vbox);
 
 	if (editable) {
-		toolbar = gtk_imhtmltoolbar_new();
+		toolbar = gtk_webviewtoolbar_new();
 		gtk_box_pack_start(GTK_BOX(vbox), toolbar, FALSE, FALSE, 0);
 		gtk_widget_show(toolbar);
 
@@ -307,10 +308,7 @@ pidgin_create_webview(gboolean editable,
 	}
 
 	webview = gtk_webview_new();
-#if 0
-	/* TODO WEBKIT: Don't have editable webview yet. */
 	gtk_webview_set_editable(GTK_WEBVIEW(webview), editable);
-#endif /* if 0 */
 #ifdef USE_GTKSPELL
 	if (editable && purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/spellcheck"))
 		pidgin_setup_gtkspell(GTK_TEXT_VIEW(webview));
@@ -318,8 +316,8 @@ pidgin_create_webview(gboolean editable,
 	gtk_widget_show(webview);
 
 	if (editable) {
-		gtk_imhtmltoolbar_attach(GTK_IMHTMLTOOLBAR(toolbar), webview);
-		gtk_imhtmltoolbar_associate_smileys(GTK_IMHTMLTOOLBAR(toolbar), "default");
+		gtk_webviewtoolbar_attach(GTK_WEBVIEWTOOLBAR(toolbar), webview);
+		gtk_webviewtoolbar_associate_smileys(GTK_WEBVIEWTOOLBAR(toolbar), "default");
 	}
 
 	sw = pidgin_make_scrollable(webview, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC, GTK_SHADOW_NONE, -1, -1);


More information about the Commits mailing list