]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkbutton.c
button: Clear highlight when a button is removed from a container
[~andy/gtk] / gtk / gtkbutton.c
index 621cd4f4ac445d90370c72a77eec54421504c9f5..824f4986e9a5d98e140c250796aaebdd6653f2a5 100644 (file)
@@ -1461,7 +1461,10 @@ gtk_button_unmap (GtkWidget *widget)
   GtkButtonPrivate *priv = button->priv;
 
   if (priv->event_window)
-    gdk_window_hide (priv->event_window);
+    {
+      gdk_window_hide (priv->event_window);
+      priv->in_button = FALSE;
+    }
 
   GTK_WIDGET_CLASS (gtk_button_parent_class)->unmap (widget);
 }