summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutswindow.c
diff options
context:
space:
mode:
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>2016-10-14 12:16:07 +0100
committerMatthias Clasen <mclasen@redhat.com>2016-10-14 10:57:32 -0400
commitb7baf3371bb77bc7b14327c04f428cc1bf78c530 (patch)
tree97c354d2e6415bc4c08c6c240949145083e63a90 /gtk/gtkshortcutswindow.c
parent565b35ac006fcb72afdbb374f219c7b87259e8b1 (diff)
downloadgtk+-b7baf3371bb77bc7b14327c04f428cc1bf78c530.tar.gz
shortcutswindow: working version of set_section_name()
(testing before+after, it actually works now) https://bugzilla.gnome.org/show_bug.cgi?id=772926
Diffstat (limited to 'gtk/gtkshortcutswindow.c')
-rw-r--r--gtk/gtkshortcutswindow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkshortcutswindow.c b/gtk/gtkshortcutswindow.c
index 1b7ab72d67..36f55f6e86 100644
--- a/gtk/gtkshortcutswindow.c
+++ b/gtk/gtkshortcutswindow.c
@@ -444,7 +444,7 @@ gtk_shortcuts_window_set_section_name (GtkShortcutsWindow *self,
g_free (priv->initial_section);
priv->initial_section = g_strdup (section_name);
- if (!section_name)
+ if (section_name)
section = gtk_stack_get_child_by_name (priv->stack, section_name);
if (section)
gtk_stack_set_visible_child (priv->stack, section);