diff options
author | Jasmine Hassan <[email protected]> | 2012-10-19 00:44:38 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-11-16 09:45:50 +0200 |
commit | e4ff799b046b0f7740619c7ddd0ef4f770f7102e (patch) | |
tree | f70fbef18978426be8546e20273d28736926da9c /src | |
parent | 11c358d779c6c0913cf9d784a8adbb663c6b8bd9 (diff) | |
download | caja-e4ff799b046b0f7740619c7ddd0ef4f770f7102e.tar.bz2 caja-e4ff799b046b0f7740619c7ddd0ef4f770f7102e.tar.xz |
[desktop-window] add a 'loaded' flag
http://git.gnome.org/browse/nautilus/commit/?id=f95927360079b1c05efb9cea0de62457eea307ab&context=6
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-desktop-window.c | 12 | ||||
-rw-r--r-- | src/caja-desktop-window.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 5e477cf5..aabc0468 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -39,6 +39,8 @@ struct CajaDesktopWindowDetails { gulong size_changed_id; + + gboolean loaded; }; G_DEFINE_TYPE (CajaDesktopWindow, caja_desktop_window, @@ -94,9 +96,10 @@ caja_desktop_window_update_directory (CajaDesktopWindow *window) g_assert (CAJA_IS_DESKTOP_WINDOW (window)); - CAJA_SPATIAL_WINDOW (window)->affect_spatial_window_on_next_location_change = TRUE; location = g_file_new_for_uri (EEL_DESKTOP_URI); caja_window_go_to (CAJA_WINDOW (window), location); + window->details->loaded = TRUE; + g_object_unref (location); } @@ -267,3 +270,10 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass) g_type_class_add_private (klass, sizeof (CajaDesktopWindowDetails)); } + +gboolean +caja_desktop_window_loaded (CajaDesktopWindow *window) +{ + return window->details->loaded; +} + diff --git a/src/caja-desktop-window.h b/src/caja-desktop-window.h index cd9582b4..2bd3579c 100644 --- a/src/caja-desktop-window.h +++ b/src/caja-desktop-window.h @@ -62,5 +62,6 @@ GType caja_desktop_window_get_type (void); CajaDesktopWindow *caja_desktop_window_new (CajaApplication *application, GdkScreen *screen); void caja_desktop_window_update_directory (CajaDesktopWindow *window); +gboolean caja_desktop_window_loaded (CajaDesktopWindow *window); #endif /* CAJA_DESKTOP_WINDOW_H */ |