mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
application: remove unused code
Just activate the GAction when the menu item is clicked.
This commit is contained in:
parent
3c629b5281
commit
7d7d92a315
3 changed files with 2 additions and 19 deletions
|
@ -441,22 +441,6 @@ nautilus_application_close_desktop (void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_application_close_all_windows (NautilusApplication *self)
|
||||
{
|
||||
GList *list_copy;
|
||||
GList *l;
|
||||
|
||||
list_copy = g_list_copy (gtk_application_get_windows (GTK_APPLICATION (self)));
|
||||
for (l = list_copy; l != NULL; l = l->next) {
|
||||
NautilusWindow *window;
|
||||
|
||||
window = NAUTILUS_WINDOW (l->data);
|
||||
nautilus_window_close (window);
|
||||
}
|
||||
g_list_free (list_copy);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
another_navigation_window_already_showing (NautilusApplication *application,
|
||||
NautilusWindow *the_window)
|
||||
|
|
|
@ -73,6 +73,4 @@ void nautilus_application_open_location (NautilusApplication *application,
|
|||
GFile *selection,
|
||||
const char *startup_id);
|
||||
|
||||
void nautilus_application_close_all_windows (NautilusApplication *self);
|
||||
|
||||
#endif /* __NAUTILUS_APPLICATION_H__ */
|
||||
|
|
|
@ -440,7 +440,8 @@ static void
|
|||
action_close_all_windows_callback (GtkAction *action,
|
||||
gpointer user_data)
|
||||
{
|
||||
nautilus_application_close_all_windows (nautilus_application_get_singleton ());
|
||||
g_action_group_activate_action (G_ACTION_GROUP (g_application_get_default ()),
|
||||
"quit", NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue