summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-09-27 14:48:26 +0200
committerJavier Jardón <jjardon@gnome.org>2010-09-29 01:18:10 +0200
commit42f480a537da89eac587a5a67fbf64ab248cd931 (patch)
tree1985940b85f908957d2fe9acbf82a906c5376cb6 /gtk
parent948768c708920fe25412d2a37729193fc36c9126 (diff)
downloadgtk+-42f480a537da89eac587a5a67fbf64ab248cd931.tar.gz
gtk_adjustment_new() should return a GtkAdjustment*
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=630731
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkadjustment.c2
-rw-r--r--gtk/gtkadjustment.h2
-rw-r--r--gtk/gtkhscale.c2
-rw-r--r--gtk/gtkscale.c2
-rw-r--r--gtk/gtkscalebutton.c2
-rw-r--r--gtk/gtkspinbutton.c4
-rw-r--r--gtk/gtkvolumebutton.c2
-rw-r--r--gtk/gtkvscale.c2
8 files changed, 9 insertions, 9 deletions
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c
index 146fbd4d58..9c3b1d36dd 100644
--- a/gtk/gtkadjustment.c
+++ b/gtk/gtkadjustment.c
@@ -318,7 +318,7 @@ gtk_adjustment_dispatch_properties_changed (GObject *object,
}
}
-GObject *
+GtkAdjustment *
gtk_adjustment_new (gdouble value,
gdouble lower,
gdouble upper,
diff --git a/gtk/gtkadjustment.h b/gtk/gtkadjustment.h
index 0e7cafbf30..7cac64292c 100644
--- a/gtk/gtkadjustment.h
+++ b/gtk/gtkadjustment.h
@@ -74,7 +74,7 @@ struct _GtkAdjustmentClass
GType gtk_adjustment_get_type (void) G_GNUC_CONST;
-GObject* gtk_adjustment_new (gdouble value,
+GtkAdjustment* gtk_adjustment_new (gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
diff --git a/gtk/gtkhscale.c b/gtk/gtkhscale.c
index 577493c472..a8b86e459d 100644
--- a/gtk/gtkhscale.c
+++ b/gtk/gtkhscale.c
@@ -83,7 +83,7 @@ gtk_hscale_new_with_range (gdouble min,
gdouble max,
gdouble step)
{
- GObject *adj;
+ GtkAdjustment *adj;
GtkScale *scale;
gint digits;
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index f136e7cd80..4e727a18a0 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -546,7 +546,7 @@ gtk_scale_new_with_range (GtkOrientation orientation,
gdouble max,
gdouble step)
{
- GObject *adj;
+ GtkAdjustment *adj;
gint digits;
g_return_val_if_fail (min < max, NULL);
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 60b8153a23..2de9de9e63 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -580,7 +580,7 @@ gtk_scale_button_new (GtkIconSize size,
const gchar **icons)
{
GtkScaleButton *button;
- GObject *adj;
+ GtkAdjustment *adj;
adj = gtk_adjustment_new (min, min, max, step, 10 * step, 0);
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index d7117691d7..62f5e6b8a7 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -1782,7 +1782,7 @@ gtk_spin_button_new_with_range (gdouble min,
gdouble max,
gdouble step)
{
- GObject *adj;
+ GtkAdjustment *adj;
GtkSpinButton *spin;
gint digits;
@@ -1801,7 +1801,7 @@ gtk_spin_button_new_with_range (gdouble min,
digits = MAX_DIGITS;
}
- gtk_spin_button_configure (spin, GTK_ADJUSTMENT (adj), step, digits);
+ gtk_spin_button_configure (spin, adj, step, digits);
gtk_spin_button_set_numeric (spin, TRUE);
diff --git a/gtk/gtkvolumebutton.c b/gtk/gtkvolumebutton.c
index d84358d892..a9c8703b89 100644
--- a/gtk/gtkvolumebutton.c
+++ b/gtk/gtkvolumebutton.c
@@ -69,7 +69,7 @@ static void
gtk_volume_button_init (GtkVolumeButton *button)
{
GtkScaleButton *sbutton = GTK_SCALE_BUTTON (button);
- GObject *adj;
+ GtkAdjustment *adj;
GtkWidget *minus_button, *plus_button;
const char *icons[] = {
"audio-volume-muted",
diff --git a/gtk/gtkvscale.c b/gtk/gtkvscale.c
index 5cb2856b34..af7fa4073a 100644
--- a/gtk/gtkvscale.c
+++ b/gtk/gtkvscale.c
@@ -102,7 +102,7 @@ gtk_vscale_new_with_range (gdouble min,
gdouble max,
gdouble step)
{
- GObject *adj;
+ GtkAdjustment *adj;
GtkScale *scale;
gint digits;