aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog8
-rw-r--r--widgets/misc/e-cell-percent.c2
-rw-r--r--widgets/misc/e-cell-percent.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index f6ce7c1348..9a79b5e70a 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,11 @@
+2003-04-06 Chris Toshok <toshok@ximian.com>
+
+ * e-cell-percent.h: e_cell_percent_get_type returns GType, not
+ GtkType.
+
+ * e-cell-percent.c (e_cell_percent_new): use g_object_new, not
+ gtk_object_new.
+
2003-04-02 Hans Petter Jansson <hpj@ximian.com>
* e-calendar-item.c (e_calendar_item_set_selection): For example;
diff --git a/widgets/misc/e-cell-percent.c b/widgets/misc/e-cell-percent.c
index e2e6ae6b6b..82ab3a72f8 100644
--- a/widgets/misc/e-cell-percent.c
+++ b/widgets/misc/e-cell-percent.c
@@ -147,7 +147,7 @@ e_cell_percent_init (GtkObject *object)
ECell *
e_cell_percent_new (const char *fontname, GtkJustification justify)
{
- ECellPercent *ecn = gtk_type_new (e_cell_percent_get_type ());
+ ECellPercent *ecn = g_object_new (E_CELL_PERCENT_TYPE, NULL);
e_cell_text_construct (E_CELL_TEXT(ecn), fontname, justify);
diff --git a/widgets/misc/e-cell-percent.h b/widgets/misc/e-cell-percent.h
index 74f56ae225..6207e0c878 100644
--- a/widgets/misc/e-cell-percent.h
+++ b/widgets/misc/e-cell-percent.h
@@ -45,7 +45,7 @@ typedef struct {
ECellTextClass parent_class;
} ECellPercentClass;
-GtkType e_cell_percent_get_type (void);
+GType e_cell_percent_get_type (void);
ECell *e_cell_percent_new (const char *fontname, GtkJustification justify);
#endif /* _E_CELL_PERCENT_H_ */