summaryrefslogtreecommitdiff
path: root/tests/testmerge.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testmerge.c')
-rw-r--r--tests/testmerge.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/testmerge.c b/tests/testmerge.c
index 1e43bb818b..3f1eba0eb2 100644
--- a/tests/testmerge.c
+++ b/tests/testmerge.c
@@ -592,6 +592,7 @@ main (int argc, char **argv)
GtkUIManager *merge;
GtkWidget *window, *table, *frame, *menu_box, *vbox, *view;
GtkWidget *button, *area, *statusbar;
+ GtkWidget *box;
gint i;
gtk_init (&argc, &argv);
@@ -652,6 +653,15 @@ main (int argc, char **argv)
gtk_action_group_get_action (action_group, "BoldAction"));
gtk_widget_show (button);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+ gtk_box_pack_end (GTK_BOX (menu_box), box, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (box), gtk_label_new ("Bold:"));
+ button = gtk_switch_new ();
+ gtk_container_add (GTK_CONTAINER (box), button);
+ gtk_activatable_set_related_action (GTK_ACTIVATABLE (button),
+ gtk_action_group_get_action (action_group, "BoldAction"));
+ gtk_widget_show_all (box);
+
merge = gtk_ui_manager_new ();
g_signal_connect (merge, "connect-proxy", G_CALLBACK (connect_proxy), statusbar);