Example #1
0
static void
action_forward_callback (GtkAction *action, 
			 gpointer user_data) 
{
	nemo_window_back_or_forward (NEMO_WINDOW (user_data), 
					 FALSE, 0, nemo_event_should_open_in_new_tab ());
}
Example #2
0
static void
activate_back_or_forward_menu_item (GtkMenuItem *menu_item, 
				    NemoWindow *window,
				    gboolean back)
{
	int index;
	
	g_assert (GTK_IS_MENU_ITEM (menu_item));

	index = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (menu_item), "user_data"));

	nemo_window_back_or_forward (window, back, index, should_open_in_new_tab ());
}
Example #3
0
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);
	}
}