[gnome-packagekit] Set the cancel button to be initially insensitive



commit 922b9be4d0168e3f7d0a21b8f1460ce84acc5c77
Author: Jonathan Conder <j skurvy no-ip org>
Date:   Thu Apr 8 19:21:57 2010 +0100

    Set the cancel button to be initially insensitive
    
    Signed-off-by: Richard Hughes <richard hughsie com>

 src/gpk-application.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-application.c b/src/gpk-application.c
index cb74820..885b1d7 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -4042,6 +4042,7 @@ gpk_application_init (GpkApplication *application)
 	widget = GTK_WIDGET (gtk_builder_get_object (application->priv->builder, "button_cancel"));
 	g_signal_connect (widget, "clicked",
 			  G_CALLBACK (gpk_application_cancel_cb), application);
+	gtk_widget_set_sensitive (widget, FALSE);
 	/* TRANSLATORS: tooltip on the cancel button */
 	gtk_widget_set_tooltip_text (widget, _("Cancel search"));
 



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