diff options
Diffstat (limited to 'widgets/misc/e-account-combo-box.c')
-rw-r--r-- | widgets/misc/e-account-combo-box.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/widgets/misc/e-account-combo-box.c b/widgets/misc/e-account-combo-box.c index a649df5f8b..9c750f9ec4 100644 --- a/widgets/misc/e-account-combo-box.c +++ b/widgets/misc/e-account-combo-box.c @@ -27,6 +27,10 @@ #include <string.h> +#define E_ACCOUNT_COMBO_BOX_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE \ + ((obj), E_TYPE_ACCOUNT_COMBO_BOX, EAccountComboBoxPrivate)) + enum { COLUMN_STRING, COLUMN_ACCOUNT @@ -255,7 +259,7 @@ account_combo_box_dispose (GObject *object) { EAccountComboBoxPrivate *priv; - priv = E_ACCOUNT_COMBO_BOX (object)->priv; + priv = E_ACCOUNT_COMBO_BOX_GET_PRIVATE (object); if (priv->account_list != NULL) { g_signal_handlers_disconnect_by_func ( @@ -276,7 +280,7 @@ account_combo_box_finalize (GObject *object) { EAccountComboBoxPrivate *priv; - priv = E_ACCOUNT_COMBO_BOX (object)->priv; + priv = E_ACCOUNT_COMBO_BOX_GET_PRIVATE (object); g_hash_table_destroy (priv->index); @@ -316,8 +320,7 @@ e_account_combo_box_init (EAccountComboBox *combo_box) (GDestroyNotify) g_object_unref, (GDestroyNotify) gtk_tree_row_reference_free); - combo_box->priv = G_TYPE_INSTANCE_GET_PRIVATE ( - combo_box, E_TYPE_ACCOUNT_COMBO_BOX, EAccountComboBoxPrivate); + combo_box->priv = E_ACCOUNT_COMBO_BOX_GET_PRIVATE (combo_box); combo_box->priv->index = index; } @@ -364,7 +367,7 @@ e_account_combo_box_set_account_list (EAccountComboBox *combo_box, if (account_list != NULL) g_return_if_fail (E_IS_ACCOUNT_LIST (account_list)); - priv = combo_box->priv; + priv = E_ACCOUNT_COMBO_BOX_GET_PRIVATE (combo_box); if (priv->account_list != NULL) { g_signal_handlers_disconnect_by_func ( |