aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-editor.c
diff options
context:
space:
mode:
authorJacob Berkman <jacob@helixcode.com>2000-06-10 05:48:29 +0800
committerJacob Berkman <jberkman@src.gnome.org>2000-06-10 05:48:29 +0800
commitcd84bd758091a39792e13c46804b496ce34fd940 (patch)
tree7f39e53bc4e69589db9532120fd69b7681687c78 /filter/filter-editor.c
parent08cb892beab3ede04759a23e04b72e558de21cfb (diff)
downloadgsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.gz
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.bz2
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.lz
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.xz
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.zst
gsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.zip
use stock pixmap buttons
2000-06-09 Jacob Berkman <jacob@helixcode.com> * filter-editor.c (add_or_edit): use stock pixmap buttons * filter-druid.c (build_druid): remove the border on the notebook, put the html widget in a scroll frame, and add some padding svn path=/trunk/; revision=3495
Diffstat (limited to 'filter/filter-editor.c')
-rw-r--r--filter/filter-editor.c33
1 files changed, 28 insertions, 5 deletions
diff --git a/filter/filter-editor.c b/filter/filter-editor.c
index ec6320b649..1f88cc7542 100644
--- a/filter/filter-editor.c
+++ b/filter/filter-editor.c
@@ -192,9 +192,31 @@ add_or_edit(FilterEditor *e, struct filter_option *option)
return;
}
- dialogue = gnome_dialog_new(option?"Edit Filter":"Create filter", "Prev", "Next", "Finish", "Cancel", 0);
-
+ dialogue = gnome_dialog_new (option
+ ? _("Edit Filter")
+ : _("Create filter"),
+ NULL);
p->druid_dialogue = dialogue;
+ {
+ const char *pixmaps[] = {
+ GNOME_STOCK_BUTTON_PREV,
+ GNOME_STOCK_BUTTON_NEXT,
+ GNOME_STOCK_BUTTON_APPLY,
+ GNOME_STOCK_BUTTON_CANCEL,
+ NULL
+ };
+ const char *names[] = {
+ N_("Back"),
+ N_("Next"),
+ N_("Finish"),
+ N_("Cancel"),
+ NULL
+ };
+ if (option)
+ names[2] = N_("Apply");
+ gnome_dialog_append_buttons_with_pixmaps(GNOME_DIALOG (dialogue),
+ names, pixmaps);
+ }
gnome_dialog_set_close(dialogue, FALSE);
gnome_dialog_set_sensitive(dialogue, 0, FALSE);
@@ -208,9 +230,10 @@ add_or_edit(FilterEditor *e, struct filter_option *option)
p->druid_druid = druid;
- filter_druid_set_default_html(p->druid_druid, "<h2>Create Filtering Rule</h2>"
- "<p>Select one of the base rules above, then continue "
- "forwards to customise it.</p>");
+ filter_druid_set_default_html(p->druid_druid,
+ _("<h2>Create Filtering Rule</h2>"
+ "<p>Select one of the base rules above, then continue "
+ "forwards to customise it.</p>"));
filter_druid_set_rules(druid, e->systemoptions, e->rules, option);
gtk_box_pack_start(dialogue->vbox, druid, TRUE, TRUE, 0);