Assign KatzeItem property strings properly

This commit is contained in:
Christian Dywan 2008-10-07 03:24:27 +02:00
parent d445745787
commit 63fc20b6f4

View file

@ -168,22 +168,22 @@ katze_item_set_property (GObject* object,
switch (prop_id) switch (prop_id)
{ {
case PROP_NAME: case PROP_NAME:
item->name = g_value_dup_string (value); katze_assign (item->name, g_value_dup_string (value));
break; break;
case PROP_TEXT: case PROP_TEXT:
item->text = g_value_dup_string (value); katze_assign (item->text, g_value_dup_string (value));
break; break;
case PROP_URI: case PROP_URI:
item->uri = g_value_dup_string (value); katze_assign (item->uri, g_value_dup_string (value));
break; break;
case PROP_ICON: case PROP_ICON:
item->icon = g_value_dup_string (value); katze_assign (item->icon, g_value_dup_string (value));
break; break;
case PROP_TOKEN: case PROP_TOKEN:
item->token = g_value_dup_string (value); katze_assign (item->token, g_value_dup_string (value));
break; break;
case PROP_ADDED: case PROP_ADDED:
item->added = g_value_dup_string (value); katze_assign (item->added, g_value_dup_string (value));
break; break;
case PROP_VISITS: case PROP_VISITS:
item->visits = g_value_get_int (value); item->visits = g_value_get_int (value);