/pidgin/main: abc9e0edacc9: Simplify some confusing code

Daniel Atallah datallah at pidgin.im
Tue Feb 26 20:48:47 EST 2013


Changeset: abc9e0edacc9299692d15967d7d426f5f7c41c38
Author:	 Daniel Atallah <datallah at pidgin.im>
Date:	 2013-02-26 20:39 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/abc9e0edacc9

Description:

Simplify some confusing code

diffstat:

 finch/libgnt/gntwm.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff --git a/finch/libgnt/gntwm.c b/finch/libgnt/gntwm.c
--- a/finch/libgnt/gntwm.c
+++ b/finch/libgnt/gntwm.c
@@ -1252,7 +1252,11 @@ ignore_keys_start(GntBindable *bindable,
 static gboolean
 ignore_keys_end(GntBindable *bindable, GList *n)
 {
-	return ignore_keys ? !(ignore_keys = FALSE) : FALSE;
+	if (ignore_keys) {
+		ignore_keys = FALSE;
+		return TRUE;
+	}
+	return FALSE;
 }
 
 static gboolean



More information about the Commits mailing list