[gnome-software/wip/temp/ubuntu-xenial-rebased: 171/326] Terminate immediately on close



commit 71ee018b1f608ec6f9bb492316f744761d7a6b09
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 327330c..d313e96 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 c6528e5..68eb415 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 (gs_utils_is_current_desktop ("Unity")) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]