Make the prefs buttons more like dhcpcd-qt.
authorRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 19:54:30 +0000 (19:54 +0000)
committerRoy Marples <roy@marples.name>
Wed, 19 Nov 2014 19:54:30 +0000 (19:54 +0000)
src/dhcpcd-gtk/prefs.c

index fac72047887c07e8090b05d5a24b9c2badc0cab4..af5597f2a6d92fd0de069dac7ab699317610b14a 100644 (file)
@@ -631,7 +631,7 @@ prefs_show(DHCPCD_CONNECTION *con)
        gtk_box_pack_start(GTK_BOX(dialog_vbox), hbox, true, true, 3);
        clear = gtk_button_new_from_stock(GTK_STOCK_CLEAR);
        gtk_widget_set_sensitive(clear, false);
-       gtk_box_pack_start(GTK_BOX(hbox), clear, false, false, 0);
+       gtk_box_pack_start(GTK_BOX(hbox), clear, true, true, 0);
        g_signal_connect(G_OBJECT(clear), "clicked",
            G_CALLBACK(on_clear), con);
        rebind = gtk_button_new_with_mnemonic(_("_Rebind"));
@@ -639,11 +639,11 @@ prefs_show(DHCPCD_CONNECTION *con)
        w = gtk_image_new_from_stock(GTK_STOCK_EXECUTE,
            GTK_ICON_SIZE_BUTTON);
        gtk_button_set_image(GTK_BUTTON(rebind), w);
-       gtk_box_pack_start(GTK_BOX(hbox), rebind, false, false, 0);
+       gtk_box_pack_start(GTK_BOX(hbox), rebind, true, true, 0);
        g_signal_connect(G_OBJECT(rebind), "clicked",
            G_CALLBACK(on_rebind), con);
        w = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
-       gtk_box_pack_end(GTK_BOX(hbox), w, false, false, 0);
+       gtk_box_pack_end(GTK_BOX(hbox), w, true, true, 0);
        g_signal_connect(G_OBJECT(w), "clicked",
            G_CALLBACK(prefs_close), NULL);