[gimp] app: allow a NULL shell in gimp_tool_dialog_set_shell()



commit ebde92ccb659dea2ee003950fa34f4a69478aa8a
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 7 10:26:34 2013 +0200

    app: allow a NULL shell in gimp_tool_dialog_set_shell()

 app/display/gimptooldialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimptooldialog.c b/app/display/gimptooldialog.c
index 3125608..434ba9c 100644
--- a/app/display/gimptooldialog.c
+++ b/app/display/gimptooldialog.c
@@ -151,7 +151,7 @@ gimp_tool_dialog_set_shell (GimpToolDialog   *tool_dialog,
   GimpToolDialogPrivate *private = GET_PRIVATE (tool_dialog);
 
   g_return_if_fail (GIMP_IS_TOOL_DIALOG (tool_dialog));
-  g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
+  g_return_if_fail (shell == NULL || GIMP_IS_DISPLAY_SHELL (shell));
 
   if (shell == private->shell)
     return;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]