diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-04-13 13:20:31 +0800 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-04-13 22:23:16 +0800 |
commit | 96421ff37cd554af1ac11527bcad25cc2f2f1930 (patch) | |
tree | 3f1a0d1ded8ab241481df3eb1ae1772c137eff7f /mail/em-account-editor.c | |
parent | 7e931d4c10c0b0d06c9df571589d003e43790690 (diff) | |
download | gsoc2013-evolution-96421ff37cd554af1ac11527bcad25cc2f2f1930.tar.gz gsoc2013-evolution-96421ff37cd554af1ac11527bcad25cc2f2f1930.tar.zst gsoc2013-evolution-96421ff37cd554af1ac11527bcad25cc2f2f1930.zip |
Use accessor functions instead direct access (GSEAL work)
Still remaining:
GtkAccessible::widget
GtkAssistant::forward
GtkAssistant::back
GtkObject::flags
GtkTreeStore::stamp
The GtkAssistant fields are related to bug #596428. We don't
need accessor functions so much as the enhancement described
there implemented.
https://bugzilla.gnome.org/show_bug.cgi?id=615613
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index d3158fb48d..702e63e723 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2483,7 +2483,7 @@ emae_receive_options_item (EConfig *ec, EConfigItem *item, GtkWidget *parent, Gt { EMAccountEditor *emae = data; GtkWidget *w, *box, *spin; - gint row; + guint row; if (emae->priv->source.provider == NULL || emae->priv->source.provider->extra_conf == NULL) @@ -2509,7 +2509,7 @@ emae_receive_options_item (EConfig *ec, EConfigItem *item, GtkWidget *parent, Gt } /* We have to add the automatic mail check item with the rest of the receive options */ - row = ((GtkTable *)parent)->nrows; + g_object_get (parent, "n-rows", &row, NULL); box = gtk_hbox_new (FALSE, 4); w = gtk_check_button_new_with_mnemonic (_("Check for _new messages every")); @@ -2541,7 +2541,8 @@ emae_receive_options_extra_item (EConfig *ec, EConfigItem *eitem, GtkWidget *par GtkWidget *depw; GSList *depl = NULL, *n; EMAccountEditorService *service = &emae->priv->source; - gint row, i; + gint i; + guint row; GHashTable *extra; CamelURL *url; @@ -2569,7 +2570,7 @@ section: url = emae_account_url (emae, emae_service_info[service->type].account_uri_key); item->extra_table = g_hash_table_new (g_str_hash, g_str_equal); extra = g_hash_table_new (g_str_hash, g_str_equal); - row = ((GtkTable *)parent)->nrows; + g_object_get (parent, "n-rows", &row, NULL); for (;entries[i].type != CAMEL_PROVIDER_CONF_END && entries[i].type != CAMEL_PROVIDER_CONF_SECTION_END;i++) { if (entries[i].depname) { |