[vinagre] Avoid yes-no buttons in certificate dialogs
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Avoid yes-no buttons in certificate dialogs
- Date: Mon, 18 Aug 2014 11:16:29 +0000 (UTC)
commit 853314e1a72f242ec95854f5eb36c14068452d6b
Author: David King <amigadave amigadave com>
Date: Mon Aug 18 12:15:40 2014 +0100
Avoid yes-no buttons in certificate dialogs
Use Connect/Cancel instead.
data/vinagre.ui | 2 --
plugins/rdp/vinagre-rdp-tab.c | 6 ++++++
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/data/vinagre.ui b/data/vinagre.ui
index 7fa926e..8b3e7f3 100644
--- a/data/vinagre.ui
+++ b/data/vinagre.ui
@@ -852,7 +852,6 @@ Jonh Wendell <jwendell gnome org></property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="message_type">warning</property>
- <property name="buttons">yes-no</property>
<property name="text" translatable="yes">Certificate Verification</property>
<property name="secondary_text" translatable="yes">The remote host has changed its certificate.
Do you trust the new certificate?</property>
@@ -1020,7 +1019,6 @@ Do you trust the new certificate?</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="message_type">question</property>
- <property name="buttons">yes-no</property>
<property name="text" translatable="yes">Certificate Verification</property>
<property name="secondary_text" translatable="yes">The below certificate could not be verified.
Do you trust the certificate?</property>
diff --git a/plugins/rdp/vinagre-rdp-tab.c b/plugins/rdp/vinagre-rdp-tab.c
index 0d42d44..02f5e4e 100644
--- a/plugins/rdp/vinagre-rdp-tab.c
+++ b/plugins/rdp/vinagre-rdp-tab.c
@@ -747,6 +747,9 @@ frdp_certificate_verify (freerdp *instance,
dialog = GTK_WIDGET (gtk_builder_get_object (builder, "certificate_dialog"));
gtk_window_set_transient_for ((GtkWindow *) dialog, GTK_WINDOW (vinagre_tab_get_window (tab)));
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_NO,
+ _("Connect"), GTK_RESPONSE_YES, NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
widget = GTK_WIDGET (gtk_builder_get_object (builder, "certificate_subject"));
gtk_label_set_text (GTK_LABEL (widget), subject);
@@ -785,6 +788,9 @@ frdp_changed_certificate_verify (freerdp *instance,
dialog = GTK_WIDGET (gtk_builder_get_object (builder, "certificate_changed_dialog"));
gtk_window_set_transient_for ((GtkWindow *) dialog, GTK_WINDOW (vinagre_tab_get_window (tab)));
+ gtk_dialog_add_buttons (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_NO,
+ _("Connect"), GTK_RESPONSE_YES, NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_YES);
widget = GTK_WIDGET (gtk_builder_get_object (builder, "certificate_changed_subject"));
gtk_label_set_text (GTK_LABEL (widget), subject);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]