summaryrefslogtreecommitdiff
path: root/gtk/gtksocket.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-02-20 16:44:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-02-20 16:45:41 -0500
commit48b0a55775e3ccda3c933767808059be74b3a3d1 (patch)
treecc432c86a2319b7de5dddc39a4e057ffe8e9bdf9 /gtk/gtksocket.c
parentbffd26e4762e0bc62b2ca5c7ce44d4f5a7ee522f (diff)
downloadgtk+-48b0a55775e3ccda3c933767808059be74b3a3d1.tar.gz
React to is-focus change, not ignore it
A very old bug, noticed in https://bugzilla.gnome.org/show_bug.cgi?id=642791
Diffstat (limited to 'gtk/gtksocket.c')
-rw-r--r--gtk/gtksocket.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/gtksocket.c b/gtk/gtksocket.c
index d88f756690..d20a567ece 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));
}
/**