[gimp] app: Don't create empty dock windows when switching off swm
- From: Martin Nordholts <martinn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: Don't create empty dock windows when switching off swm
- Date: Fri, 5 Aug 2011 20:59:14 +0000 (UTC)
commit 875471d6bd6e426c924cca7bdbf797c98470448c
Author: Martin Nordholts <martinn src gnome org>
Date: Fri Aug 5 01:48:43 2011 +0200
app: Don't create empty dock windows when switching off swm
app/gui/gimpuiconfigurer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/gui/gimpuiconfigurer.c b/app/gui/gimpuiconfigurer.c
index abe503b..fcacd1a 100644
--- a/app/gui/gimpuiconfigurer.c
+++ b/app/gui/gimpuiconfigurer.c
@@ -335,6 +335,10 @@ gimp_ui_configurer_move_docks_to_window (GimpUIConfigurer *ui_configurer,
GtkWidget *dock_window = NULL;
GtkAllocation original_size = { 0, 0, 0, 0 };
+ /* Are there docks to move at all? */
+ if (! docks)
+ return;
+
/* Remember the size so we can set the new dock window to the same
* size
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]