summaryrefslogtreecommitdiff
path: root/src/caja-desktop-window.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-19 00:44:38 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:50 +0200
commite4ff799b046b0f7740619c7ddd0ef4f770f7102e (patch)
treef70fbef18978426be8546e20273d28736926da9c /src/caja-desktop-window.c
parent11c358d779c6c0913cf9d784a8adbb663c6b8bd9 (diff)
downloadcaja-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/caja-desktop-window.c')
-rw-r--r--src/caja-desktop-window.c12
1 files changed, 11 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;
+}
+