[gimp/gtk3-port: 19/130] libgimpwidgets: s/GtkObject/GtkAdjustment/
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 19/130] libgimpwidgets: s/GtkObject/GtkAdjustment/
- Date: Fri, 19 Nov 2010 11:20:08 +0000 (UTC)
commit a20b96b78acb34602da56e0faa5412ea36f56960
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 15 11:38:40 2010 +0200
libgimpwidgets: s/GtkObject/GtkAdjustment/
libgimpwidgets/gimpscaleentry.c | 32 ++++++++--------
libgimpwidgets/gimpscaleentry.h | 78 +++++++++++++++++++-------------------
2 files changed, 55 insertions(+), 55 deletions(-)
---
diff --git a/libgimpwidgets/gimpscaleentry.c b/libgimpwidgets/gimpscaleentry.c
index 7471865..234a530 100644
--- a/libgimpwidgets/gimpscaleentry.c
+++ b/libgimpwidgets/gimpscaleentry.c
@@ -37,7 +37,7 @@ static void gimp_scale_entry_exp_adjustment_callback (GtkAdjustment *a
static void gimp_scale_entry_log_adjustment_callback (GtkAdjustment *adjustment,
GtkAdjustment *other_adj);
-static GtkObject * gimp_scale_entry_new_internal (gboolean color_scale,
+static GtkAdjustment * gimp_scale_entry_new_internal (gboolean color_scale,
GtkTable *table,
gint column,
gint row,
@@ -116,7 +116,7 @@ gimp_scale_entry_exp_adjustment_callback (GtkAdjustment *adjustment,
adjustment);
}
-static GtkObject *
+static GtkAdjustment *
gimp_scale_entry_new_internal (gboolean color_scale,
GtkTable *table,
gint column,
@@ -136,11 +136,11 @@ gimp_scale_entry_new_internal (gboolean color_scale,
const gchar *tooltip,
const gchar *help_id)
{
- GtkWidget *label;
- GtkWidget *scale;
- GtkWidget *spinbutton;
- GtkObject *adjustment;
- GtkObject *return_adj;
+ GtkWidget *label;
+ GtkWidget *scale;
+ GtkWidget *spinbutton;
+ GtkAdjustment *adjustment;
+ GtkAdjustment *return_adj;
label = gtk_label_new_with_mnemonic (text);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
@@ -153,7 +153,7 @@ gimp_scale_entry_new_internal (gboolean color_scale,
unconstrained_lower <= lower &&
unconstrained_upper >= upper)
{
- GtkObject *constrained_adj;
+ GtkAdjustment *constrained_adj;
constrained_adj = gtk_adjustment_new (value, lower, upper,
step_increment, page_increment,
@@ -270,7 +270,7 @@ gimp_scale_entry_new_internal (gboolean color_scale,
*
* Returns: The #GtkSpinButton's #GtkAdjustment.
**/
-GtkObject *
+GtkAdjustment *
gimp_scale_entry_new (GtkTable *table,
gint column,
gint row,
@@ -324,7 +324,7 @@ gimp_scale_entry_new (GtkTable *table,
*
* Returns: The #GtkSpinButton's #GtkAdjustment.
**/
-GtkObject *
+GtkAdjustment *
gimp_color_scale_entry_new (GtkTable *table,
gint column,
gint row,
@@ -364,8 +364,8 @@ gimp_color_scale_entry_new (GtkTable *table,
* Since: GIMP 2.2
**/
void
-gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
- gboolean logarithmic)
+gimp_scale_entry_set_logarithmic (GtkAdjustment *adjustment,
+ gboolean logarithmic)
{
GtkAdjustment *adj;
GtkAdjustment *scale_adj;
@@ -401,7 +401,7 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
if (scale_adj == adj)
{
- GtkObject *new_adj;
+ GtkAdjustment *new_adj;
new_adj = gtk_adjustment_new (gtk_adjustment_get_value (scale_adj),
gtk_adjustment_get_lower (scale_adj),
@@ -491,7 +491,7 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
* Since: GIMP 2.2
**/
gboolean
-gimp_scale_entry_get_logarithmic (GtkObject *adjustment)
+gimp_scale_entry_get_logarithmic (GtkAdjustment *adjustment)
{
return GPOINTER_TO_INT (g_object_get_data (G_OBJECT (adjustment),
"logarithmic"));
@@ -507,8 +507,8 @@ gimp_scale_entry_get_logarithmic (GtkObject *adjustment)
* #GtkSpinButton.
**/
void
-gimp_scale_entry_set_sensitive (GtkObject *adjustment,
- gboolean sensitive)
+gimp_scale_entry_set_sensitive (GtkAdjustment *adjustment,
+ gboolean sensitive)
{
GtkWidget *widget;
diff --git a/libgimpwidgets/gimpscaleentry.h b/libgimpwidgets/gimpscaleentry.h
index 3ef65f6..2a0ce68 100644
--- a/libgimpwidgets/gimpscaleentry.h
+++ b/libgimpwidgets/gimpscaleentry.h
@@ -74,45 +74,45 @@ G_BEGIN_DECLS
(GTK_SPIN_BUTTON (g_object_get_data (G_OBJECT (adj), "spinbutton")))
-GtkObject * gimp_scale_entry_new (GtkTable *table,
- gint column,
- gint row,
- const gchar *text,
- gint scale_width,
- gint spinbutton_width,
- gdouble value,
- gdouble lower,
- gdouble upper,
- gdouble step_increment,
- gdouble page_increment,
- guint digits,
- gboolean constrain,
- gdouble unconstrained_lower,
- gdouble unconstrained_upper,
- const gchar *tooltip,
- const gchar *help_id);
-
-GtkObject * gimp_color_scale_entry_new (GtkTable *table,
- gint column,
- gint row,
- const gchar *text,
- gint scale_width,
- gint spinbutton_width,
- gdouble value,
- gdouble lower,
- gdouble upper,
- gdouble step_increment,
- gdouble page_increment,
- guint digits,
- const gchar *tooltip,
- const gchar *help_id);
-
-void gimp_scale_entry_set_sensitive (GtkObject *adjustment,
- gboolean sensitive);
-
-void gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
- gboolean logarithmic);
-gboolean gimp_scale_entry_get_logarithmic (GtkObject *adjustment);
+GtkAdjustment * gimp_scale_entry_new (GtkTable *table,
+ gint column,
+ gint row,
+ const gchar *text,
+ gint scale_width,
+ gint spinbutton_width,
+ gdouble value,
+ gdouble lower,
+ gdouble upper,
+ gdouble step_increment,
+ gdouble page_increment,
+ guint digits,
+ gboolean constrain,
+ gdouble unconstrained_lower,
+ gdouble unconstrained_upper,
+ const gchar *tooltip,
+ const gchar *help_id);
+
+GtkAdjustment * gimp_color_scale_entry_new (GtkTable *table,
+ gint column,
+ gint row,
+ const gchar *text,
+ gint scale_width,
+ gint spinbutton_width,
+ gdouble value,
+ gdouble lower,
+ gdouble upper,
+ gdouble step_increment,
+ gdouble page_increment,
+ guint digits,
+ const gchar *tooltip,
+ const gchar *help_id);
+
+void gimp_scale_entry_set_sensitive (GtkAdjustment *adjustment,
+ gboolean sensitive);
+
+void gimp_scale_entry_set_logarithmic (GtkAdjustment *adjustment,
+ gboolean logarithmic);
+gboolean gimp_scale_entry_get_logarithmic (GtkAdjustment *adjustment);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]