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



commit 7325483c4d9772a40b8b64798d01820191dafb28
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]