[accounts-dialog] Make the new dialogue modal
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [accounts-dialog] Make the new dialogue modal
- Date: Fri, 15 Jan 2010 16:43:47 +0000 (UTC)
commit ba91f714d17fd61046f9fbb4162cd06c047e8569
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 15 16:43:32 2010 +0000
Make the new dialogue modal
src/um-fingerprint-dialog.c | 2 ++
src/um-photo-dialog.c | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/um-fingerprint-dialog.c b/src/um-fingerprint-dialog.c
index 84c61e6..83925f2 100644
--- a/src/um-fingerprint-dialog.c
+++ b/src/um-fingerprint-dialog.c
@@ -227,6 +227,7 @@ delete_fingerprints_question (GtkWindow *parent,
GTK_BUTTONS_NONE,
_("Delete registered fingerprints?"));
gtk_dialog_add_button (GTK_DIALOG (question), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
+ gtk_window_set_modal (GTK_WINDOW (question), TRUE);
button = gtk_button_new_with_mnemonic (_("_Delete Fingerprints"));
gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_DELETE, GTK_ICON_SIZE_BUTTON));
@@ -560,6 +561,7 @@ enroll_fingerprints (GtkWindow *parent,
ass = WID ("assistant");
gtk_window_set_title (GTK_WINDOW (ass), _("Enable Fingerprint Login"));
gtk_window_set_transient_for (GTK_WINDOW (ass), parent);
+ gtk_window_set_modal (GTK_WINDOW (ass), TRUE);
gtk_window_set_position (GTK_WINDOW (ass), GTK_WIN_POS_CENTER_ON_PARENT);
g_signal_connect (G_OBJECT (ass), "cancel",
G_CALLBACK (assistant_cancelled), data);
diff --git a/src/um-photo-dialog.c b/src/um-photo-dialog.c
index 31edf1c..5161ba8 100644
--- a/src/um-photo-dialog.c
+++ b/src/um-photo-dialog.c
@@ -278,6 +278,7 @@ webcam_icon_selected (GtkMenuItem *menuitem,
window = cheese_avatar_chooser_new ();
gtk_window_set_transient_for (GTK_WINDOW (window),
GTK_WINDOW (um->parent_window));
+ gtk_window_set_modal (GTK_WINDOW (window), TRUE);
g_signal_connect (G_OBJECT (window), "response",
G_CALLBACK (webcam_response_cb), um);
gtk_widget_show (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]