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



commit be867ad17e48b7b6b60e053957c8f2477d2217b0
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 838ac6a..aaf3de7 100644
--- a/src/gpk-application.c
+++ b/src/gpk-application.c
@@ -4039,6 +4039,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]