From 1a04428815b38b7154704654cd24975f273f415a Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Tue, 19 Oct 2010 12:11:18 +0200 Subject: [PATCH] app: remove obsolete (GtkObject **) casts --- app/display/gimpdisplayshell-scale-dialog.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/app/display/gimpdisplayshell-scale-dialog.c b/app/display/gimpdisplayshell-scale-dialog.c index b86c5c0419..8724c16088 100644 --- a/app/display/gimpdisplayshell-scale-dialog.c +++ b/app/display/gimpdisplayshell-scale-dialog.c @@ -164,8 +164,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell) gimp_zoom_model_get_fraction (data->model, &num, &denom); - data->num_adj = (GtkAdjustment *) - gtk_adjustment_new (num, 1, 256, 1, 8, 0); + data->num_adj = gtk_adjustment_new (num, 1, 256, 1, 8, 0); spin = gtk_spin_button_new (data->num_adj, 1.0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE); @@ -176,8 +175,7 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell) gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); - data->denom_adj = (GtkAdjustment *) - gtk_adjustment_new (denom, 1, 256, 1, 8, 0); + data->denom_adj = gtk_adjustment_new (denom, 1, 256, 1, 8, 0); spin = gtk_spin_button_new (data->denom_adj, 1.0, 0); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE); @@ -189,10 +187,9 @@ gimp_display_shell_scale_dialog (GimpDisplayShell *shell) _("Zoom:"), 0.0, 0.5, hbox, 1, FALSE); - data->scale_adj = (GtkAdjustment *) - gtk_adjustment_new (fabs (shell->other_scale) * 100, - 100.0 / 256.0, 25600.0, - 10, 50, 0); + data->scale_adj = gtk_adjustment_new (fabs (shell->other_scale) * 100, + 100.0 / 256.0, 25600.0, + 10, 50, 0); spin = gtk_spin_button_new (data->scale_adj, 1.0, 2); gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spin), TRUE); gtk_entry_set_activates_default (GTK_ENTRY (spin), TRUE);