diff options
-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 } |