diff --git a/ChangeLog b/ChangeLog index 288fc320ba..e6155a606e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-14 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't + get text unnecessarily. (#155384, Morten Welinder) + 2004-10-12 Matthias Clasen * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 288fc320ba..e6155a606e 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2004-10-14 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't + get text unnecessarily. (#155384, Morten Welinder) + 2004-10-12 Matthias Clasen * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 288fc320ba..e6155a606e 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2004-10-14 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't + get text unnecessarily. (#155384, Morten Welinder) + 2004-10-12 Matthias Clasen * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 288fc320ba..e6155a606e 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2004-10-14 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't + get text unnecessarily. (#155384, Morten Welinder) + 2004-10-12 Matthias Clasen * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index 11ccc420be..a159f94053 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -1285,7 +1285,6 @@ shortcuts_remove_rows (GtkFileChooserDefault *impl, int n_rows) { GtkTreePath *path; - gchar *text; path = gtk_tree_path_new_from_indices (start_row, -1); @@ -1296,9 +1295,6 @@ shortcuts_remove_rows (GtkFileChooserDefault *impl, if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (impl->shortcuts_model), &iter, path)) g_assert_not_reached (); - gtk_tree_model_get (GTK_TREE_MODEL (impl->shortcuts_model), &iter, - SHORTCUTS_COL_NAME, &text, -1); - shortcuts_free_row_data (impl, &iter); gtk_list_store_remove (impl->shortcuts_model, &iter); }