[Pkg-privacy-commits] [pidgin-otr] 32/255: * 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)

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:19 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 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-privacy/packages/pidgin-otr.git



More information about the Pkg-privacy-commits mailing list