Handle an empty icon view gracefully. (#152486)

2004-09-29  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
	(gtk_icon_view_move_cursor_start_end)
	(gtk_icon_view_move_cursor_page_up_down)
	(gtk_icon_view_move_cursor_up_down): Handle an empty icon
	view gracefully.  (#152486)
This commit is contained in:
Matthias Clasen 2004-09-29 05:29:31 +00:00 committed by Matthias Clasen
parent 9ec74ba55b
commit fa72b2c93c
5 changed files with 28 additions and 4 deletions

View File

@ -1,5 +1,11 @@
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
(gtk_icon_view_move_cursor_start_end)
(gtk_icon_view_move_cursor_page_up_down)
(gtk_icon_view_move_cursor_up_down): Handle an empty icon
view gracefully. (#152486)
Allow keynav to selectable labels (#138085, David Hawthorne):
* gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when

View File

@ -1,5 +1,11 @@
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
(gtk_icon_view_move_cursor_start_end)
(gtk_icon_view_move_cursor_page_up_down)
(gtk_icon_view_move_cursor_up_down): Handle an empty icon
view gracefully. (#152486)
Allow keynav to selectable labels (#138085, David Hawthorne):
* gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when

View File

@ -1,5 +1,11 @@
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
(gtk_icon_view_move_cursor_start_end)
(gtk_icon_view_move_cursor_page_up_down)
(gtk_icon_view_move_cursor_up_down): Handle an empty icon
view gracefully. (#152486)
Allow keynav to selectable labels (#138085, David Hawthorne):
* gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when

View File

@ -1,5 +1,11 @@
2004-09-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_move_cursor_left_right)
(gtk_icon_view_move_cursor_start_end)
(gtk_icon_view_move_cursor_page_up_down)
(gtk_icon_view_move_cursor_up_down): Handle an empty icon
view gracefully. (#152486)
Allow keynav to selectable labels (#138085, David Hawthorne):
* gtk/gtkdialog.c (gtk_dialog_map): Skip selectable labels when

View File

@ -2584,7 +2584,7 @@ gtk_icon_view_move_cursor_up_down (GtkIconView *icon_view,
else
list = g_list_last (icon_view->priv->items);
item = list->data;
item = list ? list->data : NULL;
}
else
item = find_item (icon_view,
@ -2636,7 +2636,7 @@ gtk_icon_view_move_cursor_page_up_down (GtkIconView *icon_view,
else
list = g_list_last (icon_view->priv->items);
item = list->data;
item = list ? list->data : NULL;
}
else
item = find_item_page_up_down (icon_view,
@ -2688,7 +2688,7 @@ gtk_icon_view_move_cursor_left_right (GtkIconView *icon_view,
else
list = g_list_last (icon_view->priv->items);
item = list->data;
item = list ? list->data : NULL;
}
else
item = find_item (icon_view,
@ -2737,7 +2737,7 @@ gtk_icon_view_move_cursor_start_end (GtkIconView *icon_view,
else
list = g_list_last (icon_view->priv->items);
item = list->data;
item = list ? list->data : NULL;
if (!item)
return;