[gtk/shortcuts-rebased-again: 91/96] testmenubutton: Don't create a GtkAccelGroup



commit 52c7e860d03a0f50ab1647e453136098f483d6aa
Author: Benjamin Otte <otte redhat com>
Date:   Fri Aug 24 07:41:28 2018 +0200

    testmenubutton: Don't create a GtkAccelGroup
    
    It's unused.

 tests/testmenubutton.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/tests/testmenubutton.c b/tests/testmenubutton.c
index 62b9ea2226..07261f231f 100644
--- a/tests/testmenubutton.c
+++ b/tests/testmenubutton.c
@@ -41,7 +41,6 @@ int main (int argc, char **argv)
        GtkWidget *check;
        GtkWidget *combo;
        GtkWidget *menu_widget;
-       GtkAccelGroup *accel_group;
        guint i;
        guint row = 0;
        GMenu *menu;
@@ -56,9 +55,6 @@ int main (int argc, char **argv)
        gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
        gtk_container_add (GTK_CONTAINER (window), grid);
 
-       accel_group = gtk_accel_group_new ();
-       gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
-
        /* horizontal alignment */
        label = gtk_label_new ("Horizontal Alignment:");
        gtk_widget_show (label);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]