aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-filter.c
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2004-03-16 04:37:48 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-03-16 04:37:48 +0800
commit4080a5356c3543a554d689df467d6d72393e58c6 (patch)
tree31a7f4312f0cb506ffe7000010e5f22837491979 /filter/filter-filter.c
parentde554db704621dacfba118684f9d2ace694afd65 (diff)
downloadgsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar.gz
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar.bz2
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar.lz
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar.xz
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.tar.zst
gsoc2013-evolution-4080a5356c3543a554d689df467d6d72393e58c6.zip
Hide the separators on these dialogs Re-pack the rule_editor widget in
2004-04-15 Rodney Dawes <dobey@ximian.com> * filter-datespec.c (validate): (button_clicked): Hide the separators on these dialogs * filter-editor.c (filter_editor_new): Re-pack the rule_editor widget in here, and get rid of the GtkFrame-related code * filter-file.c (validate): Hide the separators on these dialogs * filter-filter.c (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter-folder.c (validate): Hide the separator on this dialog * filter-input.c (validate): Hide the separator on this dialog * filter-part.c (main): Hide the separator on this dialog * filter-rule.c (validate): Hide the separator on this dialog (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter.glade: Make the widget layouts here be HIG-compliant * rule-context.c (new_rule_response): (rule_context_add_rule_gui): Hide the separators on these dialogs * rule-editor.c (rule_editor_new): Get rid of the GtkFrame-related code (add_editor_response): Hide the dialog separator here (rule_add): Hide the dialog separator here (edit_editor_response): Hide the dialog separator here (rule_edit): Hide the dialog separator here (rule_editor_construct): Remove the rule_editor repacking code Set the dialog vbox's border width to 12 Set the mnemonic for the filter label here Hide the dialog separator on the filter editor dialog * vfolder-editor.c (vfolder_editor_new): Re-pack the appropriate editor widget in here Get rid of the GtkFrame-related code * vfolder-rule.c (validate): Hide the dialog separators here svn path=/trunk/; revision=25083
Diffstat (limited to 'filter/filter-filter.c')
-rw-r--r--filter/filter-filter.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/filter/filter-filter.c b/filter/filter-filter.c
index 6719cb9ad4..0aa5920b98 100644
--- a/filter/filter-filter.c
+++ b/filter/filter-filter.c
@@ -475,7 +475,7 @@ more_parts (GtkWidget *button, struct _rule_data *data)
static GtkWidget *
get_widget (FilterRule *fr, RuleContext *rc)
{
- GtkWidget *widget, *hbox, *add, *frame;
+ GtkWidget *widget, *hbox, *add, *label;
GtkWidget *parts, *inframe, *w;
GtkWidget *scrolledwindow;
GtkObject *hadj, *vadj;
@@ -488,10 +488,22 @@ get_widget (FilterRule *fr, RuleContext *rc)
widget = FILTER_RULE_CLASS (parent_class)->get_widget (fr, rc);
/* and now for the action area */
- frame = gtk_frame_new (_("Then"));
- inframe = gtk_vbox_new (FALSE, 3);
- gtk_container_add (GTK_CONTAINER (frame), inframe);
- gtk_container_set_border_width (GTK_CONTAINER (inframe), 6);
+ label = gtk_label_new (_("<b>Then</b>"));
+ gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
+ gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+ gtk_box_pack_start (GTK_BOX (widget), label, FALSE, FALSE, 0);
+ gtk_widget_show (label);
+
+ hbox = gtk_hbox_new (FALSE, 12);
+ gtk_box_pack_start (GTK_BOX (widget), hbox, FALSE, FALSE, 0);
+ gtk_widget_show (hbox);
+
+ label = gtk_label_new ("");
+ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ gtk_widget_show (label);
+
+ inframe = gtk_vbox_new (FALSE, 6);
+ gtk_box_pack_start (GTK_BOX (hbox), inframe, TRUE, TRUE, 0);
rows = g_list_length (ff->actions);
parts = gtk_table_new (rows, 2, FALSE);
@@ -526,13 +538,11 @@ get_widget (FilterRule *fr, RuleContext *rc)
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolledwindow), parts);
- gtk_box_pack_start (GTK_BOX (inframe), scrolledwindow, TRUE, TRUE, 3);
+ gtk_box_pack_start (GTK_BOX (inframe), scrolledwindow, TRUE, TRUE, 0);
/*gtk_box_pack_start (GTK_BOX (inframe), parts, FALSE, FALSE, 3);*/
- gtk_widget_show_all (frame);
-
- gtk_box_pack_start (GTK_BOX (widget), frame, TRUE, TRUE, 3);
+ gtk_widget_show_all (widget);
return widget;
}