[Pkg-privacy-commits] [pidgin-otr] 78/255: * gtk-dialog.c (add_to_vbox_verify_fingerprint): Make the fingerprints in the manual authentication dialog selectable (but not selected by default).

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch experimental
in repository pidgin-otr.

commit 27d4ea7d26b8cd6e7b10a422ac8f738f7f8c959b
Author: cypherpunk <cypherpunk>
Date:   Sun Nov 15 03:54:30 2009 +0000

    	* gtk-dialog.c (add_to_vbox_verify_fingerprint): Make
    	the fingerprints in the manual authentication dialog
    	selectable (but not selected by default).
---
 ChangeLog    | 6 ++++++
 gtk-dialog.c | 6 +++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 22c306e..e4a6fe4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-14
+
+	* gtk-dialog.c (add_to_vbox_verify_fingerprint): Make
+	the fingerprints in the manual authentication dialog
+	selectable (but not selected by default).
+
 2009-08-24
 
 	* po/fr.po: Fixed \n errors
diff --git a/gtk-dialog.c b/gtk-dialog.c
index 27df1c6..6cae9df 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -644,7 +644,11 @@ static void add_to_vbox_verify_fingerprint(GtkWidget *vbox, ConnContext *context
     label = gtk_label_new(NULL);
     
     gtk_label_set_markup(GTK_LABEL(label), label_text);
-    gtk_label_set_selectable(GTK_LABEL(label), FALSE);
+    /* Make the label containing the fingerprints selectable, but
+     * not auto-selected. */
+    gtk_label_set_selectable(GTK_LABEL(label), TRUE);
+    g_object_set(label, "can-focus", FALSE, NULL);
+
     g_free(label_text);
     gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
     gtk_misc_set_alignment(GTK_MISC(label), 0, 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list