]> Pileus Git - ~andy/gtk/commitdiff
React to is-focus change, not ignore it
authorMatthias Clasen <mclasen@redhat.com>
Sun, 20 Feb 2011 21:44:26 +0000 (16:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 20 Feb 2011 21:45:41 +0000 (16:45 -0500)
A very old bug, noticed in
https://bugzilla.gnome.org/show_bug.cgi?id=642791

gtk/gtksocket.c

index d88f756690a03c167bfa5b3b391ecb12952fecf7..d20a567ecede9941b73a727e25a7fd553c1326d7 100644 (file)
@@ -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));
 }
 
 /**