[gimp/tito] app: critical warning fixed when quitting GIMP from the action search.



commit dd0e0fe94deefd219cf683b659b4116603d0b256
Author: Jehan <jehan girinstud io>
Date:   Tue Dec 3 10:52:31 2013 +1300

    app: critical warning fixed when quitting GIMP from the action search.

 app/dialogs/action-search-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index a66b47d..492ce7c 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -824,7 +824,8 @@ action_search_update_position (SearchDialog *private)
 void
 action_search_finalizer (SearchDialog *private)
 {
-  gtk_widget_destroy (private->dialog);
+  if (GTK_IS_WIDGET (private->dialog))
+    gtk_widget_destroy (private->dialog);
 }
 
 static gboolean


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