[gtk+] inspector: Go to the desired tab
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Go to the desired tab
- Date: Wed, 4 Jun 2014 23:29:46 +0000 (UTC)
commit 1c232066b87b8a60fd488b0a3a9ac08491b9fac6
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 4 19:28:24 2014 -0400
inspector: Go to the desired tab
We were setting the next-tab properly, but were trying to
read it off the wrong object. Now, going from a cell renderer
attribute mapping to the model, or from an action-name to the
action actually works.
gtk/inspector/window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index cc3b36a..a4dc657 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -81,7 +81,7 @@ on_widget_tree_selection_changed (GtkInspectorWidgetTree *wt,
gtk_inspector_gestures_set_object (GTK_INSPECTOR_GESTURES (iw->gestures), selected);
notebook = gtk_widget_get_parent (iw->prop_list);
- tab = g_object_get_data (G_OBJECT (iw), "next-tab");
+ tab = g_object_get_data (G_OBJECT (wt), "next-tab");
if (g_strcmp0 (tab, "properties") == 0)
{
page_num = gtk_notebook_page_num (GTK_NOTEBOOK (notebook), iw->prop_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]