[gtk+] React to is-focus change, not ignore it
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] React to is-focus change, not ignore it
- Date: Sun, 20 Feb 2011 21:45:54 +0000 (UTC)
commit 48b0a55775e3ccda3c933767808059be74b3a3d1
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 20 16:44:26 2011 -0500
React to is-focus change, not ignore it
A very old bug, noticed in
https://bugzilla.gnome.org/show_bug.cgi?id=642791
gtk/gtksocket.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index d88f756..d20a567 100644
--- a/gtk/gtksocket.c
+++ b/gtk/gtksocket.c
@@ -916,9 +916,8 @@ static void
gtk_socket_notify (GObject *object,
GParamSpec *pspec)
{
- if (!strcmp (pspec->name, "is-focus"))
- return;
- socket_update_focus_in (GTK_SOCKET (object));
+ if (strcmp (pspec->name, "is-focus") == 0)
+ socket_update_focus_in (GTK_SOCKET (object));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]