Fix compilation with glib HEAD
- From: Xan Lopez <xan masilla org>
- To: nautilus-list gnome org
- Subject: Fix compilation with glib HEAD
- Date: Mon, 22 Sep 2003 12:15:00 +0200
Hi, attached is a patch to change every instance of
g_value_set_FOO_take_ownership, which is deprecated, for
g_value_take_FOO.
--
"The missionaries go forth to Christianize the savages -- as if
the savages weren't dangerous enough already" [Edward Abbey]
xan, xan masilla org
Index: src/nautilus-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window.c,v
retrieving revision 1.414
diff -u -3 -p -u -r1.414 nautilus-window.c
--- src/nautilus-window.c 22 Jul 2003 23:35:18 -0000 1.414
+++ src/nautilus-window.c 22 Sep 2003 10:10:54 -0000
@@ -884,7 +884,7 @@ nautilus_window_get_property (GObject *o
{
switch (arg_id) {
case ARG_APP_ID:
- g_value_set_string_take_ownership (
+ g_value_take_string (
value,
bonobo_window_get_name (BONOBO_WINDOW (object)));
break;
Index: src/file-manager/fm-list-model.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-list-model.c,v
retrieving revision 1.21
diff -u -3 -p -u -r1.21 fm-list-model.c
--- src/file-manager/fm-list-model.c 27 Jun 2003 16:21:36 -0000 1.21
+++ src/file-manager/fm-list-model.c 22 Sep 2003 10:10:57 -0000
@@ -207,7 +207,7 @@ fm_list_model_get_value (GtkTreeModel *t
g_value_init (value, G_TYPE_STRING);
str = nautilus_file_get_string_attribute_with_default (file, "name");
- g_value_set_string_take_ownership (value, str);
+ g_value_take_string (value, str);
break;
case FM_LIST_MODEL_SMALLEST_ICON_COLUMN:
case FM_LIST_MODEL_SMALLER_ICON_COLUMN:
@@ -237,19 +237,19 @@ fm_list_model_get_value (GtkTreeModel *t
g_value_init (value, G_TYPE_STRING);
str = nautilus_file_get_string_attribute_with_default (file, "size");
- g_value_set_string_take_ownership (value, str);
+ g_value_take_string (value, str);
break;
case FM_LIST_MODEL_TYPE_COLUMN:
g_value_init (value, G_TYPE_STRING);
str = nautilus_file_get_string_attribute_with_default (file, "type");
- g_value_set_string_take_ownership (value, str);
+ g_value_take_string (value, str);
break;
case FM_LIST_MODEL_DATE_MODIFIED_COLUMN:
g_value_init (value, G_TYPE_STRING);
str = nautilus_file_get_string_attribute_with_default (file, "date_modified");
- g_value_set_string_take_ownership (value, str);
+ g_value_take_string (value, str);
break;
case FM_LIST_MODEL_FILE_NAME_IS_EDITABLE_COLUMN:
g_value_init (value, G_TYPE_BOOLEAN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]