From 724b51b4ffaf280517052d7a2cbf51c31889aa20 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 11 Apr 2003 19:11:50 +0000 Subject: Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156. 2003-04-11 Jeffrey Stedfast Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156. * filter-filter.c (get_widget): Same as with filter-rule. * filter-rule.c (get_widget): Changed border widths of frame vboxes and other padding to comply with the HIG. * rule-editor.c (rule_add): Change window border and padding around the 'rules' widget to comply with the HIG. (rule_edit): Same. (rule_editor_construct): Same here as well. * filter.glade: Many HIG compliance fixes. svn path=/trunk/; revision=20823 --- filter/filter-rule.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'filter/filter-rule.c') diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 22ab424f3c..87e6433167 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -772,6 +772,7 @@ get_widget (FilterRule *fr, struct _RuleContext *f) frame = gtk_frame_new (_("If")); inframe = gtk_vbox_new (FALSE, 3); gtk_container_add (GTK_CONTAINER (frame), inframe); + gtk_container_set_border_width (GTK_CONTAINER (inframe), 6); /* this is the parts table, it should probably be inside a scrolling list */ rows = g_list_length (fr->parts); @@ -793,12 +794,12 @@ get_widget (FilterRule *fr, struct _RuleContext *f) item = gtk_menu_item_new_with_label (_("if all criteria are met")); g_signal_connect (item, "activate", G_CALLBACK (match_all), fr); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); item = gtk_menu_item_new_with_label (_("if any criteria are met")); g_signal_connect (item, "activate", G_CALLBACK (match_any), fr); - gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); gtk_widget_show (item); omenu = gtk_option_menu_new (); @@ -808,12 +809,12 @@ get_widget (FilterRule *fr, struct _RuleContext *f) add = gtk_button_new_from_stock (GTK_STOCK_ADD); g_signal_connect (add, "clicked", G_CALLBACK (more_parts), data); - gtk_box_pack_start (GTK_BOX (hbox), add, FALSE, FALSE, 3); + gtk_box_pack_start (GTK_BOX (hbox), add, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), omenu, FALSE, FALSE, 0); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (inframe), hbox, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (inframe), hbox, FALSE, FALSE, 3); l = fr->parts; while (l) { @@ -833,7 +834,7 @@ get_widget (FilterRule *fr, struct _RuleContext *f) gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolledwindow), parts); - gtk_box_pack_start (GTK_BOX (inframe), scrolledwindow, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (inframe), scrolledwindow, TRUE, TRUE, 3); /*gtk_box_pack_start (GTK_BOX (inframe), parts, FALSE, FALSE, 3); */ -- cgit v1.2.3