[gimp/gtk3-port: 93/228] app: s/GtkObject/GtkAdjustment/ in the new spin scale prop widgets
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 93/228] app: s/GtkObject/GtkAdjustment/ in the new spin scale prop widgets
- Date: Fri, 4 May 2012 15:29:41 +0000 (UTC)
commit c3e0e46af0790a172d4988900332e37cad4e4a2e
Author: Michael Natterer <mitch gimp org>
Date: Tue Nov 2 18:59:26 2010 +0100
app: s/GtkObject/GtkAdjustment/ in the new spin scale prop widgets
app/widgets/gimppropwidgets.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/app/widgets/gimppropwidgets.c b/app/widgets/gimppropwidgets.c
index ac0fe81..acfb868 100644
--- a/app/widgets/gimppropwidgets.c
+++ b/app/widgets/gimppropwidgets.c
@@ -483,12 +483,12 @@ gimp_prop_spin_scale_new (GObject *config,
gdouble page_increment,
gint digits)
{
- GParamSpec *param_spec;
- GtkObject *adjustment;
- GtkWidget *scale;
- gdouble value;
- gdouble lower;
- gdouble upper;
+ GParamSpec *param_spec;
+ GtkAdjustment *adjustment;
+ GtkWidget *scale;
+ gdouble value;
+ gdouble lower;
+ gdouble upper;
param_spec = find_param_spec (config, property_name, G_STRFUNC);
if (! param_spec)
@@ -504,7 +504,7 @@ gimp_prop_spin_scale_new (GObject *config,
adjustment = gtk_adjustment_new (value, lower, upper,
step_increment, page_increment, 0.0);
- scale = gimp_spin_scale_new (GTK_ADJUSTMENT (adjustment), label, digits);
+ scale = gimp_spin_scale_new (adjustment, label, digits);
set_param_spec (G_OBJECT (adjustment), scale, param_spec);
@@ -553,12 +553,12 @@ gimp_prop_opacity_spin_scale_new (GObject *config,
const gchar *property_name,
const gchar *label)
{
- GParamSpec *param_spec;
- GtkObject *adjustment;
- GtkWidget *scale;
- gdouble value;
- gdouble lower;
- gdouble upper;
+ GParamSpec *param_spec;
+ GtkAdjustment *adjustment;
+ GtkWidget *scale;
+ gdouble value;
+ gdouble lower;
+ gdouble upper;
param_spec = check_param_spec_w (config, property_name,
G_TYPE_PARAM_DOUBLE, G_STRFUNC);
@@ -573,7 +573,7 @@ gimp_prop_opacity_spin_scale_new (GObject *config,
adjustment = gtk_adjustment_new (value, lower, upper, 1.0, 10.0, 0.0);
- scale = gimp_spin_scale_new (GTK_ADJUSTMENT (adjustment), label, 1);
+ scale = gimp_spin_scale_new (adjustment, label, 1);
set_param_spec (G_OBJECT (adjustment), scale, param_spec);
g_object_set_data (G_OBJECT (adjustment),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]