diff options
author | Stefano Facchini <stefano.facchini@gmail.com> | 2014-07-12 14:59:59 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-07-13 15:19:27 -0400 |
commit | cef6f34fb7585fc423ec999822d515d6da0e6d6f (patch) | |
tree | a6e565e62bd2be47d45f2254fdef56d3d40ff118 /gtk/inspector/style-prop-list.c | |
parent | 66428bdd70d277ad50b9928e8071498c21767715 (diff) | |
download | gtk+-cef6f34fb7585fc423ec999822d515d6da0e6d6f.tar.gz |
inspector: Do not accidentally change tab in the object notebook
The "hide-and-show" dance makes the notebook select the next tab.
https://bugzilla.gnome.org/show_bug.cgi?id=733092
Diffstat (limited to 'gtk/inspector/style-prop-list.c')
-rw-r--r-- | gtk/inspector/style-prop-list.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/inspector/style-prop-list.c b/gtk/inspector/style-prop-list.c index 9fed77b64d..4212e65bc7 100644 --- a/gtk/inspector/style-prop-list.c +++ b/gtk/inspector/style-prop-list.c @@ -308,10 +308,11 @@ void gtk_inspector_style_prop_list_set_object (GtkInspectorStylePropList *self, GObject *object) { - gtk_widget_hide (GTK_WIDGET (self)); - if (self->priv->widget == (GtkWidget *)object) - return; + { + gtk_widget_hide (GTK_WIDGET (self)); + return; + } if (self->priv->widget) { @@ -321,7 +322,10 @@ gtk_inspector_style_prop_list_set_object (GtkInspectorStylePropList *self, } if (!GTK_IS_WIDGET (object)) - return; + { + gtk_widget_hide (GTK_WIDGET (self)); + return; + } self->priv->widget = (GtkWidget *)object; g_object_weak_ref (G_OBJECT (self), disconnect_each_other, object); |