Commit 21942731 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

initialize the tab style to a supported one. Fixes bug #171562.

2005-03-25  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpdockable.c (gimp_dockable_add): initialize the
	tab style to a supported one. Fixes bug #171562.
parent 805eaf91
2005-03-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimpdockable.c (gimp_dockable_add): initialize the
tab style to a supported one. Fixes bug #171562.
2005-03-25 Sven Neumann <sven@gimp.org>
* plug-ins/bmp/bmpread.c: applied patch from David Costanzo that
......
......@@ -612,6 +612,8 @@ static void
gimp_dockable_add (GtkContainer *container,
GtkWidget *widget)
{
GimpDockable *dockable;
g_return_if_fail (GTK_BIN (container)->child == NULL);
GTK_CONTAINER_CLASS (parent_class)->add (container, widget);
......@@ -619,6 +621,10 @@ gimp_dockable_add (GtkContainer *container,
g_signal_connect (widget, "title_changed",
G_CALLBACK (gimp_dockable_title_changed),
container);
/* not all tab styles are supported by all children */
dockable = GIMP_DOCKABLE (container);
gimp_dockable_set_tab_style (dockable, dockable->tab_style);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment