diff options
-rw-r--r-- | chrome/browser/gtk/bookmark_manager_gtk.cc | 8 | ||||
-rw-r--r-- | chrome/browser/gtk/options/url_picker_dialog_gtk.cc | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/gtk/bookmark_manager_gtk.cc b/chrome/browser/gtk/bookmark_manager_gtk.cc index d35b586..66ddf38 100644 --- a/chrome/browser/gtk/bookmark_manager_gtk.cc +++ b/chrome/browser/gtk/bookmark_manager_gtk.cc @@ -618,12 +618,12 @@ void BookmarkManagerGtk::SetRightSideColumnValues(int row, GtkTreeIter* iter) { void BookmarkManagerGtk::AddNodeToRightStore(int row) { GtkTreeIter iter; if (row == 0) { - gtk_tree_model_get_iter_first(GTK_TREE_MODEL(right_store_), &iter); gtk_list_store_prepend(right_store_, &iter); } else { - gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(right_store_), &iter, NULL, - row - 1); - gtk_list_store_append(right_store_, &iter); + GtkTreeIter sibling; + gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(right_store_), &sibling, + NULL, row - 1); + gtk_list_store_insert_after(right_store_, &iter, &sibling); } SetRightSideColumnValues(row, &iter); diff --git a/chrome/browser/gtk/options/url_picker_dialog_gtk.cc b/chrome/browser/gtk/options/url_picker_dialog_gtk.cc index 71091c0..7042853 100644 --- a/chrome/browser/gtk/options/url_picker_dialog_gtk.cc +++ b/chrome/browser/gtk/options/url_picker_dialog_gtk.cc @@ -236,12 +236,12 @@ void UrlPickerDialogGtk::SetColumnValues(int row, GtkTreeIter* iter) { void UrlPickerDialogGtk::AddNodeToList(int row) { GtkTreeIter iter; if (row == 0) { - gtk_tree_model_get_iter_first(GTK_TREE_MODEL(history_list_store_), &iter); gtk_list_store_prepend(history_list_store_, &iter); } else { - gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(history_list_store_), &iter, + GtkTreeIter sibling; + gtk_tree_model_iter_nth_child(GTK_TREE_MODEL(history_list_store_), &sibling, NULL, row - 1); - gtk_list_store_append(history_list_store_, &iter); + gtk_list_store_insert_after(history_list_store_, &iter, &sibling); } SetColumnValues(row, &iter); |