summaryrefslogtreecommitdiff
path: root/src/libedataserverui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2023-02-20 10:58:21 +0100
committerMilan Crha <mcrha@redhat.com>2023-02-20 10:58:21 +0100
commite357afea7ca124b3c97f117e79bab72b3eb53136 (patch)
tree7caa9759d25e4b13610a613cb964d3f552e8d2a8 /src/libedataserverui
parent5e7c003925bcebe9c1462de40765ec08702512c3 (diff)
downloadevolution-data-server-e357afea7ca124b3c97f117e79bab72b3eb53136.tar.gz
I#454 - libedataserverui: Tweak lookout of the Trust Prompt dialog
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/454
Diffstat (limited to 'src/libedataserverui')
-rw-r--r--src/libedataserverui/e-trust-prompt.c34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/libedataserverui/e-trust-prompt.c b/src/libedataserverui/e-trust-prompt.c
index f37c46142..6b2374374 100644
--- a/src/libedataserverui/e-trust-prompt.c
+++ b/src/libedataserverui/e-trust-prompt.c
@@ -120,11 +120,26 @@ trust_prompt_show (GtkWindow *parent,
_("_Accept Permanently"), GTK_RESPONSE_ACCEPT,
NULL);
+ widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
+ gtk_widget_set_tooltip_text (widget, _("Temporarily reject the certificate"));
+
+ widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_REJECT);
+ gtk_widget_set_tooltip_text (widget, _("Permanently reject the certificate"));
+
+ widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
+ gtk_widget_set_tooltip_text (widget, _("Temporarily accept the certificate"));
+
+ widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_ACCEPT);
+ gtk_widget_set_tooltip_text (widget, _("Permanently accept the certificate"));
+
widget = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
-#if !GTK_CHECK_VERSION(4, 0, 0)
- gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
-#endif
+ g_object_set (widget,
+ "margin-start", 6,
+ "margin-end", 6,
+ "margin-top", 6,
+ "margin-bottom", 6,
+ NULL);
grid = g_object_new (
GTK_TYPE_GRID,
@@ -137,23 +152,18 @@ trust_prompt_show (GtkWindow *parent,
"halign", GTK_ALIGN_FILL,
"vexpand", TRUE,
"valign", GTK_ALIGN_FILL,
+ "margin-start", 6,
+ "margin-end", 6,
+ "margin-top", 6,
+ "margin-bottom", 6,
NULL);
#if GTK_CHECK_VERSION(4, 0, 0)
- g_object_set (G_OBJECT (grid),
- "halign", GTK_ALIGN_FILL,
- "valign", GTK_ALIGN_FILL,
- "margin-start", 5,
- "margin-end", 5,
- "margin-top", 5,
- "margin-bottom", 5,
- NULL);
gtk_box_append (GTK_BOX (widget), GTK_WIDGET (grid));
widget = gtk_image_new_from_icon_name ("dialog-warning");
gtk_image_set_pixel_size (GTK_IMAGE (widget), 48);
#else
- gtk_container_set_border_width (GTK_CONTAINER (grid), 5);
gtk_container_add (GTK_CONTAINER (widget), GTK_WIDGET (grid));
widget = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG);