Mercurial > pidgin
changeset 3515:54c508cce1bc
[gaim-migrate @ 3588]
Made the buttons look the same. It annoyed me.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Mon, 16 Sep 2002 05:53:20 +0000 |
parents | b1ebeecfd2aa |
children | db00eb77997d |
files | src/prefs.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/prefs.c Sun Sep 15 15:46:06 2002 +0000 +++ b/src/prefs.c Mon Sep 16 05:53:20 2002 +0000 @@ -1244,6 +1244,7 @@ GtkWidget *notebook; GtkWidget *sep; GtkWidget *button; + GtkSizeGroup *sg = gtk_size_group_new(GTK_SIZE_GROUP_BOTH); int r; @@ -1367,19 +1368,23 @@ gtk_widget_show (hbox); button = gtk_button_new_from_stock (GTK_STOCK_OK); + gtk_size_group_add_widget(sg, button); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(ok_cb), prefs); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show(button); + button = gtk_button_new_from_stock (GTK_STOCK_CANCEL); + gtk_size_group_add_widget(sg, button); + gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), prefs); + gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); + gtk_widget_show(button); + button = gtk_button_new_from_stock (GTK_STOCK_APPLY); + gtk_size_group_add_widget(sg, button); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(apply_cb), prefs); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_widget_show(button); - button = gtk_button_new_from_stock (GTK_STOCK_CANCEL); - gtk_signal_connect_object(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy), prefs); - gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); - gtk_widget_show(button); prefs_notebook_init();