gtkhtml r8694 - trunk/components/html-editor



Author: msuman
Date: Tue Jan 22 10:26:43 2008
New Revision: 8694
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=8694&view=rev

Log:
Patch from Bharath Acharya  <abharath novell com> ** Fix for bug #491210 (Grab focus of widget before destroying it)

Modified:
   trunk/components/html-editor/ChangeLog
   trunk/components/html-editor/search.c

Modified: trunk/components/html-editor/search.c
==============================================================================
--- trunk/components/html-editor/search.c	(original)
+++ trunk/components/html-editor/search.c	Tue Jan 22 10:26:43 2008
@@ -93,9 +93,9 @@
 	case GTK_RESPONSE_DELETE_EVENT:
 	case GTK_RESPONSE_CLOSE:
 	case GTK_RESPONSE_CANCEL:
+		gtk_widget_grab_focus (GTK_WIDGET (d->cd->html));
 		d->cd->search_dialog = NULL;
 		gtk_html_search_dialog_destroy (d);
-		gtk_widget_grab_focus (GTK_WIDGET (d->cd->html));
 		break;
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]