Avoid a compiler warning. (#395045, Chris Wilson)

2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
        a compiler warning.  (#395045, Chris Wilson)



svn path=/trunk/; revision=17141
This commit is contained in:
Matthias Clasen 2007-01-14 04:30:06 +00:00 committed by Matthias Clasen
parent 17c60500bb
commit 5d82752ae5
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-01-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
a compiler warning. (#395045, Chris Wilson)
2007-01-13 Hans Breuer <hans@breuer.org>
* gtk/gtkprintoperation-win32.c : take the custom tab label from

View File

@ -454,9 +454,6 @@ gtk_radio_button_focus (GtkWidget *widget,
switch (direction)
{
case GTK_DIR_TAB_FORWARD:
case GTK_DIR_TAB_BACKWARD:
return FALSE;
case GTK_DIR_LEFT:
case GTK_DIR_RIGHT:
focus_list = g_slist_copy (radio_button->group);
@ -467,6 +464,11 @@ gtk_radio_button_focus (GtkWidget *widget,
focus_list = g_slist_copy (radio_button->group);
focus_list = g_slist_sort_with_data (focus_list, up_down_compare, toplevel);
break;
case GTK_DIR_TAB_FORWARD:
case GTK_DIR_TAB_BACKWARD:
/* fall through */
default:
return FALSE;
}
if (direction == GTK_DIR_LEFT || direction == GTK_DIR_UP)