Patch by Andre Klapper to remove deprecated glib symbols.

This commit is contained in:
Christian Hammond 2009-07-24 09:13:56 +00:00
parent e95a435e80
commit 40781ff602
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Sun Jun 14 14:50:00 UTC 2009 Andre Klapper <a9016009@gmx.de>
* libnotify/notification.c:
- Remove deprecated GLib symbols.
========================= 0.4.5 =========================
Thu Nov 20 03:16:53 PST 2008 Christian Hammond <chipx86@chipx86.com>

View File

@ -951,7 +951,7 @@ _gvalue_array_append_byte_array(GValueArray *array, guchar *bytes, gsize len)
byte_array = g_array_append_vals(byte_array, bytes, len);
g_value_init(&value, DBUS_TYPE_G_UCHAR_ARRAY);
g_value_set_boxed_take_ownership(&value, byte_array);
g_value_take_boxed(&value, byte_array);
g_value_array_append(array, &value);
g_value_unset(&value);
}
@ -1009,7 +1009,7 @@ notify_notification_set_icon_from_pixbuf(NotifyNotification *notification,
value = g_new0(GValue, 1);
g_value_init(value, G_TYPE_VALUE_ARRAY);
g_value_set_boxed_take_ownership(value, image_struct);
g_value_take_boxed(value, image_struct);
g_hash_table_insert(notification->priv->hints,
g_strdup("icon_data"), value);
@ -1149,7 +1149,7 @@ notify_notification_set_hint_byte_array(NotifyNotification *notification,
hint_value = g_new0(GValue, 1);
g_value_init(hint_value, dbus_g_type_get_collection("GArray",
G_TYPE_UCHAR));
g_value_set_boxed_take_ownership(hint_value, byte_array);
g_value_take_boxed(hint_value, byte_array);
g_hash_table_insert(notification->priv->hints,
g_strdup(key), hint_value);