[pkg-otr-team] [irssi-plugin-otr] 32/167: * gtk-dialog.c: The SMP secret window should grab focus, but only if the user requested to authenticate buddy (and not if it popped up because the remote side asked for it)

Holger Levsen holger at moszumanska.debian.org
Mon Mar 3 21:55:30 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 391d8516b92f78a8d10227879f48f631dd5c2db0
Author: cypherpunk <cypherpunk>
Date:   Thu Jul 26 18:34:23 2007 +0000

    	* gtk-dialog.c: The SMP secret window should grab focus, but
    	only if the user requested to authenticate buddy (and not if it
    	popped up because the remote side asked for it)
---
 ChangeLog    | 4 ++++
 gtk-dialog.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index f23ea80..11907c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
 	* otr-plugin.c: Defend against potential NULL pointer
 	dereferences
 
+	* gtk-dialog.c: The SMP secret window should grab focus, but
+	only if the user requested to authenticate buddy (and not if it
+	popped up because the remote side asked for it)
+
 2007-07-24
 
 	* INSTALL: Added information about i18n; added information about
diff --git a/gtk-dialog.c b/gtk-dialog.c
index a70142c..9ce4833 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -994,7 +994,7 @@ static GtkWidget *create_smp_dialog(const char *title,
 	gtk_dialog_set_response_sensitive(GTK_DIALOG(dialog),
 	        GTK_RESPONSE_ACCEPT, sensitive);
 
-	gtk_window_set_focus_on_map(GTK_WINDOW(dialog), FALSE);
+	gtk_window_set_focus_on_map(GTK_WINDOW(dialog), !responder);
 	gtk_window_set_role(GTK_WINDOW(dialog), "notify_dialog");
 
 	gtk_container_set_border_width(GTK_CONTAINER(dialog), 6);

-- 
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