~midori/midori/trunk

« back to all changes in this revision

Viewing changes to midori/midori-bookmarks-db.c

  • Committer: André Stösel
  • Date: 2013-09-28 14:13:22 UTC
  • mfrom: (6419 midori)
  • mto: This revision was merged to the branch mainline in revision 6427.
  • Revision ID: andre@stoesel.de-20130928141322-8g2nadq5gnm30gkh
merge lp:midori

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
{
133
133
    bookmarks->db = NULL;
134
134
 
135
 
    katze_item_set_meta_integer (KATZE_ITEM (bookmarks), "id", 0);
 
135
    katze_item_set_meta_integer (KATZE_ITEM (bookmarks), "id", -1);
136
136
    katze_item_set_name (KATZE_ITEM (bookmarks), _("Bookmarks"));
137
137
    /* g_object_ref (bookmarks); */
138
138
}
203
203
 
204
204
    db_parent = midori_bookmarks_db_get_item_parent (bookmarks, item);
205
205
 
206
 
    g_return_if_fail (db_parent);
207
 
 
208
206
    if (parent == db_parent)
209
207
    {
210
208
        if (IS_MIDORI_BOOKMARKS_DB (parent))
211
209
            KATZE_ARRAY_CLASS (midori_bookmarks_db_parent_class)->update (parent);
212
 
        else
 
210
        else if (KATZE_IS_ARRAY (parent))
213
211
            katze_array_update (parent);
214
212
        return;
215
213
    }
216
214
 
217
215
    if (IS_MIDORI_BOOKMARKS_DB (parent))
218
216
        KATZE_ARRAY_CLASS (midori_bookmarks_db_parent_class)->add_item (parent, item);
219
 
    else
 
217
    else if (KATZE_IS_ARRAY (parent))
220
218
        katze_array_add_item (parent, item);
 
219
 
 
220
    g_assert (parent == katze_item_get_parent (KATZE_ITEM (item)));
221
221
}
222
222
 
223
223
/**