aboutsummaryrefslogtreecommitdiffstats
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
parent08cb892beab3ede04759a23e04b72e558de21cfb (diff)
downloadgsoc2013-evolution-cd84bd758091a39792e13c46804b496ce34fd940.tar.gz
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
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filter-druid.c57
-rw-r--r--filter/filter-editor.c33
3 files changed, 71 insertions, 26 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index e39b5c03d1..da0d2570c3 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+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
+
2000-06-06 Dan Winship <danw@helixcode.com>
* filter-driver.c (open_folder): Update for folder
diff --git a/filter/filter-druid.c b/filter/filter-druid.c
index 4a4595c5fb..75c948bfdd 100644
--- a/filter/filter-druid.c
+++ b/filter/filter-druid.c
@@ -27,6 +27,8 @@
#include <gnome-xml/tree.h>
#include <gnome-xml/parser.h>
+#include "widgets/misc/e-scroll-frame.h"
+
#include "filter-arg-types.h"
#include "filter-xml.h"
#include "filter-format.h"
@@ -604,7 +606,8 @@ filter_druid_set_rules(FilterDruid *f, GList *options, GList *rules, struct filt
static void
build_druid(FilterDruid *d)
{
- GtkWidget *vbox, *frame, *scrolled_window, *list, *html, *hbox, *label, *vbox1;
+ GtkWidget *vbox, *frame, *scrolled_window, *list, *html, *hbox, *label;
+ GtkWidget *frame1, *table;
struct _FilterDruidPrivate *p = _PRIVATE(d);
#if 0
@@ -618,7 +621,8 @@ build_druid(FilterDruid *d)
p->notebook = d;
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(p->notebook), FALSE);
-
+ gtk_notebook_set_show_border(GTK_NOTEBOOK(p->notebook), FALSE);
+
/* page0, initial setup page */
vbox = gtk_vbox_new(FALSE, 3);
frame = gtk_frame_new("Filters");
@@ -627,6 +631,7 @@ build_druid(FilterDruid *d)
list = gtk_list_new();
scrolled_window = gtk_scrolled_window_new(NULL, NULL);
gtk_widget_set_usize(scrolled_window, 400, 150);
+ gtk_container_set_border_width(GTK_CONTAINER(scrolled_window), GNOME_PAD_SMALL);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled_window), list);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
@@ -639,13 +644,17 @@ build_druid(FilterDruid *d)
gtk_box_pack_start((GtkBox *)vbox, frame, TRUE, TRUE, 0);
frame = gtk_frame_new("Filter Description (click on values to edit)");
- html = gtk_html_new();
- scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+ html = gtk_html_new();
+ scrolled_window = e_scroll_frame_new (NULL, NULL);
gtk_widget_set_usize(scrolled_window, 400, 150);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
- GTK_POLICY_AUTOMATIC,
- GTK_POLICY_AUTOMATIC);
- gtk_container_add(GTK_CONTAINER(scrolled_window), html);
+ gtk_container_set_border_width(GTK_CONTAINER(scrolled_window), GNOME_PAD_SMALL);
+ e_scroll_frame_set_policy (E_SCROLL_FRAME (scrolled_window),
+ GTK_POLICY_AUTOMATIC,
+ GTK_POLICY_AUTOMATIC);
+ e_scroll_frame_set_shadow_type (E_SCROLL_FRAME (scrolled_window),
+ GTK_SHADOW_IN);
+ /*gtk_container_add(GTK_CONTAINER(frame1), html);*/
+ gtk_container_add(GTK_CONTAINER(scrolled_window), html);//frame1);
gtk_container_add(GTK_CONTAINER(frame), scrolled_window);
gtk_box_pack_start((GtkBox *)vbox, frame, TRUE, TRUE, 0);
@@ -666,32 +675,38 @@ build_druid(FilterDruid *d)
vbox = gtk_vbox_new(FALSE, 3);
frame = gtk_frame_new("Rule options");
- vbox1 = gtk_vbox_new(FALSE, 3);
+ gtk_box_pack_start((GtkBox *)vbox, frame, FALSE, FALSE, 0);
+
+ table = gtk_table_new (2, 2, FALSE);
+ gtk_container_set_border_width (GTK_CONTAINER (table), GNOME_PAD_SMALL);
+ gtk_table_set_row_spacings (GTK_TABLE (table), GNOME_PAD_SMALL);
+ gtk_table_set_col_spacings (GTK_TABLE (table), GNOME_PAD_SMALL);
+
+ gtk_container_add(GTK_CONTAINER(frame), table);
- hbox = gtk_hbox_new(FALSE, 3);
label = gtk_label_new("Name of rule");
p->name1 = gtk_entry_new();
- gtk_box_pack_start((GtkBox *)hbox, label, FALSE, FALSE, 0);
- gtk_box_pack_start((GtkBox *)hbox, p->name1, TRUE, TRUE, 0);
- gtk_box_pack_start((GtkBox *)vbox1, hbox, TRUE, FALSE, 0);
-
- gtk_container_add(GTK_CONTAINER(frame), vbox1);
+ gtk_signal_connect(GTK_OBJECT(p->name1), "changed", option_name_changed, d);
p->activate1 = gtk_check_button_new_with_label("Activate rule?");
- gtk_box_pack_start((GtkBox *)vbox1, p->activate1, TRUE, FALSE, 0);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(p->activate1), TRUE);
- gtk_signal_connect(GTK_OBJECT(p->name1), "changed", option_name_changed, d);
-
- gtk_box_pack_start((GtkBox *)vbox, frame, TRUE, TRUE, 0);
+ gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0);
+ gtk_table_attach (GTK_TABLE (table), p->name1, 1, 2, 0, 1,
+ GTK_FILL | GTK_EXPAND, 0, 0, 0);
+ gtk_table_attach (GTK_TABLE (table), p->activate1, 0, 2, 1, 2,
+ GTK_FILL | GTK_EXPAND, 0, 0, 0);
/* another copy of the filter thingy */
frame = gtk_frame_new("Filter Description (click on values to edit)");
html = gtk_html_new();
p->html1 = (GtkHTML *)html;
- scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+ scrolled_window = e_scroll_frame_new (NULL, NULL);
+ gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), GNOME_PAD_SMALL);
+ e_scroll_frame_set_shadow_type (E_SCROLL_FRAME (scrolled_window),
+ GTK_SHADOW_IN);
gtk_widget_set_usize(scrolled_window, 400, 150);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
+ e_scroll_frame_set_policy (E_SCROLL_FRAME (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_container_add(GTK_CONTAINER(scrolled_window), html);
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);
href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/x11-wm?h=mate-1.16&id=f4351fcf6ef2880673cb7f005987db198380e61c'>Wmconfig port update to V1.2.3edwin2005-01-123-4/+28 * Update to version 1.0.27krion2004-12-312-6/+5 * Update to version 1.2.19krion2004-12-302-6/+3 * Fix pkg-plist.vanilla2004-12-303-0/+3 * - Fix recent python conflictsem2004-12-302-1/+11 * Mark the port IGNORE on X_WINDOW_SYSTEM that doesn't have sufficient libraries.anholt2004-12-251-1/+7 * Html manpages are no more.lesi2004-12-251-1/+0 * New port: xcompmgr, a sample compositing manager which can do translucentanholt2004-12-245-0/+34 * Tweak better CONFLICTS: s/expocity*/expocity-[0-9]*/gmezz2004-12-241-1/+1 * Add knob to switch default image for starup button to BSD daemon'skrion2004-12-232-1/+13 * Update X.Org ports to 6.8.1, and the DRI port to use Mesa 6.2. Because Mesa 6.2anholt2004-12-231-1/+0 * Fix plist.krion2004-12-211-1/+1 * 1: Fix pkg-plist again :(vanilla2004-12-219-6/+15 * Fix pkg-plist.vanilla2004-12-213-0/+9 * Upgrade to 0.16.7.2.vanilla2004-12-2112-51/+30 * Fix pkg-plisthq2004-12-201-0/+1 * Update to version 1.2.18krion2004-12-202-3/+5 * This port is scheduled to be removed on 2005-02-18 if it is stillkris2004-12-191-1/+3 * . Add missing manual pages.glewis2004-12-181-2/+3 * Clean up handling of locale directories at deinstall-time:kris2004-12-163-0/+6 * Fix pkg-plist and mark BROKEN on alphakrion2004-12-122-4/+5 * BROKEN: Broken by python 2.4 updatekris2004-12-121-0/+2 * - Reset maintainership, maintainer no longer run FreeBSD with Xpav2004-12-111-1/+1 * -Update to 0.9.11.mezz2004-12-087-35/+36 * Update to 2.8.8ahze2004-12-072-3/+3 * Update to version 2.00.01krion2004-12-064-18/+13 * Since imake is no longer necessary present at build time as consequence oflesi2004-12-021-0/+2 * Since imake is no longer necessary present at build time as consequence oflesi2004-12-021-0/+2 * - Add support for GDM sessions (only when WITH_GDM_SUPPORT is defined)hq2004-11-253-20/+40 * Use new GCONF_SCHEMAS.mezz2004-11-242-3/+2 * Update to 1.24arved2004-11-192-3/+3 * Update to version 0.2.1krion2004-11-193-47/+5 * Add missing filekris2004-11-131-0/+1 * Update to version 1.2.17krion2004-11-102-3/+3 * . This is sh, not C. Use '=', not '=='.glewis2004-11-101-0/+22 * . Don't use malloc.h for malloc(3) on FreeBSD, use stdlib.h. Thisglewis2004-11-101-0/+13 * Makefiles like tabs more than spaces.linimon2004-11-101-6/+6 * . I use afterstep, so take maintainership.glewis2004-11-101-1/+1 * Drop maintainership.demon2004-11-091-1/+1 * Bump PORTREVISIONS for all ports that depend on atk or pango to ease in themarcus2004-11-0815-11/+15 * Presenting GNOME 2.8 for FreeBSD (2.8.1 to be exact).marcus2004-11-084-17/+7 * - Put this small distfile on a reliable hostpav2004-11-031-1/+3 * Change email to new FreeBSD.org addressahze2004-10-301-1/+1 * Fix endless loop in icons.c.cy2004-10-282-0/+37 * Update to 0.91.0, the latest version from the window maker team.dougb2004-10-263-68/+88 * This code is no longer in version 0.91.0dougb2004-10-261-12/+0 * - Fix build on 4-stablepav2004-10-267-42/+83 * - Move x11-wm/fbdesk to x11 category, to improve consistency (idesk portpav2004-10-256-85/+0 * Update to 0.90.0, the latest release from the Window Maker team.dougb2004-10-243-34/+24 * De-fuzz for 0.90.0dougb2004-10-241-24/+24 * Revised to include all the languages supported in 0.90.0.dougb2004-10-241-1/+1 * This patch does not seem to be necessary in 0.90.0.dougb2004-10-241-26/+0 * This adjustment for how libtool is used seems no longer necessarydougb2004-10-241-13/+0 * Choosing a default font for the installation seems no longer to bedougb2004-10-241-11/+0 * Improvements in the 0.90.0 code make these patches irrelevant.dougb2004-10-242-30/+0 * In preparation for 0.90.0, delete all patches that involve charsetdougb2004-10-246-88/+0 * Update 2.5.10 --> 2.5.12cy2004-10-212-2/+4 * Udate 2.4.18 --> 2.4.19cy2004-10-214-6/+6 * Add fbcmd, an utility which provides some functions to the 'core' of fluxboxpav2004-10-204-0/+39 * - Update to 1.2.1pav2004-10-195-19/+25 * Update to release 10arved2004-10-132-3/+3 * Update to version 2.00.00krion2004-10-136-531/+2866 * Update to version 1.2.1krion2004-10-124-23/+9 * - Update to 1.2.2pav2004-10-123-3/+6 * Chase Web site to make fetchable.trevor2004-10-051-1/+1 * Increase USE_GCC to 3.4 for those ports which compile with it.kris2004-09-301-1/+1 * Add one more patch file to adjust an Alpha architecture specifickensmith2004-09-211-0/+14 * BROKEN on 5.x: Does not compilekris2004-09-191-0/+4 * Update to 0.9.10, which contains gobs of really neatadamw2004-09-026-50/+38 * Heal alpha release build.clive2004-08-313-3/+3 * Use ${LOCALBASE} instead of hard-coding /usr/local in Makefile. Alsogj2004-08-291-2/+9 * Take over maintainership from demon.gj2004-08-283-1/+40 * Update my email address to `@FreeBSD.org'.danfe2004-08-273-3/+3 * Upgrade to 0.16.7.1.vanilla2004-08-2518-8715/+1287 * Add enlightenment-docs, it's some data files of E doc viewer.vanilla2004-08-255-0/+92 * Fix build with gcc-3.4krion2004-08-241-0/+5 * Fix build with gcc-3.4krion2004-08-231-6/+12 * This now compiles on amd64.arved2004-08-221-4/+0 * - Fix build with gcc 3.4pav2004-08-222-2/+12 * - Convert to OPTIONSpav2004-08-211-13/+4 * Update to 0.5.1.marcus2004-08-192-3/+3 * Add PORTDOCSkrion2004-08-181-0/+10 * Add peksystray, a system tray "notification area" dockapp similar to thepav2004-08-175-0/+73 * Update to verion 1.2.16krion2004-08-178-213/+7 * Use shells/bash instead of shells/bash2 for RUN_DEPENDS.vs2004-08-161-1/+1 * Do not include the package name in the comment.krion2004-08-111-2/+2 * Update MASTER_SITES and WWW: linekrion2004-08-113-7/+10 * Update to version 0.8.6krion2004-08-113-21/+17 * Update to version 1.10krion2004-08-115-72/+24 * Reset maintainer. Much thanks to Stijn for maintaining the ports so far!vs2004-08-105-5/+5 * Clean up this port:mezz2004-08-102-24/+25 * - Update to 1.2.1pav2004-08-103-320/+20 * - Update to version 9hq2004-08-092-3/+3 * fluxbox-devel will merging into fluxbox sometime later when 1.0 is released,mezz2004-08-091-1/+1 * Reset maintainer.vs2004-08-091-1/+1 * - Update to 0.9.7vs2004-08-092-5/+4 * fix build with gcc 3.4.2oliver2004-08-092-1/+11 * Fix build with gcc-3.4.2krion2004-08-084-0/+67 * Fix build with gcc-3.4.2krion2004-08-082-0/+56 * Fix build with gcc-3.4.2krion2004-08-081-0/+15 * Fix build with gcc3.4krion2004-08-071-0/+10 * Hack around a window focus problem in the new metacity. This is a messy hack,marcus2004-08-072-0/+14 * Fix build with gcc-3.4krion2004-08-043-1/+20 * Update to 2.8.2.marcus2004-08-042-5/+5 * Wmconfig port update to V1.2.0edwin2004-08-042-3/+3 * Fix build with gcc-3.4.2krion2004-08-021-0/+15 * upgrade to 20040729ijliao2004-08-024-6/+6 * Back port post gcc 3.4.2 fixup from x11-wm/boxtools.clive2004-08-011-0/+15 * Post gcc 3.4.2 fixup.clive2004-08-011-0/+15 * -Add two new knobs, WITHOUT_SLIT and WITHOUT_TOOLBAR. [1]mezz2004-07-311-21/+39 * Fix build with gcc-3.2krion2004-07-302-6/+47 * - Install internationalization supportpav2004-07-304-3/+24 * - Fix distinfopav2004-07-302-4/+4 * Move a bunch of now unique stuff out of gnomehier and intoadamw2004-07-282-1/+5 * Update to version 2.9.2krion2004-07-262-3/+3 * - Add the X_WINDOW_SYSTEM={xorg,xfree86-4,xfree86-3} variable to bsd.port.mk,anholt2004-07-245-6/+6 * Start QT2 deorbit by removing expired ports.arved2004-07-237-108/+0 * Update to 1.0.7krion2004-07-212-3/+4 * Change maintainer's mail.krion2004-07-212-6/+6 * Fix MASTER_SITESkrion2004-07-211-1/+1 * update to xfce4-4.0.6oliver2004-07-1912-13/+20 * Add orion, a window manager written in Scheme.erwin2004-07-181-0/+1 * Add orion, a window manager written in Scheme.pav2004-07-184-0/+72 * - Drop explicit dependency on XFree86-4-clients. It's not really neededpav2004-07-171-3/+1 * Update to 1.1.9krion2004-07-172-5/+4 * Install documentationvs2004-07-141-0/+10 * Fix .skippyrc-parsing (bump PORTREVISION)vs2004-07-122-0/+23 * Pet portlintkrion2004-07-111-2/+2 * Support WITHOUT_NLSkrion2004-07-112-7/+14 * Apply a big libtool patch to allow porters to use the libtool installed bymarcus2004-07-1012-12/+12 * Change email address for my ports.sem2004-07-081-1/+1 * Use the new GConf handling policy, this will be required for GNOME 2.7/2.8 ormezz2004-07-082-48/+4 * Remove the double post-install. (copy-n-paste error)mezz2004-07-041-1/+0 * Autotools cleanup. Remove autoconf257 (259), automake17 (18), andade2004-07-021-1/+1 * -Add DOCS.mezz2004-07-012-5/+18 * Update to 3.2vs2004-06-302-5/+3 * Update to version 2.9.1krion2004-06-286-104/+88 * - Switch to bz2 distfilepav2004-06-263-16/+8 * - Update to 1.1.8pav2004-06-235-39/+339 * Introduce the new maintainer Bjorn Lindstromkrion2004-06-171-1/+1 * Upgrade to v1.3.0.jkoshy2004-06-173-4/+7 * Update to version 8.mezz2004-06-172-3/+3 * Disable configure warning.krion2004-06-161-0/+1 * Note that development ceased by setting DEPRECATED.vs2004-06-151-0/+2 * Add devilspie 0.4, a window manipulation tool.thierry2004-06-155-0/+66 * - Add WITH_MULTIBYTE knobpav2004-06-054-20/+18 * Sync with new bsd.autotools.mkade2004-06-055-8/+7 * Use IGNORE instead of BROKEN.vs2004-06-021-1/+1 * - Correct the message in WITHOUT_NLS, which it's really enable by default.mezz2004-06-023-6/+84 * - Update to 20040601pav2004-06-028-38/+12 * - This port was moved to x11-themes categorypav2004-06-0237-9434/+0 * - Populate new category x11-themes with some candidates from x11-wmpav2004-06-021-8/+0