[gnome-robots/arnaudb/wip/gtk4: 37/45] ButtonBox is gone.




commit 069be59b565f7533c23d51252aa9f9900f0b1a4d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 25 21:08:34 2020 +0200

    ButtonBox is gone.

 src/properties.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/properties.c b/src/properties.c
index f6e60ba..2fc6d0a 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -374,7 +374,6 @@ show_properties_dialog (void)
   GtkWidget *gpage;
   GtkWidget *kpage;
   GtkWidget *label;
-  GtkWidget *hbox;
   GtkWidget *vbox;
   GtkWidget *typemenu;
   GtkWidget *pmapmenu;
@@ -513,14 +512,10 @@ show_properties_dialog (void)
 
   gtk_box_append (GTK_BOX (vbox), controls_list);
 
-  hbox = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
-  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_START);
-  gtk_box_append (GTK_BOX (vbox), hbox);
-
   dbut = gtk_button_new_with_mnemonic (_("_Restore Defaults"));
   g_signal_connect (G_OBJECT (dbut), "clicked",
                     G_CALLBACK (defkey_cb), NULL);
-  gtk_box_append (GTK_BOX (hbox), dbut);
+  gtk_box_append (GTK_BOX (vbox), dbut);
 
   label = gtk_label_new_with_mnemonic (_("Keyboard"));
   gtk_notebook_append_page (GTK_NOTEBOOK (notebook), kpage, label);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]