[pkg-otr-team] [irssi-plugin-otr] 78/167: * gtk-dialog.c (add_to_vbox_verify_fingerprint): Make the fingerprints in the manual authentication dialog selectable (but not selected by default).

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:34 UTC 2014


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

holger pushed a commit to tag 4.0.0
in repository irssi-plugin-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-otr/packages/irssi-plugin-otr.git



More information about the Pkg-otr-team mailing list