diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2007-06-04 09:52:03 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2007-06-04 09:52:03 +0800 |
commit | 3b81468ae481142925bad59e9af811e5273bc4d0 (patch) | |
tree | e5e9802d612dd9a8eae19ef47cce76b7f96d8b6c | |
parent | faad8a01e1a4fc4d425ed2ff850158339fb6bd37 (diff) | |
download | gsoc2013-evolution-3b81468ae481142925bad59e9af811e5273bc4d0.tar.gz gsoc2013-evolution-3b81468ae481142925bad59e9af811e5273bc4d0.tar.zst gsoc2013-evolution-3b81468ae481142925bad59e9af811e5273bc4d0.zip |
Added construct function.
svn path=/trunk/; revision=33649
-rw-r--r-- | widgets/misc/ChangeLog | 7 | ||||
-rw-r--r-- | widgets/misc/e-filter-bar.c | 19 | ||||
-rw-r--r-- | widgets/misc/e-filter-bar.h | 6 |
3 files changed, 29 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 0eac87d410..ba8beae7d7 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2007-06-04 Chenthill Palanisamy <pchenthill@novell.com> + + * e-filter-bar.[c]: (e_filter_bar_new), (e_filter_bar_new_construct): + Added a construct function. + + Committing on behalf of Keshav Upadhayaya <ukeshav@novell.com> + 2007-06-03 Srinivasa Ragavan <sragavan@novell.com> ** Fix for bug #386503 from Matthew Barnes diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c index 164e58655d..e8e0a1d6e3 100644 --- a/widgets/misc/e-filter-bar.c +++ b/widgets/misc/e-filter-bar.c @@ -945,10 +945,24 @@ e_filter_bar_new (RuleContext *context, void *data) { EFilterBar *bar; - ESearchBarItem item = { NULL, -1, 0 }; bar = g_object_new (e_filter_bar_get_type (), NULL); + e_filter_bar_new_construct (context, systemrules, userrules, config, data, bar); + + return bar; +} + + +void +e_filter_bar_new_construct (RuleContext *context, + const char *systemrules, + const char *userrules, + EFilterBarConfigRule config, + void *data ,EFilterBar *bar ) +{ + ESearchBarItem item = { NULL, -1, 0 }; + bar->context = context; g_object_ref (context); @@ -965,8 +979,7 @@ e_filter_bar_new (RuleContext *context, g_signal_connect (context, "changed", G_CALLBACK (context_changed), bar); g_signal_connect (context, "rule_removed", G_CALLBACK (context_rule_removed), bar); - - return bar; + } GtkType diff --git a/widgets/misc/e-filter-bar.h b/widgets/misc/e-filter-bar.h index 427c10695d..291d308c3d 100644 --- a/widgets/misc/e-filter-bar.h +++ b/widgets/misc/e-filter-bar.h @@ -122,6 +122,12 @@ EFilterBar *e_filter_bar_new (RuleContext *context, const char *userrules, EFilterBarConfigRule config, void *data); +void +e_filter_bar_new_construct (RuleContext *context, + const char *systemrules, + const char *userrules, + EFilterBarConfigRule config, + void *data ,EFilterBar *bar ); #ifdef __cplusplus } |