summaryrefslogtreecommitdiff
path: root/gtk/gtkprogressbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-05-02 23:56:43 +0000
commitf26aad1916445d25c99878138dfc384de67a2060 (patch)
treeb72263ecb326e82a49f1e8d1871ec4288b8aa299 /gtk/gtkprogressbar.c
parent33cddd12d78abb2efe6facba9c859017f8df9819 (diff)
downloadgtk+-f26aad1916445d25c99878138dfc384de67a2060.tar.gz
Boilerplate reduction
Diffstat (limited to 'gtk/gtkprogressbar.c')
-rw-r--r--gtk/gtkprogressbar.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/gtk/gtkprogressbar.c b/gtk/gtkprogressbar.c
index 75edf5f810..27e31d3860 100644
--- a/gtk/gtkprogressbar.c
+++ b/gtk/gtkprogressbar.c
@@ -65,8 +65,6 @@ enum {
PROP_DISCRETE_BLOCKS
};
-static void gtk_progress_bar_class_init (GtkProgressBarClass *klass);
-static void gtk_progress_bar_init (GtkProgressBar *pbar);
static void gtk_progress_bar_set_property (GObject *object,
guint prop_id,
const GValue *value,
@@ -91,33 +89,7 @@ static void gtk_progress_bar_set_activity_blocks_internal (GtkProgressBar *pbar,
guint blocks);
-GType
-gtk_progress_bar_get_type (void)
-{
- static GType progress_bar_type = 0;
-
- if (!progress_bar_type)
- {
- static const GTypeInfo progress_bar_info =
- {
- sizeof (GtkProgressBarClass),
- NULL, /* base_init */
- NULL, /* base_finalize */
- (GClassInitFunc) gtk_progress_bar_class_init,
- NULL, /* class_finalize */
- NULL, /* class_data */
- sizeof (GtkProgressBar),
- 0, /* n_preallocs */
- (GInstanceInitFunc) gtk_progress_bar_init,
- };
-
- progress_bar_type =
- g_type_register_static (GTK_TYPE_PROGRESS, I_("GtkProgressBar"),
- &progress_bar_info, 0);
- }
-
- return progress_bar_type;
-}
+G_DEFINE_TYPE (GtkProgressBar, gtk_progress_bar, GTK_TYPE_PROGRESS);
static void
gtk_progress_bar_class_init (GtkProgressBarClass *class)