another small code cleanup

This commit is contained in:
Sven Neumann 2005-12-28 23:51:39 +00:00
parent 6af4b9b317
commit 8798be7157
1 changed files with 4 additions and 5 deletions

View File

@ -1057,13 +1057,12 @@ gimp_dockable_title_changed (GimpDocked *docked,
dockable->title_layout = NULL;
}
if (GTK_WIDGET (dockable)->window)
if (GTK_WIDGET_DRAWABLE (dockable))
{
GdkRectangle title_area;
GdkRectangle area;
gimp_dockable_get_title_area (dockable, &title_area);
gimp_dockable_get_title_area (dockable, &area);
gdk_window_invalidate_rect (GTK_WIDGET (dockable)->window,
&title_area, FALSE);
gdk_window_invalidate_rect (GTK_WIDGET (dockable)->window, &area, FALSE);
}
}