diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-09-29 05:29:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-09-29 05:29:31 +0000 |
commit | fa72b2c93c07b5df28c3887d2d2e3d70fe71e0f0 (patch) | |
tree | 90eb3ff2efbf72b75b6ecd6505531422b34c5b8a | |
parent | 9ec74ba55bca095caa2eef8a75b9f26b7f063286 (diff) | |
download | gtk+-fa72b2c93c07b5df28c3887d2d2e3d70fe71e0f0.tar.gz |
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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 6 | ||||
-rw-r--r-- | gtk/gtkiconview.c | 8 |
5 files changed, 28 insertions, 4 deletions
@@ -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 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 914f6a3baf..4a1b8d7bd2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 914f6a3baf..4a1b8d7bd2 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -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 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 914f6a3baf..4a1b8d7bd2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -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 diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 69380d44b5..514234b47f 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -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; |