[gnome-packagekit] Use a 'Cancel' button for a confirm dialog rather than 'Close'
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Use a 'Cancel' button for a confirm dialog rather than 'Close'
- Date: Thu, 25 Aug 2011 12:33:55 +0000 (UTC)
commit 0ca9abd2a37427f1e957b6b41b377ffcd4058bac
Author: Richard Hughes <richard hughsie com>
Date: Wed Aug 24 16:02:57 2011 +0100
Use a 'Cancel' button for a confirm dialog rather than 'Close'
src/gpk-modal-dialog.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-modal-dialog.c b/src/gpk-modal-dialog.c
index f34bb94..bcdec54 100644
--- a/src/gpk-modal-dialog.c
+++ b/src/gpk-modal-dialog.c
@@ -138,10 +138,11 @@ gpk_modal_dialog_present_with_time (GpkModalDialog *dialog, guint32 timestamp)
if (dialog->priv->page == GPK_MODAL_DIALOG_PAGE_CONFIRM) {
if (!dialog->priv->set_image)
gpk_modal_dialog_set_image (dialog, "dialog-question");
- bitfield = pk_bitfield_from_enums (GPK_MODAL_DIALOG_WIDGET_BUTTON_CLOSE,
+ bitfield = pk_bitfield_from_enums (GPK_MODAL_DIALOG_WIDGET_BUTTON_CANCEL,
GPK_MODAL_DIALOG_WIDGET_BUTTON_ACTION,
GPK_MODAL_DIALOG_WIDGET_MESSAGE,
-1);
+ gpk_modal_dialog_set_allow_cancel (dialog, TRUE);
} else if (dialog->priv->page == GPK_MODAL_DIALOG_PAGE_FINISHED) {
if (!dialog->priv->set_image)
gpk_modal_dialog_set_image (dialog, "dialog-information");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]