[gimp] app: Fix dock remove condition
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Fix dock remove condition
- Date: Sun, 7 Mar 2010 11:58:40 +0000 (UTC)
commit ee1f0a8b007236dd3f6a1f72fc32285a444778a2
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Mar 7 12:59:21 2010 +0100
app: Fix dock remove condition
Fix dock remove condition in
gimp_dock_columns_dock_book_removed(). Due to GimpPanedBox the parent
of a dock is not fixed, so just check for != NULL.
app/widgets/gimpdockcolumns.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpdockcolumns.c b/app/widgets/gimpdockcolumns.c
index f442fdf..3df842e 100644
--- a/app/widgets/gimpdockcolumns.c
+++ b/app/widgets/gimpdockcolumns.c
@@ -275,7 +275,7 @@ gimp_dock_columns_dock_book_removed (GimpDockColumns *dock_columns,
if (gimp_dock_get_dockbooks (dock) == NULL &&
! GIMP_IS_TOOLBOX (dock) &&
- gtk_widget_get_parent (GTK_WIDGET (dock)) == GTK_WIDGET (dock_columns))
+ gtk_widget_get_parent (GTK_WIDGET (dock)) != NULL)
gimp_dock_columns_remove_dock (dock_columns, dock);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]