application: remove unused code

Just activate the GAction when the menu item is clicked.
This commit is contained in:
Cosimo Cecchi 2012-04-25 13:19:41 -04:00
parent 3c629b5281
commit 7d7d92a315
3 changed files with 2 additions and 19 deletions

View file

@ -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)

View file

@ -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__ */

View file

@ -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