gimp r28212 - in trunk: . app/widgets



Author: mitch
Date: Mon Mar 23 08:57:59 2009
New Revision: 28212
URL: http://svn.gnome.org/viewvc/gimp?rev=28212&view=rev

Log:
2009-03-23  Michael Natterer  <mitch gimp org>

	* app/widgets/gimpscalebutton.c: use GtkScaleButton's accessors.



Modified:
   trunk/ChangeLog
   trunk/app/widgets/gimpscalebutton.c

Modified: trunk/app/widgets/gimpscalebutton.c
==============================================================================
--- trunk/app/widgets/gimpscalebutton.c	(original)
+++ trunk/app/widgets/gimpscalebutton.c	Mon Mar 23 08:57:59 2009
@@ -52,12 +52,15 @@
 gimp_scale_button_init (GimpScaleButton *button)
 {
   GtkWidget *image = gtk_bin_get_child (GTK_BIN (button));
+  GtkWidget *plusminus;
 
-  gtk_widget_hide (GTK_SCALE_BUTTON (button)->plus_button);
-  gtk_widget_set_no_show_all (GTK_SCALE_BUTTON (button)->plus_button, TRUE);
-
-  gtk_widget_hide (GTK_SCALE_BUTTON (button)->minus_button);
-  gtk_widget_set_no_show_all (GTK_SCALE_BUTTON (button)->minus_button, TRUE);
+  plusminus = gtk_scale_button_get_plus_button (GTK_SCALE_BUTTON (button));
+  gtk_widget_hide (plusminus);
+  gtk_widget_set_no_show_all (plusminus, TRUE);
+
+  plusminus = gtk_scale_button_get_minus_button (GTK_SCALE_BUTTON (button));
+  gtk_widget_hide (plusminus);
+  gtk_widget_set_no_show_all (plusminus, TRUE);
 
   g_signal_connect (image, "expose-event",
                     G_CALLBACK (gimp_scale_button_image_expose),



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