[frogr] Ensure dialogs have a well defined default desponse
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Ensure dialogs have a well defined default desponse
- Date: Sun, 4 Jan 2015 00:09:20 +0000 (UTC)
commit 4bfab3fde11ba8d3c24fb4f762b4785a714f8d9b
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Sun Jan 4 00:15:33 2015 +0100
Ensure dialogs have a well defined default desponse
src/frogr-add-tags-dialog.c | 2 ++
src/frogr-add-to-group-dialog.c | 2 ++
src/frogr-add-to-set-dialog.c | 2 ++
src/frogr-auth-dialog.c | 2 ++
src/frogr-create-new-set-dialog.c | 2 ++
src/frogr-details-dialog.c | 3 +--
src/frogr-main-view.c | 6 ++++++
src/frogr-settings-dialog.c | 3 +--
8 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/src/frogr-add-tags-dialog.c b/src/frogr-add-tags-dialog.c
index eba76c2..db98191 100644
--- a/src/frogr-add-tags-dialog.c
+++ b/src/frogr-add-tags-dialog.c
@@ -219,6 +219,8 @@ frogr_add_tags_dialog_init (FrogrAddTagsDialog *self)
g_signal_connect (G_OBJECT (self), "response",
G_CALLBACK (_dialog_response_cb), NULL);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT);
}
/* Public API */
diff --git a/src/frogr-add-to-group-dialog.c b/src/frogr-add-to-group-dialog.c
index 930476a..b7e744d 100644
--- a/src/frogr-add-to-group-dialog.c
+++ b/src/frogr-add-to-group-dialog.c
@@ -584,6 +584,8 @@ frogr_add_to_group_dialog_init (FrogrAddToGroupDialog *self)
g_signal_connect (G_OBJECT (self), "response",
G_CALLBACK (_dialog_response_cb), NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT);
+
gtk_window_set_default_size (GTK_WINDOW (self),
MINIMUM_WINDOW_WIDTH,
MINIMUM_WINDOW_HEIGHT);
diff --git a/src/frogr-add-to-set-dialog.c b/src/frogr-add-to-set-dialog.c
index 9cdd036..061e291 100644
--- a/src/frogr-add-to-set-dialog.c
+++ b/src/frogr-add-to-set-dialog.c
@@ -585,6 +585,8 @@ frogr_add_to_set_dialog_init (FrogrAddToSetDialog *self)
g_signal_connect (G_OBJECT (self), "response",
G_CALLBACK (_dialog_response_cb), NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT);
+
gtk_window_set_default_size (GTK_WINDOW (self),
MINIMUM_WINDOW_WIDTH,
MINIMUM_WINDOW_HEIGHT);
diff --git a/src/frogr-auth-dialog.c b/src/frogr-auth-dialog.c
index fcb92b3..9858af7 100644
--- a/src/frogr-auth-dialog.c
+++ b/src/frogr-auth-dialog.c
@@ -167,6 +167,8 @@ _ask_for_auth_confirmation (GtkWindow *parent)
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (_ask_for_auth_confirmation_response_cb), NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
+
gtk_window_set_default_size (GTK_WINDOW (dialog), 200, -1);
gtk_widget_show_all (dialog);
}
diff --git a/src/frogr-create-new-set-dialog.c b/src/frogr-create-new-set-dialog.c
index e5edea0..fdf00e9 100644
--- a/src/frogr-create-new-set-dialog.c
+++ b/src/frogr-create-new-set-dialog.c
@@ -383,6 +383,8 @@ frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
G_CALLBACK (_on_button_toggled),
self);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT);
+
priv->copy_to_pictures = FALSE;
}
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index a575177..233956b 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -1200,8 +1200,7 @@ frogr_details_dialog_init (FrogrDetailsDialog *self)
g_signal_connect (G_OBJECT (self), "response",
G_CALLBACK (_dialog_response_cb), NULL);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
- GTK_RESPONSE_ACCEPT);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_ACCEPT);
}
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index 41208cf..214749f 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -1625,6 +1625,8 @@ _open_project_dialog (FrogrMainView *self)
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (_open_project_dialog_response_cb), self);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_widget_show_all (dialog);
}
@@ -1698,6 +1700,8 @@ _save_project_as_dialog (FrogrMainView *self)
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (_save_project_as_dialog_response_cb), self);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_widget_show_all (dialog);
}
@@ -1777,6 +1781,8 @@ _load_pictures_dialog (FrogrMainView *self)
g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (_load_pictures_dialog_response_cb), self);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
gtk_widget_show_all (dialog);
}
diff --git a/src/frogr-settings-dialog.c b/src/frogr-settings-dialog.c
index d48c9e4..5bb9a7d 100644
--- a/src/frogr-settings-dialog.c
+++ b/src/frogr-settings-dialog.c
@@ -983,8 +983,7 @@ frogr_settings_dialog_init (FrogrSettingsDialog *self)
G_CALLBACK (_on_dialog_delete_event),
NULL);
- gtk_dialog_set_default_response (GTK_DIALOG (self),
- GTK_RESPONSE_CLOSE);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_CLOSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]