[gimp] Add some forgotten casts, fixes (harmless) compile warnings



commit d5b15428081cff1953ea8918c441771524490c02
Author: Michael Natterer <mitch gimp org>
Date:   Fri Sep 25 17:23:52 2009 +0200

    Add some forgotten casts, fixes (harmless) compile warnings

 app/display/gimpdisplayshell-scale-dialog.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-scale-dialog.c b/app/display/gimpdisplayshell-scale-dialog.c
index b26779a..f20d95c 100644
--- a/app/display/gimpdisplayshell-scale-dialog.c
+++ b/app/display/gimpdisplayshell-scale-dialog.c
@@ -78,6 +78,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
 {
   ScaleDialogData *data;
   GimpImage       *image;
+  GtkWidget       *toplevel;
   GtkWidget       *hbox;
   GtkWidget       *table;
   GtkWidget       *spin;
@@ -135,8 +136,10 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell)
   g_object_add_weak_pointer (G_OBJECT (shell->scale_dialog),
                              (gpointer) &shell->scale_dialog);
 
+  toplevel = gtk_widget_get_toplevel (GTK_WIDGET (shell));
+
   gtk_window_set_transient_for (GTK_WINDOW (shell->scale_dialog),
-                                gtk_widget_get_toplevel (GTK_WINDOW (shell)));
+                                GTK_WINDOW (toplevel));
   gtk_window_set_destroy_with_parent (GTK_WINDOW (shell->scale_dialog), TRUE);
 
   g_signal_connect (shell->scale_dialog, "response",



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