[gimp/gtk3-port: 40/240] app: s/GtkObject/GtkAdjustment/ in app/dialogs/



commit b9a40d5d12f3d41c7c7d7a8faefd602156ff27c4
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 19 13:07:46 2010 +0200

    app: s/GtkObject/GtkAdjustment/ in app/dialogs/

 app/dialogs/palette-import-dialog.c |   47 +++++++++++++++-------------------
 1 files changed, 21 insertions(+), 26 deletions(-)
---
diff --git a/app/dialogs/palette-import-dialog.c b/app/dialogs/palette-import-dialog.c
index 4ca95b8..be86aa7 100644
--- a/app/dialogs/palette-import-dialog.c
+++ b/app/dialogs/palette-import-dialog.c
@@ -318,13 +318,12 @@ palette_import_dialog_new (GimpContext *context)
                              private->entry, 2, FALSE);
 
   /*  The # of colors  */
-  private->num_colors =
-    GTK_ADJUSTMENT (gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
-                                          _("N_umber of colors:"), -1, 5,
-                                          256, 2, 10000, 1, 10, 0,
-                                          TRUE, 0.0, 0.0,
-                                          NULL, NULL));
-  gimp_scale_entry_set_logarithmic (GTK_OBJECT (private->num_colors), TRUE);
+  private->num_colors = gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
+                                              _("N_umber of colors:"), -1, 5,
+                                              256, 2, 10000, 1, 10, 0,
+                                              TRUE, 0.0, 0.0,
+                                              NULL, NULL);
+  gimp_scale_entry_set_logarithmic (private->num_colors, TRUE);
 
   g_signal_connect_swapped (private->num_colors,
                             "value-changed",
@@ -332,24 +331,22 @@ palette_import_dialog_new (GimpContext *context)
                             private);
 
   /*  The columns  */
-  private->columns =
-    GTK_ADJUSTMENT (gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
-                                          _("C_olumns:"), -1, 5,
-                                          16, 0, 64, 1, 8, 0,
-                                          TRUE, 0.0, 0.0,
-                                          NULL, NULL));
+  private->columns = gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
+                                           _("C_olumns:"), -1, 5,
+                                           16, 0, 64, 1, 8, 0,
+                                           TRUE, 0.0, 0.0,
+                                           NULL, NULL);
 
   g_signal_connect (private->columns, "value-changed",
                     G_CALLBACK (palette_import_columns_changed),
                     private);
 
   /*  The interval  */
-  private->threshold =
-    GTK_ADJUSTMENT (gimp_scale_entry_new (GTK_TABLE (table), 0, 3,
-                                          _("I_nterval:"), -1, 5,
-                                          1, 1, 128, 1, 8, 0,
-                                          TRUE, 0.0, 0.0,
-                                          NULL, NULL));
+  private->threshold = gimp_scale_entry_new (GTK_TABLE (table), 0, 3,
+                                             _("I_nterval:"), -1, 5,
+                                             1, 1, 128, 1, 8, 0,
+                                             TRUE, 0.0, 0.0,
+                                             NULL, NULL);
 
   g_signal_connect_swapped (private->threshold, "value-changed",
                             G_CALLBACK (palette_import_make_palette),
@@ -528,10 +525,8 @@ palette_import_image_changed (GimpContext  *context,
 
       gtk_widget_set_sensitive (private->sample_merged_toggle, sensitive);
       gtk_widget_set_sensitive (private->selection_only_toggle, sensitive);
-      gimp_scale_entry_set_sensitive (GTK_OBJECT (private->threshold),
-                                      sensitive);
-      gimp_scale_entry_set_sensitive (GTK_OBJECT (private->num_colors),
-                                      sensitive);
+      gimp_scale_entry_set_sensitive (private->threshold, sensitive);
+      gimp_scale_entry_set_sensitive (private->num_colors, sensitive);
     }
 
   if (private->image)
@@ -641,9 +636,9 @@ palette_import_set_sensitive (ImportDialog *private)
   gtk_widget_set_sensitive (private->selection_only_toggle, image);
   gtk_widget_set_sensitive (private->file_chooser,          file);
 
-  gimp_scale_entry_set_sensitive (GTK_OBJECT (private->num_colors), ! file);
-  gimp_scale_entry_set_sensitive (GTK_OBJECT (private->columns),    ! file);
-  gimp_scale_entry_set_sensitive (GTK_OBJECT (private->threshold),  image);
+  gimp_scale_entry_set_sensitive (private->num_colors, ! file);
+  gimp_scale_entry_set_sensitive (private->columns,    ! file);
+  gimp_scale_entry_set_sensitive (private->threshold,  image);
 }
 
 static void


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