From dba8d1ff7772983a76e256999692b2e4cab82b08 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 10 Jun 2021 07:49:08 -0400 Subject: [PATCH] tests: Fix check vs toggle button confusion Check buttons aren't toggle buttons anymore. --- tests/testgmenu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testgmenu.c b/tests/testgmenu.c index 0db92d6577..79856f21fa 100644 --- a/tests/testgmenu.c +++ b/tests/testgmenu.c @@ -418,7 +418,7 @@ create_action_treeview (GActionGroup *group) /* Dynamic menu changes {{{1 */ static void -toggle_sumerian (GtkToggleButton *button, gpointer data) +toggle_sumerian (GtkCheckButton *button, gpointer data) { GMenuModel *model; gboolean adding; @@ -426,7 +426,7 @@ toggle_sumerian (GtkToggleButton *button, gpointer data) model = g_object_get_data (G_OBJECT (button), "model"); - adding = gtk_toggle_button_get_active (button); + adding = gtk_check_button_get_active (button); m = g_menu_model_get_item_link (model, g_menu_model_get_n_items (model) - 1, G_MENU_LINK_SECTION); m = g_menu_model_get_item_link (m, g_menu_model_get_n_items (m) - 1, G_MENU_LINK_SUBMENU); @@ -467,7 +467,7 @@ action_list_remove (GtkTreeModel *store, } static void -toggle_italic (GtkToggleButton *button, gpointer data) +toggle_italic (GtkCheckButton *button, gpointer data) { GMenuModel *model; GActionGroup *group; @@ -482,7 +482,7 @@ toggle_italic (GtkToggleButton *button, gpointer data) store = gtk_tree_view_get_model (tv); - adding = gtk_toggle_button_get_active (button); + adding = gtk_check_button_get_active (button); m = g_menu_model_get_item_link (model, g_menu_model_get_n_items (model) - 1, G_MENU_LINK_SECTION); if (adding) @@ -503,7 +503,7 @@ toggle_italic (GtkToggleButton *button, gpointer data) } static void -toggle_speed (GtkToggleButton *button, gpointer data) +toggle_speed (GtkCheckButton *button, gpointer data) { GMenuModel *model; GActionGroup *group; @@ -519,7 +519,7 @@ toggle_speed (GtkToggleButton *button, gpointer data) store = gtk_tree_view_get_model (tv); - adding = gtk_toggle_button_get_active (button); + adding = gtk_check_button_get_active (button); m = g_menu_model_get_item_link (model, 1, G_MENU_LINK_SECTION); if (adding)