pidgin: 0bdb63f2: This focus grab seems to be in the wrong...

qulogic at pidgin.im qulogic at pidgin.im
Fri Jun 8 03:12:13 EDT 2012


----------------------------------------------------------------------
Revision: 0bdb63f2059e9e27b70d3ac89cad64c665702a47
Parent:   2530757adc4c1d2ba51a9f2394e38b4f322d2684
Author:   qulogic at pidgin.im
Date:     06/05/12 22:56:53
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/0bdb63f2059e9e27b70d3ac89cad64c665702a47

Changelog: 

This focus grab seems to be in the wrong place.

Changes against parent 2530757adc4c1d2ba51a9f2394e38b4f322d2684

  patched  pidgin/gtkwebview.c
  patched  pidgin/gtkwebviewtoolbar.c

-------------- next part --------------
============================================================
--- pidgin/gtkwebview.c	6678f0a6fe39bd405ce60c5b7576838ed380f3ee
+++ pidgin/gtkwebview.c	78b53693aa0d42cfbd8e29e04d37bb58d1cca863
@@ -986,8 +986,6 @@ gtk_webview_clear_formatting(GtkWebView 
 	object = g_object_ref(G_OBJECT(webview));
 	g_signal_emit(object, signals[CLEAR_FORMAT], 0);
 	g_object_unref(object);
-
-	gtk_widget_grab_focus(GTK_WIDGET(webview));
 }
 
 void
============================================================
--- pidgin/gtkwebviewtoolbar.c	59758683ebb45837cab026257fba582d79183568
+++ pidgin/gtkwebviewtoolbar.c	b0bdca0ec76f6b7cfa4562e14810a809f7b3c1a4
@@ -438,6 +438,7 @@ clear_formatting_cb(GtkAction *clear, Gt
 clear_formatting_cb(GtkAction *clear, GtkWebViewToolbar *toolbar)
 {
 	gtk_webview_clear_formatting(GTK_WEBVIEW(toolbar->webview));
+	gtk_widget_grab_focus(toolbar->webview);
 }
 
 static void


More information about the Commits mailing list