[gedit] Make the new notebook grab the focus after destroying the widgets.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Make the new notebook grab the focus after destroying the widgets.
- Date: Tue, 22 Jun 2010 21:51:12 +0000 (UTC)
commit f065676dd80313b501e32dbff1172f8cf267a980
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jun 22 23:09:03 2010 +0200
Make the new notebook grab the focus after destroying the widgets.
gedit/gedit-multi-notebook.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c
index 4b43715..0b6fde8 100644
--- a/gedit/gedit-multi-notebook.c
+++ b/gedit/gedit-multi-notebook.c
@@ -514,9 +514,6 @@ remove_notebook (GeditMultiNotebook *mnb,
notebook);
mnb->priv->removing_notebook = FALSE;
-
- /* Let's make the active notebook grab the focus */
- gtk_widget_grab_focus (new_notebook);
children = gtk_container_get_children (GTK_CONTAINER (parent));
if (children->next != NULL)
@@ -538,6 +535,9 @@ remove_notebook (GeditMultiNotebook *mnb,
g_signal_emit (G_OBJECT (mnb), signals[NOTEBOOK_REMOVED], 0, notebook);
g_object_unref (notebook);
+
+ /* Let's make the active notebook grab the focus */
+ gtk_widget_grab_focus (new_notebook);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]