~aauzi/midori/fix-1179200-4

« back to all changes in this revision

Viewing changes to midori/midori-bookmarks.c

  • Committer: André Auzi
  • Date: 2013-08-05 09:26:20 UTC
  • Revision ID: aauzi@free.fr-20130805092620-5j1y42kx8vss1nwm
allow bookmark bar update on bookmark additions resulting from imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
}
311
311
 
312
312
void
313
 
midori_bookmarks_import (const gchar* filename,
314
 
                         sqlite3*     db)
315
 
{
316
 
    KatzeArray* bookmarks;
317
 
    GError* error = NULL;
318
 
 
319
 
    bookmarks = katze_array_new (KATZE_TYPE_ARRAY);
320
 
 
321
 
    if (!midori_array_from_file (bookmarks, filename, "xbel", &error))
322
 
    {
323
 
        g_warning (_("The bookmarks couldn't be saved. %s"), error->message);
324
 
        g_error_free (error);
325
 
        return;
326
 
    }
327
 
    midori_bookmarks_import_array_db (db, bookmarks, 0);
328
 
}
329
 
 
330
 
void
331
313
midori_bookmarks_on_quit (KatzeArray* array)
332
314
{
333
315
    g_return_if_fail (KATZE_IS_ARRAY (array));