[gnome-packagekit/gnome-3-0] Never auto-close the update-viewer if there are restarts to agree to



commit e7e2539c62a7cc3c4471664a17efdae320bcb76e
Author: Richard Hughes <richard hughsie com>
Date:   Tue Apr 26 12:38:03 2011 +0100

    Never auto-close the update-viewer if there are restarts to agree to

 src/gpk-update-viewer.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 1387ab7..838aa96 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -255,22 +255,9 @@ gpk_update_viewer_check_restart (void)
 		gtk_dialog_add_button (GTK_DIALOG (dialog), button, GTK_RESPONSE_OK);
 	gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog), "%s", message);
 	gtk_window_set_icon_name (GTK_WINDOW(dialog), GPK_ICON_SOFTWARE_UPDATE);
-
-	/* setup a callback so we autoclose */
-	auto_shutdown_id =
-		g_timeout_add_seconds (GPK_UPDATE_VIEWER_AUTO_RESTART_TIMEOUT,
-				       (GSourceFunc) gpk_update_viewer_auto_shutdown_cb, dialog);
-	g_source_set_name_by_id (auto_shutdown_id, "[GpkUpdateViewer] auto-restart");
-
 	response = gtk_dialog_run (GTK_DIALOG(dialog));
 	gtk_widget_destroy (dialog);
 
-	/* remove auto-shutdown */
-	if (auto_shutdown_id != 0) {
-		g_source_remove (auto_shutdown_id);
-		auto_shutdown_id = 0;
-	}
-
 	/* cancel */
 	if (response != GTK_RESPONSE_OK)
 		goto out;



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