Don't get text unnecessarily. (#155384, Morten Welinder)

2004-10-14  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
	get text unnecessarily.  (#155384, Morten Welinder)
This commit is contained in:
Matthias Clasen 2004-10-14 14:14:12 +00:00 committed by Matthias Clasen
parent 416cdab35a
commit 817f3b94a8
5 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-10-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
get text unnecessarily. (#155384, Morten Welinder)
2004-10-12 Matthias Clasen <mclasen@redhat.com> 2004-10-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge

View File

@ -1,3 +1,8 @@
2004-10-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
get text unnecessarily. (#155384, Morten Welinder)
2004-10-12 Matthias Clasen <mclasen@redhat.com> 2004-10-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge

View File

@ -1,3 +1,8 @@
2004-10-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
get text unnecessarily. (#155384, Morten Welinder)
2004-10-12 Matthias Clasen <mclasen@redhat.com> 2004-10-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge

View File

@ -1,3 +1,8 @@
2004-10-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (shortcuts_remove_rows): Don't
get text unnecessarily. (#155384, Morten Welinder)
2004-10-12 Matthias Clasen <mclasen@redhat.com> 2004-10-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge * gtk/gtkcontainer.c (_gtk_container_queue_resize): Acknowledge

View File

@ -1285,7 +1285,6 @@ shortcuts_remove_rows (GtkFileChooserDefault *impl,
int n_rows) int n_rows)
{ {
GtkTreePath *path; GtkTreePath *path;
gchar *text;
path = gtk_tree_path_new_from_indices (start_row, -1); 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)) if (!gtk_tree_model_get_iter (GTK_TREE_MODEL (impl->shortcuts_model), &iter, path))
g_assert_not_reached (); 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); shortcuts_free_row_data (impl, &iter);
gtk_list_store_remove (impl->shortcuts_model, &iter); gtk_list_store_remove (impl->shortcuts_model, &iter);
} }