empathy r2759 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2759 - trunk/libempathy
- Date: Fri, 3 Apr 2009 12:50:08 +0000 (UTC)
Author: xclaesse
Date: Fri Apr 3 12:50:08 2009
New Revision: 2759
URL: http://svn.gnome.org/viewvc/empathy?rev=2759&view=rev
Log:
Simplify how channel classes value is parsed. Fixes bug #577825
From: Xavier Claessens <xclaesse gmail com>
Modified:
trunk/libempathy/empathy-tp-contact-factory.c
Modified: trunk/libempathy/empathy-tp-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-tp-contact-factory.c (original)
+++ trunk/libempathy/empathy-tp-contact-factory.c Fri Apr 3 12:50:08 2009
@@ -840,17 +840,13 @@
classes = g_value_get_boxed (value);
for (i = 0; i < classes->len; i++) {
- GValue class = {0,};
- GValue *chan_type, *handle_type;
+ GValueArray *class_struct;
GHashTable *fixed_prop;
+ GValue *chan_type, *handle_type;
GList *l;
- g_value_init (&class, TP_STRUCT_TYPE_REQUESTABLE_CHANNEL_CLASS);
- g_value_set_static_boxed (&class, g_ptr_array_index (classes, i));
-
- dbus_g_type_struct_get (&class,
- 0, &fixed_prop,
- G_MAXUINT);
+ class_struct = g_ptr_array_index (classes, i);
+ fixed_prop = g_value_get_boxed (g_value_array_get_nth (class_struct, 0));
chan_type = g_hash_table_lookup (fixed_prop,
TP_IFACE_CHANNEL ".ChannelType");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]