(Fixes related to #64428, Michael Meeks)

Mon Nov 19 17:11:23 2001  Owen Taylor  <otaylor@redhat.com>

	(Fixes related to #64428, Michael Meeks)

	* gtk/gtkplug.c (gtk_plug_set_is_child): Unmap the
	widget, so it gets mapped again properly when we
	add to a parent.

	* gtk/gtkplug.c (_gtk_plug_add_to_socket): Set
	plug->socket_window.

	* gtk/gtkplug.c (_gtk_plug_remove_from_socket): Set
	socket_window to NULL, not FALSE.
This commit is contained in:
Owen Taylor
2001-11-19 22:18:23 +00:00
committed by Owen Taylor
parent 2268abe48f
commit 0e8a7fb48e
11 changed files with 222 additions and 3 deletions

View File

@ -505,3 +505,47 @@ gtk_fixed_forall (GtkContainer *container,
(* callback) (child->widget, callback_data);
}
}
/**
* gtk_fixed_set_has_window:
* @fixed: a #GtkFixed
* @has_window: %TRUE if a separate window should be created
*
* Sets whether a #GtkFixed widget is created with a separate
* #GdkWindow for widget->window or not. (By default, it will be
* created with no separate #GdkWindow). This function must be called
* while the is not realized, for instance, immediately after the
* window is created.
**/
void
gtk_fixed_set_has_window (GtkFixed *fixed,
gboolean has_window)
{
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (!GTK_WIDGET_REALIZED (fixed));
if (!has_window != GTK_WIDGET_NO_WINDOW (fixed))
{
if (has_window)
GTK_WIDGET_UNSET_FLAGS (fixed, GTK_NO_WINDOW);
else
GTK_WIDGET_SET_FLAGS (fixed, GTK_NO_WINDOW);
}
}
/**
* gtk_fixed_get_has_window:
* @fixed: a #GtkWidget
*
* Gets whether the #GtkFixed has it's own #GdkWindow.
* See gdk_fixed_set_has_window().
*
* Return value:
**/
gboolean
gtk_fixed_get_has_window (GtkFixed *fixed)
{
g_return_if_fail (GTK_IS_FIXED (fixed));
return !GTK_WIDGET_NO_WINDOW (fixed);
}