diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-06-30 05:00:24 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-06-30 05:00:24 +0800 |
commit | c386fa4ea63ad3ff98ded1deaadf74b79ae8572e (patch) | |
tree | 079b96e7b5f4e284eb20b5106596dff0d034d86a /filter/vfolder-rule.c | |
parent | 86d9e4453e88e3fa5f72c2c06da81aef272ed7aa (diff) | |
download | gsoc2013-evolution-c386fa4ea63ad3ff98ded1deaadf74b79ae8572e.tar.gz gsoc2013-evolution-c386fa4ea63ad3ff98ded1deaadf74b79ae8572e.tar.zst gsoc2013-evolution-c386fa4ea63ad3ff98ded1deaadf74b79ae8572e.zip |
Set the filter-rule dialog to be user-resizable.
2001-06-29 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (rule_editor_construct): Set the filter-rule
dialog to be user-resizable.
svn path=/trunk/; revision=10607
Diffstat (limited to 'filter/vfolder-rule.c')
-rw-r--r-- | filter/vfolder-rule.c | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c index c9abcf5f4e..bf1bdc479e 100644 --- a/filter/vfolder-rule.c +++ b/filter/vfolder-rule.c @@ -115,20 +115,22 @@ vfolder_rule_finalise(GtkObject *obj) * Return value: A new #VfolderRule object. **/ VfolderRule * -vfolder_rule_new(void) +vfolder_rule_new (void) { VfolderRule *o = (VfolderRule *)gtk_type_new(vfolder_rule_get_type ()); return o; } -void vfolder_rule_add_source (VfolderRule *vr, const char *uri) +void +vfolder_rule_add_source (VfolderRule *vr, const char *uri) { g_assert(IS_VFOLDER_RULE(vr)); vr->sources = g_list_append(vr->sources, g_strdup(uri)); } -const char *vfolder_rule_find_source (VfolderRule *vr, const char *uri) +const char * +vfolder_rule_find_source (VfolderRule *vr, const char *uri) { GList *l; @@ -145,7 +147,8 @@ const char *vfolder_rule_find_source (VfolderRule *vr, const char *uri) return NULL; } -void vfolder_rule_remove_source (VfolderRule *vr, const char *uri) +void +vfolder_rule_remove_source (VfolderRule *vr, const char *uri) { char *found; @@ -158,7 +161,8 @@ void vfolder_rule_remove_source (VfolderRule *vr, const char *uri) } } -const char *vfolder_rule_next_source (VfolderRule *vr, const char *last) +const char * +vfolder_rule_next_source (VfolderRule *vr, const char *last) { GList *node; @@ -176,7 +180,8 @@ const char *vfolder_rule_next_source (VfolderRule *vr, const char *last) return NULL; } -static xmlNodePtr xml_encode(FilterRule *fr) +static xmlNodePtr +xml_encode (FilterRule *fr) { xmlNodePtr node, set, work; GList *l; @@ -196,7 +201,8 @@ static xmlNodePtr xml_encode(FilterRule *fr) return node; } -static int xml_decode(FilterRule *fr, xmlNodePtr node, struct _RuleContext *f) +static int +xml_decode (FilterRule *fr, xmlNodePtr node, struct _RuleContext *f) { xmlNodePtr set, work; int result; @@ -272,7 +278,8 @@ select_source_with(GtkWidget *w, struct _source_data *data) filter_rule_set_source((FilterRule *)data->vr, source); } -static void source_add(GtkWidget *widget, struct _source_data *data) +static void +source_add(GtkWidget *widget, struct _source_data *data) { const char *allowed_types[] = { "mail", NULL }; char *def, *uri; @@ -304,7 +311,8 @@ static void source_add(GtkWidget *widget, struct _source_data *data) set_sensitive(data); } -static void source_remove(GtkWidget *widget, struct _source_data *data) +static void +source_remove(GtkWidget *widget, struct _source_data *data) { const char *source; int index = 0; @@ -335,7 +343,8 @@ const char *source_names[] = { "local_remote_active" }; -static GtkWidget *get_widget(FilterRule *fr, struct _RuleContext *f) +static GtkWidget * +get_widget(FilterRule *fr, struct _RuleContext *f) { GtkWidget *widget, *frame, *w; GladeXML *gui; |