diff options
Diffstat (limited to 'tests/testtoolbar.c')
-rw-r--r-- | tests/testtoolbar.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/testtoolbar.c b/tests/testtoolbar.c index c49b2cdb5f..57c7ceb1b3 100644 --- a/tests/testtoolbar.c +++ b/tests/testtoolbar.c @@ -457,19 +457,19 @@ main (gint argc, gchar **argv) gtk_grid_attach (GTK_GRID (grid), hbox2, 1, 2, 1, 1); checkbox = gtk_check_button_new_with_mnemonic("_Vertical"); - gtk_box_pack_start (GTK_BOX (hbox1), checkbox); + gtk_container_add (GTK_CONTAINER (hbox1), checkbox); g_signal_connect (checkbox, "toggled", G_CALLBACK (change_orientation), toolbar); checkbox = gtk_check_button_new_with_mnemonic("_Show Arrow"); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), TRUE); - gtk_box_pack_start (GTK_BOX (hbox1), checkbox); + gtk_container_add (GTK_CONTAINER (hbox1), checkbox); g_signal_connect (checkbox, "toggled", G_CALLBACK (change_show_arrow), toolbar); checkbox = gtk_check_button_new_with_mnemonic("_Set Toolbar Style:"); g_signal_connect (checkbox, "toggled", G_CALLBACK (set_toolbar_style_toggled), toolbar); - gtk_box_pack_start (GTK_BOX (hbox1), checkbox); + gtk_container_add (GTK_CONTAINER (hbox1), checkbox); option_menu = gtk_combo_box_text_new (); gtk_widget_set_sensitive (option_menu, FALSE); @@ -479,7 +479,7 @@ main (gint argc, gchar **argv) gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (option_menu), toolbar_styles[i]); gtk_combo_box_set_active (GTK_COMBO_BOX (option_menu), gtk_toolbar_get_style (GTK_TOOLBAR (toolbar))); - gtk_box_pack_start (GTK_BOX (hbox2), option_menu); + gtk_container_add (GTK_CONTAINER (hbox2), option_menu); g_signal_connect (option_menu, "changed", G_CALLBACK (change_toolbar_style), toolbar); @@ -630,13 +630,16 @@ main (gint argc, gchar **argv) gtk_grid_attach (GTK_GRID (grid), hbox, 1, 4, 1, 1); button = gtk_button_new_with_label ("Drag me to the toolbar"); - gtk_box_pack_start (GTK_BOX (hbox), button); + gtk_container_add (GTK_CONTAINER (hbox), button); label = gtk_label_new ("Drop index:"); - gtk_box_pack_start (GTK_BOX (hbox), label); + gtk_container_add (GTK_CONTAINER (hbox), label); label = gtk_label_new (""); - gtk_box_pack_start (GTK_BOX (hbox), label); + gtk_widget_set_hexpand (label, TRUE); + gtk_widget_set_halign (label, GTK_ALIGN_START); + gtk_container_add (GTK_CONTAINER (hbox), label); + checkbox = gtk_check_button_new_with_mnemonic("_Right to left"); if (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL) @@ -645,7 +648,7 @@ main (gint argc, gchar **argv) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkbox), FALSE); g_signal_connect (checkbox, "toggled", G_CALLBACK (rtl_toggled), NULL); - gtk_box_pack_end (GTK_BOX (hbox), checkbox); + gtk_container_add (GTK_CONTAINER (hbox), checkbox); targets = gdk_content_formats_new (target_table, G_N_ELEMENTS (target_table)); gtk_drag_source_set (button, GDK_BUTTON1_MASK, |