aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-01-29 09:57:56 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-01-29 09:57:56 +0800
commit085ce3b2f3662d4ff3a2be8aea629953571b2a8b (patch)
tree0ea7e5051f453187a0bd441bb09b65f7744bf2d5 /widgets
parent267c0f583519f74c50670072ea931c897b1fcb48 (diff)
downloadgsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar.gz
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar.bz2
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar.lz
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar.xz
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.tar.zst
gsoc2013-evolution-085ce3b2f3662d4ff3a2be8aea629953571b2a8b.zip
Same.
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. svn path=/trunk/; revision=24507
Diffstat (limited to 'widgets')
-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: