[gtk+] spinner: Move G_DEFINE_TYPE() below function definitions
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] spinner: Move G_DEFINE_TYPE() below function definitions
- Date: Mon, 13 Sep 2010 23:29:10 +0000 (UTC)
commit c22b80949dd58474b508fbce399852909edd15ea
Author: Benjamin Otte <otte redhat com>
Date: Tue Sep 14 01:19:48 2010 +0200
spinner: Move G_DEFINE_TYPE() below function definitions
Also remove redundant double definition.
gtk/gtkspinner.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c
index 7f4233f..be85995 100644
--- a/gtk/gtkspinner.c
+++ b/gtk/gtkspinner.c
@@ -53,8 +53,6 @@
*/
-G_DEFINE_TYPE (GtkSpinner, gtk_spinner, GTK_TYPE_DRAWING_AREA);
-
#define SPINNER_SIZE 12
enum {
@@ -71,8 +69,6 @@ struct _GtkSpinnerPrivate
guint timeout;
};
-static void gtk_spinner_class_init (GtkSpinnerClass *klass);
-static void gtk_spinner_init (GtkSpinner *spinner);
static void gtk_spinner_dispose (GObject *gobject);
static void gtk_spinner_realize (GtkWidget *widget);
static void gtk_spinner_unrealize (GtkWidget *widget);
@@ -95,6 +91,8 @@ static void gtk_spinner_set_active (GtkSpinner *spinner,
static AtkObject *gtk_spinner_get_accessible (GtkWidget *widget);
static GType gtk_spinner_accessible_get_type (void);
+G_DEFINE_TYPE (GtkSpinner, gtk_spinner, GTK_TYPE_DRAWING_AREA);
+
static void
gtk_spinner_class_init (GtkSpinnerClass *klass)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]