static void path_bar_location_changed_callback (GtkWidget *widget, GFile *location, CajaNavigationWindowPane *pane) { CajaNavigationWindowSlot *slot; CajaWindowPane *win_pane; int i; g_assert (CAJA_IS_NAVIGATION_WINDOW_PANE (pane)); win_pane = CAJA_WINDOW_PANE(pane); slot = CAJA_NAVIGATION_WINDOW_SLOT (win_pane->active_slot); /* check whether we already visited the target location */ i = bookmark_list_get_uri_index (slot->back_list, location); if (i >= 0) { caja_navigation_window_back_or_forward (CAJA_NAVIGATION_WINDOW (win_pane->window), TRUE, i, FALSE); } else { caja_window_slot_go_to (win_pane->active_slot, location, FALSE); } }
static void path_bar_location_changed_callback (GtkWidget *widget, GFile *location, NemoWindowPane *pane) { NemoWindowSlot *slot; int i; slot = pane->active_slot; nemo_window_set_active_pane (pane->window, pane); /* check whether we already visited the target location */ i = bookmark_list_get_uri_index (slot->back_list, location); if (i >= 0) { nemo_window_back_or_forward (pane->window, TRUE, i, FALSE); } else { nemo_window_slot_go_to (pane->active_slot, location, FALSE); } }