Commit 43091697 authored by Matthias Clasen's avatar Matthias Clasen

GtkShortcutsSection: avoid deprecation warnings

We could just as well remove these calls here, since they
have no effect.
parent d76c0783
......@@ -649,11 +649,15 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self)
gtk_widget_show (column);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_size_group_set_ignore_hidden (group, TRUE);
G_GNUC_END_IGNORE_DEPRECATIONS
g_object_set_data_full (G_OBJECT (column), "accel-size-group", group, g_object_unref);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_size_group_set_ignore_hidden (group, TRUE);
G_GNUC_END_IGNORE_DEPRECATIONS
g_object_set_data_full (G_OBJECT (column), "title-size-group", group, g_object_unref);
if (n_columns % 2 == 0)
......@@ -698,10 +702,14 @@ gtk_shortcuts_section_reflow_groups (GtkShortcutsSection *self)
gtk_widget_show (column);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_size_group_set_ignore_hidden (group, TRUE);
G_GNUC_END_IGNORE_DEPRECATIONS
g_object_set_data_full (G_OBJECT (column), "accel-size-group", group, g_object_unref);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_size_group_set_ignore_hidden (group, TRUE);
G_GNUC_END_IGNORE_DEPRECATIONS
g_object_set_data_full (G_OBJECT (column), "title-size-group", group, g_object_unref);
gtk_container_add (GTK_CONTAINER (current_page), column);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment