diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/nautilus-navigation-window.c | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2007-07-18 Martin Wehner <martin.wehner@gmail.com> + + * src/nautilus-navigation-window.c: + (view_as_menu_switch_views_callback): + Handle the fact that the gtk+ 2.11.x combobox emits the + changed signal on removing the active entry without crash. + 2007-07-10 Martin Wehner <martin.wehner@gmail.com> * configure.in: diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index 8890f0dca..42e7f81a4 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -854,8 +854,10 @@ view_as_menu_switch_views_callback (GtkComboBox *combo_box, NautilusWindow *wind g_assert (NAUTILUS_IS_WINDOW (window)); active = gtk_combo_box_get_active (combo_box); - - if (active < GPOINTER_TO_INT (g_object_get_data (G_OBJECT (combo_box), "num viewers")) ) { + + if (active < 0) { + return; + } else if (active < GPOINTER_TO_INT (g_object_get_data (G_OBJECT (combo_box), "num viewers"))) { activate_nth_short_list_item (window, active); } else { activate_extra_viewer (window); |