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 ()); }
static void action_up_callback (GtkAction *action, gpointer user_data) { NemoWindow *window = user_data; NemoWindowSlot *slot; slot = nemo_window_get_active_slot (window); nemo_window_slot_go_up (slot, FALSE, nemo_event_should_open_in_new_tab ()); }
static void action_home_callback (GtkAction *action, gpointer user_data) { NemoWindow *window; NemoWindowSlot *slot; window = NEMO_WINDOW (user_data); slot = nemo_window_get_active_slot (window); nemo_window_slot_go_home (slot, nemo_event_should_open_in_new_tab ()); }
static void action_go_to_trash_callback (GtkAction *action, gpointer user_data) { NemoWindow *window; NemoWindowSlot *slot; GFile *trash; window = NEMO_WINDOW (user_data); slot = nemo_window_get_active_slot (window); trash = g_file_new_for_uri ("trash:///"); nemo_window_slot_go_to (slot, trash, nemo_event_should_open_in_new_tab ()); g_object_unref (trash); }
static void action_go_to_network_callback (GtkAction *action, gpointer user_data) { NemoWindow *window; NemoWindowSlot *slot; GFile *network; window = NEMO_WINDOW (user_data); slot = nemo_window_get_active_slot (window); network = g_file_new_for_uri (NETWORK_URI); nemo_window_slot_go_to (slot, network, nemo_event_should_open_in_new_tab ()); g_object_unref (network); }
static void action_go_to_computer_callback (GtkAction *action, gpointer user_data) { NemoWindow *window; NemoWindowSlot *slot; GFile *computer; window = NEMO_WINDOW (user_data); slot = nemo_window_get_active_slot (window); computer = g_file_new_for_uri (COMPUTER_URI); nemo_window_slot_go_to (slot, computer, nemo_event_should_open_in_new_tab ()); g_object_unref (computer); }
static void action_go_to_templates_callback (GtkAction *action, gpointer user_data) { NemoWindow *window; NemoWindowSlot *slot; char *path; GFile *location; window = NEMO_WINDOW (user_data); slot = nemo_window_get_active_slot (window); path = nemo_get_templates_directory (); location = g_file_new_for_path (path); g_free (path); nemo_window_slot_go_to (slot, location, nemo_event_should_open_in_new_tab ()); g_object_unref (location); }
static void activate_bookmark_in_menu_item (GtkAction *action, gpointer user_data) { NemoWindowSlot *slot; BookmarkHolder *holder; GFile *location; holder = (BookmarkHolder *)user_data; if (!nemo_bookmark_get_exists (holder->bookmark)) { holder->failed_callback (holder->window, holder->bookmark); } else { location = nemo_bookmark_get_location (holder->bookmark); slot = nemo_window_get_active_slot (holder->window); nemo_window_slot_go_to (slot, location, nemo_event_should_open_in_new_tab ()); g_object_unref (location); } }