From 96421ff37cd554af1ac11527bcad25cc2f2f1930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= 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 --- capplet/settings/mail-capplet-shell.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'capplet/settings/mail-capplet-shell.c') diff --git a/capplet/settings/mail-capplet-shell.c b/capplet/settings/mail-capplet-shell.c index da22b9d0d5..3c5803b89a 100644 --- a/capplet/settings/mail-capplet-shell.c +++ b/capplet/settings/mail-capplet-shell.c @@ -267,7 +267,11 @@ mail_capplet_shell_construct (MailCappletShell *shell, gint socket_id, gboolean gint mail_capplet_shell_toolbar_height (MailCappletShell *shell) { - return shell->priv->top_bar->allocation.height; + GtkAllocation allocation; + + gtk_widget_get_allocation (shell->priv->top_bar, &allocation); + + return allocation.height; } MailCappletShell * -- cgit v1.2.3