aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-charset-combo-box.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2014-02-16 22:36:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2014-03-03 08:36:01 +0800
commitc53fbc0b8f3b98827d6816a627bdd4d467b84f74 (patch)
tree10eb8683b6d413f9ae6946dcaf303c29027a84ef /e-util/e-charset-combo-box.c
parent1e3d8b5c68754c377c54423f1fb9a322eb3ec9e8 (diff)
downloadgsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.gz
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.bz2
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.lz
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.xz
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.tar.zst
gsoc2013-evolution-c53fbc0b8f3b98827d6816a627bdd4d467b84f74.zip
Miscellaneous cleanups.
Diffstat (limited to 'e-util/e-charset-combo-box.c')
-rw-r--r--e-util/e-charset-combo-box.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/e-util/e-charset-combo-box.c b/e-util/e-charset-combo-box.c
index ececac3c1a..240c28582f 100644
--- a/e-util/e-charset-combo-box.c
+++ b/e-util/e-charset-combo-box.c
@@ -220,32 +220,6 @@ charset_combo_box_get_property (GObject *object,
}
static void
-charset_combo_box_constructed (GObject *object)
-{
- ECharsetComboBoxPrivate *priv;
- GtkRadioAction *radio_action;
- GSList *group;
-
- priv = E_CHARSET_COMBO_BOX_GET_PRIVATE (object);
-
- /* Chain up to parent's constructed() method. */
- G_OBJECT_CLASS (e_charset_combo_box_parent_class)->constructed (object);
-
- radio_action = priv->other_action;
- group = gtk_radio_action_get_group (radio_action);
-
- e_action_combo_box_set_action (
- E_ACTION_COMBO_BOX (object), radio_action);
-
- e_action_combo_box_add_separator_after (
- E_ACTION_COMBO_BOX (object), g_slist_length (group));
-
- g_signal_connect (
- object, "notify::charset",
- G_CALLBACK (charset_combo_box_notify_charset_cb), NULL);
-}
-
-static void
charset_combo_box_dispose (GObject *object)
{
ECharsetComboBoxPrivate *priv;
@@ -282,6 +256,32 @@ charset_combo_box_finalize (GObject *object)
}
static void
+charset_combo_box_constructed (GObject *object)
+{
+ ECharsetComboBoxPrivate *priv;
+ GtkRadioAction *radio_action;
+ GSList *group;
+
+ priv = E_CHARSET_COMBO_BOX_GET_PRIVATE (object);
+
+ /* Chain up to parent's constructed() method. */
+ G_OBJECT_CLASS (e_charset_combo_box_parent_class)->constructed (object);
+
+ radio_action = priv->other_action;
+ group = gtk_radio_action_get_group (radio_action);
+
+ e_action_combo_box_set_action (
+ E_ACTION_COMBO_BOX (object), radio_action);
+
+ e_action_combo_box_add_separator_after (
+ E_ACTION_COMBO_BOX (object), g_slist_length (group));
+
+ g_signal_connect (
+ object, "notify::charset",
+ G_CALLBACK (charset_combo_box_notify_charset_cb), NULL);
+}
+
+static void
charset_combo_box_changed (GtkComboBox *combo_box)
{
ECharsetComboBoxPrivate *priv;
@@ -308,9 +308,9 @@ e_charset_combo_box_class_init (ECharsetComboBoxClass *class)
object_class = G_OBJECT_CLASS (class);
object_class->set_property = charset_combo_box_set_property;
object_class->get_property = charset_combo_box_get_property;
- object_class->constructed = charset_combo_box_constructed;
object_class->dispose = charset_combo_box_dispose;
object_class->finalize = charset_combo_box_finalize;
+ object_class->constructed = charset_combo_box_constructed;
combo_box_class = GTK_COMBO_BOX_CLASS (class);
combo_box_class->changed = charset_combo_box_changed;