~midori/midori/trunk

« back to all changes in this revision

Viewing changes to katze/katze-item.c

  • Committer: Tarmac
  • Author(s): André Auzi
  • Date: 2013-09-18 16:20:51 UTC
  • mfrom: (6319.3.4 fix-1179200-5)
  • Revision ID: tarmac-20130918162051-n73z21hwk1dju69u
Introduces KatzeArray::update-item to handle metadata changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
{
315
315
    g_return_if_fail (KATZE_IS_ITEM (item));
316
316
 
 
317
    if (!g_strcmp0 (item->name, name))
 
318
        return;
 
319
 
317
320
    katze_assign (item->name, g_strdup (name));
318
321
    if (item->parent)
319
322
        katze_array_update ((KatzeArray*)item->parent);
418
421
{
419
422
    g_return_if_fail (KATZE_IS_ITEM (item));
420
423
 
 
424
    if (!g_strcmp0 (katze_item_get_meta_string (item, "icon"), icon))
 
425
        return;
 
426
 
421
427
    katze_item_set_meta_string (item, "icon", icon);
422
428
    if (item->parent)
423
429
        katze_array_update ((KatzeArray*)item->parent);