diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-22 16:34:41 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-23 10:18:56 -0400 |
commit | 6a6a6ca581e2aaf01b0c63302ad0ff3e0babc3ea (patch) | |
tree | 95820d7c20b3850c87e87aee40b524203f4a3805 /src/nautilus-window-slot.h | |
parent | d311ddd4a68f349c797a59e19868e4bb939d69a1 (diff) | |
download | nautilus-6a6a6ca581e2aaf01b0c63302ad0ff3e0babc3ea.tar.gz |
all: remove nautilus_window_slot_go_to()
We don't want to have similar but slightly different code paths;
consolidate use of NautilusWindowOpenFlags everywhere and simplify code.
Diffstat (limited to 'src/nautilus-window-slot.h')
-rw-r--r-- | src/nautilus-window-slot.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h index a0ca1695f..cb37c6649 100644 --- a/src/nautilus-window-slot.h +++ b/src/nautilus-window-slot.h @@ -131,6 +131,10 @@ char * nautilus_window_slot_get_location_uri (NautilusWindowSlot *slot); void nautilus_window_slot_reload (NautilusWindowSlot *slot); +/* convenience wrapper without selection and callback/user_data */ +#define nautilus_window_slot_open_location(slot, location, flags)\ + nautilus_window_slot_open_location_full(slot, location, flags, NULL, NULL, NULL) + void nautilus_window_slot_open_location_full (NautilusWindowSlot *slot, GFile *location, NautilusWindowOpenFlags flags, @@ -138,20 +142,6 @@ void nautilus_window_slot_open_location_full (NautilusWindowSlot *slot, NautilusWindowGoToCallback callback, gpointer user_data); -/* convenience wrapper without callback/user_data */ -#define nautilus_window_slot_open_location(slot, location, flags, new_selection)\ - nautilus_window_slot_open_location_full(slot, location, flags, new_selection, NULL, NULL) - -/* these are wrappers that always open according to current mode */ -#define nautilus_window_slot_go_to(slot, location, new_tab) \ - nautilus_window_slot_open_location(slot, location, \ - (new_tab ? NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB : 0), \ - NULL) -#define nautilus_window_slot_go_to_full(slot, location, new_tab, callback, user_data) \ - nautilus_window_slot_open_location_full(slot, location, \ - (new_tab ? NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB : 0), \ - NULL, callback, user_data) - void nautilus_window_slot_stop_loading (NautilusWindowSlot *slot); void nautilus_window_slot_set_content_view (NautilusWindowSlot *slot, @@ -161,10 +151,9 @@ gboolean nautilus_window_slot_content_view_matches_iid (NautilusWindowSlot *slo const char *iid); void nautilus_window_slot_go_home (NautilusWindowSlot *slot, - gboolean new_tab); + NautilusWindowOpenFlags flags); void nautilus_window_slot_go_up (NautilusWindowSlot *slot, - gboolean close_behind, - gboolean new_tab); + NautilusWindowOpenFlags flags); void nautilus_window_slot_set_content_view_widget (NautilusWindowSlot *slot, NautilusView *content_view); |