From 96421ff37cd554af1ac11527bcad25cc2f2f1930 Mon Sep 17 00:00:00 2001 From: Javier Jardón Date: Tue, 13 Apr 2010 07:20:31 +0200 Subject: 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 --- addressbook/gui/contact-editor/e-contact-editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 3194eec943..ba7ff79ee8 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -1191,7 +1191,8 @@ expand_mail (EContactEditor *editor, gboolean expanded) table = GTK_TABLE (e_builder_get_widget (editor->builder, "email-table")); if (check != NULL && table != NULL) { g_object_ref (G_OBJECT (check)); - gtk_container_remove (GTK_CONTAINER (check->parent), check); + gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (check)), + check); if (expanded) gtk_table_attach_defaults (table, check, 0, 4, 2, 3); else -- cgit