[gimp] app: Don't remove the toolbox dock from dock columns
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] app: Don't remove the toolbox dock from dock columns
- Date: Wed, 6 Jan 2010 14:09:23 +0000 (UTC)
commit 5c4154d4383f1b63fa08068b04f683d940b919d1
Author: Martin Nordholts <martinn src gnome org>
Date: Wed Jan 6 15:10:32 2010 +0100
app: Don't remove the toolbox dock from dock columns
The toolbox always wants to make trouble :( Don't remove the toolbox
dock, even if it's empty.
app/widgets/gimpdockcolumns.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpdockcolumns.c b/app/widgets/gimpdockcolumns.c
index ef316c6..17c55d4 100644
--- a/app/widgets/gimpdockcolumns.c
+++ b/app/widgets/gimpdockcolumns.c
@@ -39,6 +39,7 @@
#include "gimpdockcolumns.h"
#include "gimpmenudock.h"
#include "gimppanedbox.h"
+#include "gimptoolbox.h"
#include "gimp-log.h"
@@ -178,7 +179,8 @@ gimp_dock_columns_dock_book_removed (GimpDockColumns *dock_columns,
{
g_return_if_fail (GIMP_IS_DOCK (dock));
- if (gimp_dock_get_dockbooks (dock) == NULL)
+ if (gimp_dock_get_dockbooks (dock) == NULL &&
+ ! GIMP_IS_TOOLBOX (dock))
gimp_dock_columns_remove_dock (dock_columns, dock);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]