[gtk/gbsneto/shortcuts-rebased: 13/112] testgtk: Remove unused code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/shortcuts-rebased: 13/112] testgtk: Remove unused code
- Date: Thu, 16 May 2019 00:07:26 +0000 (UTC)
commit 499c9e6691ff99b536b679781bfb0c9338b89fa6
Author: Benjamin Otte <otte redhat com>
Date: Thu Aug 23 06:39:33 2018 +0200
testgtk: Remove unused code
This code has been doing nothing since 2010 when the optionmenu was
removed in 274395063a051717ad9eb5ceab8213724552ad72.
tests/testgtk.c | 43 -------------------------------------------
1 file changed, 43 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index c3664b0139..2d69520757 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -1666,7 +1666,6 @@ create_menus (GtkWidget *widget)
GtkWidget *box1;
GtkWidget *box2;
GtkWidget *button;
- GtkWidget *optionmenu;
GtkWidget *separator;
GtkWidget *box;
GtkWidget *label;
@@ -1676,7 +1675,6 @@ create_menus (GtkWidget *widget)
GtkWidget *menubar;
GtkWidget *menu;
GtkWidget *menuitem;
- GtkAccelGroup *accel_group;
GtkWidget *image;
GdkDisplay *display = gtk_widget_get_display (widget);
@@ -1687,9 +1685,6 @@ create_menus (GtkWidget *widget)
g_signal_connect (window, "destroy", G_CALLBACK (gtk_widget_destroyed), &window);
- accel_group = gtk_accel_group_new ();
- gtk_window_add_accel_group (GTK_WINDOW (window), accel_group);
-
gtk_window_set_title (GTK_WINDOW (window), "menus");
box1 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
@@ -1732,44 +1727,6 @@ create_menus (GtkWidget *widget)
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 10);
gtk_container_add (GTK_CONTAINER (box1), box2);
- menu = create_menu (1, 5);
- gtk_menu_set_accel_group (GTK_MENU (menu), accel_group);
-
- menuitem = gtk_check_menu_item_new_with_label ("Accelerate Me");
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- gtk_widget_add_accelerator (menuitem,
- "activate",
- accel_group,
- GDK_KEY_F1,
- 0,
- GTK_ACCEL_VISIBLE);
- menuitem = gtk_check_menu_item_new_with_label ("Accelerator Locked");
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- gtk_widget_add_accelerator (menuitem,
- "activate",
- accel_group,
- GDK_KEY_F2,
- 0,
- GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
- menuitem = gtk_check_menu_item_new_with_label ("Accelerators Frozen");
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
- gtk_widget_add_accelerator (menuitem,
- "activate",
- accel_group,
- GDK_KEY_F2,
- 0,
- GTK_ACCEL_VISIBLE);
- gtk_widget_add_accelerator (menuitem,
- "activate",
- accel_group,
- GDK_KEY_F3,
- 0,
- GTK_ACCEL_VISIBLE);
-
- optionmenu = gtk_combo_box_text_new ();
- gtk_combo_box_set_active (GTK_COMBO_BOX (optionmenu), 3);
- gtk_container_add (GTK_CONTAINER (box2), optionmenu);
-
separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_container_add (GTK_CONTAINER (box1), separator);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]