diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-12 11:09:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-12 11:09:09 +0000 |
commit | 649cc279d6dad12744f67a23fa335e9ee2f55627 (patch) | |
tree | 2ca278c9d110d53f2b52bcca9215bbf106ef0ca8 /gtk/gui_prefs.c | |
parent | 6437001da675c0c6f893791ecc163af7b6c09168 (diff) |
Put the labels of check boxes to the left of the checkboxes,
right-aligned, and give all of them a colon at the end, to match the
style of other preferences.
svn path=/trunk/; revision=4535
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r-- | gtk/gui_prefs.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c index c9dafda6f8..912a6b0c76 100644 --- a/gtk/gui_prefs.c +++ b/gtk/gui_prefs.c @@ -1,7 +1,7 @@ /* gui_prefs.c * Dialog box for GUI preferences * - * $Id: gui_prefs.c,v 1.30 2002/01/11 07:40:31 guy Exp $ + * $Id: gui_prefs.c,v 1.31 2002/01/12 11:09:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -258,16 +258,18 @@ create_option_check_button(GtkWidget *main_vb, const gchar *key, GtkWidget *main_tb, int table_position, const gchar *label_text, gboolean active) { - GtkWidget *hbox, *check_box; + GtkWidget *label, *check_box; - hbox = gtk_hbox_new(FALSE, 0); - gtk_table_attach_defaults(GTK_TABLE(main_tb), hbox, 1, 3, + label = gtk_label_new(label_text); + gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); + gtk_table_attach_defaults(GTK_TABLE(main_tb), label, 0, 1, table_position, table_position + 1); - check_box = gtk_check_button_new_with_label(label_text); + check_box = gtk_check_button_new(); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check_box), active); + gtk_table_attach_defaults(GTK_TABLE(main_tb), check_box, 1, 2, + table_position, table_position + 1); - gtk_box_pack_start( GTK_BOX(hbox), check_box, FALSE, FALSE, 0 ); gtk_object_set_data(GTK_OBJECT(main_vb), key, check_box); } |