Append new bookmarks to the end of the store, with G_MAXINT
This commit is contained in:
parent
94fbf158f6
commit
7dffde361c
1 changed files with 1 additions and 2 deletions
|
@ -922,9 +922,8 @@ midori_browser_edit_bookmark_dialog_new (MidoriBrowser* browser,
|
||||||
midori_bookmarks_insert_item_db (db, bookmark, "");
|
midori_bookmarks_insert_item_db (db, bookmark, "");
|
||||||
treeview = g_object_get_data (G_OBJECT (browser->bookmarks), "treeview");
|
treeview = g_object_get_data (G_OBJECT (browser->bookmarks), "treeview");
|
||||||
model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
|
model = gtk_tree_view_get_model (GTK_TREE_VIEW (treeview));
|
||||||
/* FIXME: We need to add item in the end of the list */
|
|
||||||
gtk_tree_store_insert_with_values (GTK_TREE_STORE (model),
|
gtk_tree_store_insert_with_values (GTK_TREE_STORE (model),
|
||||||
NULL, NULL, 999, 0, bookmark, -1);
|
NULL, NULL, G_MAXINT, 0, bookmark, -1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
midori_bookmarks_insert_item_db (db, bookmark, selected);
|
midori_bookmarks_insert_item_db (db, bookmark, selected);
|
||||||
|
|
Loading…
Reference in a new issue