[gnome-software/wip/ubuntu-changes] Terminate immediately on close
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/ubuntu-changes] Terminate immediately on close
- Date: Thu, 24 Mar 2016 14:01:01 +0000 (UTC)
commit 0ea65a85eb9fd2e71295f694aa4fb30aae773956
Author: William Hua <william hua canonical com>
Date: Thu Mar 24 09:59:58 2016 -0400
Terminate immediately on close
src/gs-application.c | 1 -
src/gs-shell.c | 22 ----------------------
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index fa24d56..97ff103 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -769,7 +769,6 @@ gs_application_new (void)
return g_object_new (GS_APPLICATION_TYPE,
"application-id", "org.gnome.Software",
"flags", G_APPLICATION_HANDLES_OPEN,
- "inactivity-timeout", 12000,
NULL);
}
diff --git a/src/gs-shell.c b/src/gs-shell.c
index fb8a84b..66bbe38 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -604,25 +604,6 @@ window_button_press_event (GtkWidget *win, GdkEventButton *event, GsShell *shell
return GDK_EVENT_STOP;
}
-static gboolean
-main_window_closed_cb (GtkWidget *dialog, GdkEvent *event, gpointer user_data)
-{
- GsShell *shell = user_data;
- GsShellPrivate *priv = gs_shell_get_instance_private (shell);
- BackEntry *entry;
-
- /* When the window is closed, reset the initial mode to overview */
- priv->mode = GS_SHELL_MODE_OVERVIEW;
-
- /* ... and clear any remaining entries in the back button stack */
- while ((entry = g_queue_pop_head (priv->back_entry_stack)) != NULL) {
- free_back_entry (entry);
- }
-
- gtk_widget_hide (dialog);
- return TRUE;
-}
-
/**
* gs_shell_updates_changed_cb:
*/
@@ -719,9 +700,6 @@ gs_shell_setup (GsShell *shell, GsPluginLoader *plugin_loader, GCancellable *can
gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
GS_DATA G_DIR_SEPARATOR_S "icons");
- g_signal_connect (priv->main_window, "delete-event",
- G_CALLBACK (main_window_closed_cb), shell);
-
/* fix up the header bar */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "header"));
if (in_desktop ("Unity")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]