diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2014-11-29 23:59:59 -0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2014-12-06 15:15:44 -0800 |
commit | 492613abba3299d0215e02aa2083374e26e561dd (patch) | |
tree | e0e615c01d0a405031f352e39d78b8a90bab551b /src/nautilus-window-slot.c | |
parent | d60b91fd7920ed6019c54ec50d02a70b3fc00a25 (diff) | |
download | nautilus-492613abba3299d0215e02aa2083374e26e561dd.tar.gz |
application: cleanup use of gtk_application_get_windows()
We're really only interested in the NautilusWindows that we create - so
keep track of them explicitly instead of checking for
NAUTILUS_IS_WINDOW() every time.
Diffstat (limited to 'src/nautilus-window-slot.c')
-rw-r--r-- | src/nautilus-window-slot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index ea2ff71a8..875995dab 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1161,7 +1161,7 @@ got_file_info_for_view_selection_callback (NautilusFile *file, GFile *location, *default_location; GMountOperation *mount_op; MountNotMountedData *data; - GtkApplication *app; + NautilusApplication *app; GMount *mount; slot = callback_data; @@ -1298,9 +1298,9 @@ got_file_info_for_view_selection_callback (NautilusFile *file, */ /* if this is the only window, we don't want to quit, so we redirect it to home */ - app = GTK_APPLICATION (g_application_get_default ()); + app = NAUTILUS_APPLICATION (g_application_get_default ()); - if (g_list_length (gtk_application_get_windows (app)) == 1) { + if (g_list_length (nautilus_application_get_windows (app)) == 1) { /* the user could have typed in a home directory that doesn't exist, in which case going home would cause an infinite loop, so we better test for that */ |