diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-05 12:09:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-05 12:10:21 -0500 |
commit | c83ab24237783b7224262889d7272432fd662fd9 (patch) | |
tree | 79b95a472a9625911f68bd688637ac616f29ea38 /gtk/gtkshortcutsgroup.c | |
parent | 830b6f10a1e7f9709006a6f16f5168f8d460308b (diff) | |
download | gtk+-c83ab24237783b7224262889d7272432fd662fd9.tar.gz |
Remove GtkShortcutsGesture
The gesture functionality was taken over by GtkShortcutsShortcut,
so this widget is no longer needed, and it never was in a stable
release, so lets get rid of it.
Diffstat (limited to 'gtk/gtkshortcutsgroup.c')
-rw-r--r-- | gtk/gtkshortcutsgroup.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gtk/gtkshortcutsgroup.c b/gtk/gtkshortcutsgroup.c index 650c5b8a58..9e927158e3 100644 --- a/gtk/gtkshortcutsgroup.c +++ b/gtk/gtkshortcutsgroup.c @@ -21,7 +21,6 @@ #include "gtkshortcutsgroup.h" #include "gtkshortcutsshortcut.h" -#include "gtkshortcutsgesture.h" #include "gtklabel.h" #include "gtkorientable.h" #include "gtksizegroup.h" @@ -78,8 +77,6 @@ gtk_shortcuts_group_apply_accel_size_group (GtkShortcutsGroup *group, { if (GTK_IS_SHORTCUTS_SHORTCUT (child)) g_object_set (child, "accel-size-group", group->accel_size_group, NULL); - else if (GTK_IS_SHORTCUTS_GESTURE (child)) - g_object_set (child, "icon-size-group", group->accel_size_group, NULL); } static void @@ -88,8 +85,6 @@ gtk_shortcuts_group_apply_title_size_group (GtkShortcutsGroup *group, { if (GTK_IS_SHORTCUTS_SHORTCUT (child)) g_object_set (child, "title-size-group", group->title_size_group, NULL); - else if (GTK_IS_SHORTCUTS_GESTURE (child)) - g_object_set (child, "title-size-group", group->title_size_group, NULL); } static void @@ -137,8 +132,6 @@ gtk_shortcuts_group_get_height (GtkShortcutsGroup *group) continue; else if (GTK_IS_SHORTCUTS_SHORTCUT (child)) height += 1; - else if (GTK_IS_SHORTCUTS_GESTURE (child)) - height += 2; } g_list_free (children); @@ -149,8 +142,7 @@ static void gtk_shortcuts_group_add (GtkContainer *container, GtkWidget *widget) { - if (GTK_IS_SHORTCUTS_SHORTCUT (widget) || - GTK_IS_SHORTCUTS_GESTURE (widget)) + if (GTK_IS_SHORTCUTS_SHORTCUT (widget)) { GTK_CONTAINER_CLASS (gtk_shortcuts_group_parent_class)->add (container, widget); gtk_shortcuts_group_apply_accel_size_group (GTK_SHORTCUTS_GROUP (container), widget); |