aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 20:02:59 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-27 19:44:28 +0800
commit3c80977a6ebe49cff9ec249e475c7da3d4f938b6 (patch)
tree2797db443af1130c3af571ba17a623c993eb840d
parentf053dfe91cd004f01a20876c51db480b3b2970cd (diff)
downloadgsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar.gz
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar.bz2
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar.lz
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar.xz
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.tar.zst
gsoc2013-empathy-3c80977a6ebe49cff9ec249e475c7da3d4f938b6.zip
move down empathy_account_chooser_class_init()
https://bugzilla.gnome.org/show_bug.cgi?id=662609
-rw-r--r--libempathy-gtk/empathy-account-chooser.c82
1 files changed, 36 insertions, 46 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index e9e8b569e..1bf8f3703 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -126,16 +126,6 @@ enum {
COL_ACCOUNT_COUNT
};
-static void account_chooser_constructed (GObject *object);
-static void account_chooser_finalize (GObject *object);
-static void account_chooser_get_property (GObject *object,
- guint param_id,
- GValue *value,
- GParamSpec *pspec);
-static void account_chooser_set_property (GObject *object,
- guint param_id,
- const GValue *value,
- GParamSpec *pspec);
static void account_chooser_setup (EmpathyAccountChooser *self);
static void account_chooser_account_validity_changed_cb (
TpAccountManager *manager,
@@ -182,42 +172,6 @@ G_DEFINE_TYPE (EmpathyAccountChooser, empathy_account_chooser,
GTK_TYPE_COMBO_BOX)
static void
-empathy_account_chooser_class_init (EmpathyAccountChooserClass *klass)
-{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- object_class->constructed = account_chooser_constructed;
- object_class->finalize = account_chooser_finalize;
- object_class->get_property = account_chooser_get_property;
- object_class->set_property = account_chooser_set_property;
-
- /**
- * EmpathyAccountChooser:has-all-option:
- *
- * Have an additional option in the list to mean all accounts.
- */
- g_object_class_install_property (object_class,
- PROP_HAS_ALL_OPTION,
- g_param_spec_boolean ("has-all-option",
- "Has All Option",
- "Have a separate option in the list to mean ALL accounts",
- FALSE,
- G_PARAM_READWRITE));
-
- signals[READY] =
- g_signal_new ("ready",
- G_OBJECT_CLASS_TYPE (object_class),
- G_SIGNAL_RUN_LAST,
- 0,
- NULL, NULL,
- g_cclosure_marshal_generic,
- G_TYPE_NONE,
- 0);
-
- g_type_class_add_private (object_class, sizeof (EmpathyAccountChooserPriv));
-}
-
-static void
empathy_account_chooser_init (EmpathyAccountChooser *self)
{
EmpathyAccountChooserPriv *priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
@@ -302,6 +256,42 @@ account_chooser_set_property (GObject *object,
};
}
+static void
+empathy_account_chooser_class_init (EmpathyAccountChooserClass *klass)
+{
+ GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+ object_class->constructed = account_chooser_constructed;
+ object_class->finalize = account_chooser_finalize;
+ object_class->get_property = account_chooser_get_property;
+ object_class->set_property = account_chooser_set_property;
+
+ /**
+ * EmpathyAccountChooser:has-all-option:
+ *
+ * Have an additional option in the list to mean all accounts.
+ */
+ g_object_class_install_property (object_class,
+ PROP_HAS_ALL_OPTION,
+ g_param_spec_boolean ("has-all-option",
+ "Has All Option",
+ "Have a separate option in the list to mean ALL accounts",
+ FALSE,
+ G_PARAM_READWRITE));
+
+ signals[READY] =
+ g_signal_new ("ready",
+ G_OBJECT_CLASS_TYPE (object_class),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 0);
+
+ g_type_class_add_private (object_class, sizeof (EmpathyAccountChooserPriv));
+}
+
/**
* empathy_account_chooser_new:
*