pidgin: 75b5126a: Emit the format-cleared signal when the ...

qulogic at pidgin.im qulogic at pidgin.im
Thu Jan 5 23:01:08 EST 2012


----------------------------------------------------------------------
Revision: 75b5126aa583d56c2a6a4d91e72835deb31711ce
Parent:   7e56c93b4e4d5dc369b8e8e17d18c2799de4b5b9
Author:   qulogic at pidgin.im
Date:     01/05/12 01:30:29
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/75b5126aa583d56c2a6a4d91e72835deb31711ce

Changelog: 

Emit the format-cleared signal when the webview format is cleared.

Changes against parent 7e56c93b4e4d5dc369b8e8e17d18c2799de4b5b9

  patched  pidgin/gtkwebview.c

-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c	56905ee3be157c4fa04bd28d47d4e24e304cd9d7
+++ pidgin/gtkwebview.c	c5c824e1e80918647be3362250cc139d4545dbf0
@@ -829,11 +829,14 @@ gtk_webview_clear_formatting(GtkWebView 
 void
 gtk_webview_clear_formatting(GtkWebView *webview)
 {
-	GtkWebViewPriv *priv = GTK_WEBVIEW_GET_PRIVATE(webview);
-	priv->edit.bold = FALSE;
-	priv->edit.italic = FALSE;
-	priv->edit.underline = FALSE;
-	priv->edit.strike = FALSE;
+	GObject *object;
+
+	object = g_object_ref(G_OBJECT(webview));
+	g_signal_emit(object, signals[CLEAR_FORMAT], 0);
+
+	gtk_widget_grab_focus(GTK_WIDGET(webview));
+
+	g_object_unref(object);
 }
 
 void


More information about the Commits mailing list