[goffice] gtl: Avoid GtkObject.



commit 5c01c3a757a2fcff54dd19c48de90fce4e2fa5d4
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 4 13:06:35 2011 -0400

    gtl: Avoid GtkObject.

 goffice/gtk/go-format-sel.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/goffice/gtk/go-format-sel.c b/goffice/gtk/go-format-sel.c
index fd7c510..c0c4224 100644
--- a/goffice/gtk/go-format-sel.c
+++ b/goffice/gtk/go-format-sel.c
@@ -291,10 +291,10 @@ cb_decimals_changed (GtkSpinButton *spin, GOFormatSel *gfs)
 }
 
 static void
-cb_separator_toggle (GtkObject *obj, GOFormatSel *gfs)
+cb_separator_toggle (GtkWidget *w, GOFormatSel *gfs)
 {
 	gfs->format.details.thousands_sep =
-		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (obj));
+		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w));
 
 	if (gtk_widget_get_visible (gfs->format.widget[F_NEGATIVE]))
 		fillin_negative_samples (gfs);
@@ -303,9 +303,9 @@ cb_separator_toggle (GtkObject *obj, GOFormatSel *gfs)
 }
 
 static void
-cb_engineering_toggle (GtkObject *obj, GOFormatSel *gfs)
+cb_engineering_toggle (GtkWidget *w, GOFormatSel *gfs)
 {
-	if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (obj)))
+	if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w)))
 		gfs->format.details.exponent_step = 3;
 	else
 		gfs->format.details.exponent_step = 1;
@@ -314,10 +314,10 @@ cb_engineering_toggle (GtkObject *obj, GOFormatSel *gfs)
 }
 
 static void
-cb_superscript_toggle (GtkObject *obj, GOFormatSel *gfs)
+cb_superscript_toggle (GtkWidget *w, GOFormatSel *gfs)
 {
 	gfs->format.details.use_markup =
-		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (obj));
+		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w));
 	gtk_widget_set_sensitive (gfs->format.widget[F_SUPERSCRIPT_HIDE_1_BUTTON],
 				  gfs->format.details.use_markup);
 
@@ -325,10 +325,10 @@ cb_superscript_toggle (GtkObject *obj, GOFormatSel *gfs)
 }
 
 static void
-cb_superscript_hide_1_toggle (GtkObject *obj, GOFormatSel *gfs)
+cb_superscript_hide_1_toggle (GtkWidget *w, GOFormatSel *gfs)
 {
 	gfs->format.details.simplify_mantissa =
-		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (obj));
+		gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w));
 
 	draw_format_preview (gfs, TRUE);
 }



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