[gimp] app: Use of GimpViewableDialog with a NULL viewable is depecrated!



commit 6095a9967fdb75c0800d4b03bd88e4708c37a06a
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Mon Sep 5 18:27:34 2011 +0200

    app: Use of GimpViewableDialog with a NULL viewable is depecrated!
    
    Do not pass a NULL viewable to gimp_viewable_dialog_new as it warns
    and call gtk_window_set_resizable (, FALSE) so the expander works.

 app/dialogs/template-options-dialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/dialogs/template-options-dialog.c b/app/dialogs/template-options-dialog.c
index a93c0d9..a9b615d 100644
--- a/app/dialogs/template-options-dialog.c
+++ b/app/dialogs/template-options-dialog.c
@@ -78,6 +78,7 @@ template_options_dialog_new (GimpTemplate *template,
     {
       template =
         gimp_config_duplicate (GIMP_CONFIG (options->gimp->config->default_image));
+      viewable = GIMP_VIEWABLE (template);
 
       gimp_object_set_static_name (GIMP_OBJECT (template), _("Unnamed"));
     }
@@ -93,6 +94,7 @@ template_options_dialog_new (GimpTemplate *template,
 
                               NULL);
 
+  gtk_window_set_resizable (GTK_WINDOW (options->dialog), FALSE);
   gtk_dialog_set_alternative_button_order (GTK_DIALOG (options->dialog),
                                            GTK_RESPONSE_OK,
                                            GTK_RESPONSE_CANCEL,



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