[Pkg-privacy-commits] [pidgin-otr] 11/14: * 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:52:13 UTC 2015


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

infinity0 pushed a commit to tag release_3_2_1
in repository pidgin-otr.

commit 603811b8b9eefd5aba7385b95eca46d98309a701
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 ce1d4a3..d6fe59f 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 de342a8..3bf0617 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -643,7 +643,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