diff options
author | JP Rosevear <jpr@novell.com> | 2004-11-26 23:15:36 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-11-26 23:15:36 +0800 |
commit | ba0bc7dff09ade6b8014183c44c4c44b42ed1396 (patch) | |
tree | 0394c1dde4cb58e40b4694e0a486f5e37f147750 /widgets/misc/e-cell-percent.c | |
parent | f484ce17b3651e8d741e789621f59baef1652974 (diff) | |
download | gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.tar.gz gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.tar.zst gsoc2013-evolution-ba0bc7dff09ade6b8014183c44c4c44b42ed1396.zip |
test prog
2004-11-26 JP Rosevear <jpr@novell.com>
* test-info-label.c: test prog
* e-url-entry.c: get image directly from icon factory
* e-combo-button.c: ditto; convert to G_DEFINE_TYPE
* e-activity-handler.c: convert to G_DEFINE_TYPE
* e-task-widget.c: ditto
* e-task-bar.c: ditto
* e-multi-config-dialog.c: ditto
* e-dropdown-button.c: ditto
* e-cell-renderer-combo.c: ditto
* e-cell-date-edit.c: ditto
* e-calendar.c: ditto
* e-calendar-item.c: ditto
* Makefile.am: don't build the title bar, build an info label test
program
svn path=/trunk/; revision=27999
Diffstat (limited to 'widgets/misc/e-cell-percent.c')
-rw-r--r-- | widgets/misc/e-cell-percent.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/widgets/misc/e-cell-percent.c b/widgets/misc/e-cell-percent.c index 82ab3a72f8..b2ccf1def9 100644 --- a/widgets/misc/e-cell-percent.c +++ b/widgets/misc/e-cell-percent.c @@ -26,22 +26,21 @@ * in an ETable. */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif #include <ctype.h> #include <sys/time.h> #include <unistd.h> #include <stdio.h> -#include <gal/util/e-util.h> #include <libgnomeui/gnome-messagebox.h> #include <libgnome/gnome-i18n.h> #include "e-cell-percent.h" -#define PARENT_TYPE e_cell_text_get_type () - -static ECellTextClass *parent_class; +G_DEFINE_TYPE (ECellPercent, e_cell_percent, E_CELL_TEXT_TYPE); static char * @@ -115,11 +114,9 @@ ecp_set_value (ECellText *cell, ETableModel *model, int col, int row, } static void -e_cell_percent_class_init (GtkObjectClass *object_class) +e_cell_percent_class_init (ECellPercentClass *ecpc) { - ECellTextClass *ectc = (ECellTextClass *) object_class; - - parent_class = g_type_class_ref(PARENT_TYPE); + ECellTextClass *ectc = (ECellTextClass *) ecpc; ectc->get_text = ecp_get_text; ectc->free_text = ecp_free_text; @@ -127,7 +124,7 @@ e_cell_percent_class_init (GtkObjectClass *object_class) } static void -e_cell_percent_init (GtkObject *object) +e_cell_percent_init (ECellPercent *ecp) { } @@ -153,6 +150,3 @@ e_cell_percent_new (const char *fontname, GtkJustification justify) return (ECell *) ecn; } - -E_MAKE_TYPE (e_cell_percent, "ECellPercent", ECellPercent, - e_cell_percent_class_init, e_cell_percent_init, PARENT_TYPE); |