aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog9
-rw-r--r--widgets/misc/e-filter-bar.c4
-rw-r--r--widgets/misc/e-search-bar.c2
3 files changed, 12 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 6c76fdd27d..e4baa14b3c 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,5 +1,14 @@
2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
+ * e-search-bar.c (impl_get_property): Same.
+
+ * e-filter-bar.c (get_property): Use
+ g_value_set_string_take_ownership() instead of
+ g_value_take_string() since we need snaps to work with glib-2.0
+ earlier than 2.3.x.
+
+2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
+
* e-filter-bar.c: Added a new property "state" which is READ-WRITE
so that we can save/restore state in the mailer code if we want
to. Sort of a work-in-progress toward fixing bug #53195.
diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c
index befd9d5d38..5cd1b14e20 100644
--- a/widgets/misc/e-filter-bar.c
+++ b/widgets/misc/e-filter-bar.c
@@ -550,7 +550,7 @@ get_property (GObject *object, guint property_id, GValue *value, GParamSpec *psp
GString *out = g_string_new ("");
filter_rule_build_code (efb->current_query, out);
- g_value_take_string (value, out->str);
+ g_value_set_string_take_ownership (value, out->str);
g_string_free (out, FALSE);
} else {
g_value_set_string (value, NULL);
@@ -595,7 +595,7 @@ get_property (GObject *object, guint property_id, GValue *value, GParamSpec *psp
text[n] = '\0';
xmlFree (xmlbuf);
- g_value_take_string (value, text);
+ g_value_set_string_take_ownership (value, text);
break; }
default:
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index bc67298ce1..d99a4de742 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -746,7 +746,7 @@ impl_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *ps
break;
case PROP_TEXT:
- g_value_take_string (value, e_search_bar_get_text (esb));
+ g_value_set_string_take_ownership (value, e_search_bar_get_text (esb));
break;
default: