From e4ff799b046b0f7740619c7ddd0ef4f770f7102e Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Fri, 19 Oct 2012 00:44:38 +0200 Subject: [desktop-window] add a 'loaded' flag http://git.gnome.org/browse/nautilus/commit/?id=f95927360079b1c05efb9cea0de62457eea307ab&context=6 --- src/caja-desktop-window.c | 12 +++++++++++- src/caja-desktop-window.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.1