diff options
author | Jasmine Hassan <[email protected]> | 2012-10-19 00:01:23 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-11-16 09:45:50 +0200 |
commit | 662d2326c5ce63c867b3d94fb2bb44d9a244399b (patch) | |
tree | 00b88f5d37a7b28dc84003dcaf5fa34f812963cd /src/caja-window-slot.h | |
parent | 2a1ef1efb5434f189e0463c834d5926bd931184e (diff) | |
download | caja-662d2326c5ce63c867b3d94fb2bb44d9a244399b.tar.bz2 caja-662d2326c5ce63c867b3d94fb2bb44d9a244399b.tar.xz |
[window] add _full() versions of _go_to and _open() methods
These also have a callback to get the result of the operation.
http://git.gnome.org/browse/nautilus/commit/?id=24515b87a91afd32885e07e32e2b4080584673a4
Diffstat (limited to 'src/caja-window-slot.h')
-rw-r--r-- | src/caja-window-slot.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/caja-window-slot.h b/src/caja-window-slot.h index f25bdf41..e0e93db9 100644 --- a/src/caja-window-slot.h +++ b/src/caja-window-slot.h @@ -139,7 +139,9 @@ void caja_window_slot_open_location_full (CajaWindowSlot *slot, GFile *location, CajaWindowOpenMode mode, CajaWindowOpenFlags flags, - GList *new_selection); + GList *new_selection, + CajaWindowGoToCallback callback, + gpointer user_data); void caja_window_slot_stop_loading (CajaWindowSlot *slot); void caja_window_slot_set_content_view (CajaWindowSlot *slot, @@ -156,7 +158,12 @@ void caja_window_slot_disconnect_content_view (CajaWindowSlo #define caja_window_slot_go_to(slot,location, new_tab) \ caja_window_slot_open_location_full(slot, location, CAJA_WINDOW_OPEN_ACCORDING_TO_MODE, \ (new_tab ? CAJA_WINDOW_OPEN_FLAG_NEW_TAB : 0), \ - NULL) + NULL, NULL, NULL) + +#define caja_window_slot_go_to_full(slot, location, new_tab, callback, user_data) \ + caja_window_slot_open_location_full(slot, location, CAJA_WINDOW_OPEN_ACCORDING_TO_MODE, \ + (new_tab ? CAJA_WINDOW_OPEN_FLAG_NEW_TAB : 0), \ + NULL, callback, user_data) #define caja_window_slot_go_to_with_selection(slot,location,new_selection) \ caja_window_slot_open_location_with_selection(slot, location, new_selection, FALSE) |