[gnome-builder/wip/vim] notebook: focus tab after raising it.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/vim] notebook: focus tab after raising it.
- Date: Tue, 30 Sep 2014 18:40:41 +0000 (UTC)
commit 34a6e1187115ef7508e2117ec2a24e9f1f506fcf
Author: Christian Hergert <christian hergert me>
Date: Tue Sep 30 11:40:36 2014 -0700
notebook: focus tab after raising it.
src/tabs/gb-notebook.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tabs/gb-notebook.c b/src/tabs/gb-notebook.c
index 79e2e5b..76f0412 100644
--- a/src/tabs/gb-notebook.c
+++ b/src/tabs/gb-notebook.c
@@ -58,7 +58,10 @@ gb_notebook_raise_tab (GbNotebook *notebook,
NULL);
if (page != -1)
- gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), page);
+ {
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (notebook), page);
+ gtk_widget_grab_focus (GTK_WIDGET (tab));
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]