aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sa-junk-plugin
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-04-13 13:20:31 +0800
committerJavier Jardón <jjardon@gnome.org>2010-04-13 22:23:16 +0800
commit96421ff37cd554af1ac11527bcad25cc2f2f1930 (patch)
tree3f1a0d1ded8ab241481df3eb1ae1772c137eff7f /plugins/sa-junk-plugin
parent7e931d4c10c0b0d06c9df571589d003e43790690 (diff)
downloadgsoc2013-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 'plugins/sa-junk-plugin')
-rw-r--r--plugins/sa-junk-plugin/em-junk-filter.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c
index 15b323424b..7db6b6813d 100644
--- a/plugins/sa-junk-plugin/em-junk-filter.c
+++ b/plugins/sa-junk-plugin/em-junk-filter.c
@@ -922,7 +922,9 @@ org_gnome_sa_use_remote_tests (struct _EPlugin *epl, struct _EConfigHookItemFact
{
GtkWidget *check, *vbox, *label;
gchar *text = g_strdup_printf (" <small>%s</small>", _("This will make SpamAssassin more reliable, but slower"));
- guint i = ((GtkTable *)data->parent)->nrows;
+ guint n_rows;
+
+ g_object_get (data->parent, "n-rows", &n_rows, NULL);
if (data->old)
return data->old;
@@ -937,7 +939,9 @@ org_gnome_sa_use_remote_tests (struct _EPlugin *epl, struct _EConfigHookItemFact
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), !em_junk_sa_local_only);
g_signal_connect (GTK_TOGGLE_BUTTON (check), "toggled", G_CALLBACK (use_remote_tests_cb), (gpointer) "/apps/evolution/mail/junk/sa/local_only");
- gtk_table_attach((GtkTable *)data->parent, vbox, 0, 1, i, i+1, 0, 0, 0, 0);
+ gtk_table_attach (GTK_TABLE (data->parent), vbox,
+ 0, 1, n_rows, n_rows+1,
+ 0, 0, 0, 0);
gtk_widget_show_all (vbox);
return (GtkWidget *)vbox;
}