[evolution-mapi] Compile with -DGSEAL_ENABLE. Fixes bug 615265.



commit abe8dade5d7573ca47f22569cab0ba95882d182f
Author: Andre Klapper <a9016009 gmx de>
Date:   Sun Apr 11 00:55:01 2010 +0200

    Compile with -DGSEAL_ENABLE. Fixes bug 615265.

 configure.ac                                       |    1 +
 .../exchange-mapi-account-setup.c                  |    6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index eebe1c1..a3f8082 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ AS_COMPILER_FLAGS(WARNING_FLAGS,
 	-DGDK_PIXBUF_DISABLE_DEPRECATED
 	-DGTK_DISABLE_DEPRECATED
 	-DGNOME_DISABLE_DEPRECATED
+	-DGSEAL_ENABLE
 	-Wall -Wextra
 	-Wno-missing-field-initializers
 	-Wno-sign-compare
diff --git a/src/account-setup-eplugin/exchange-mapi-account-setup.c b/src/account-setup-eplugin/exchange-mapi-account-setup.c
index b98a3b1..76b0738 100644
--- a/src/account-setup-eplugin/exchange-mapi-account-setup.c
+++ b/src/account-setup-eplugin/exchange-mapi-account-setup.c
@@ -316,6 +316,7 @@ org_gnome_exchange_mapi_account_setup (EPlugin *epl, EConfigHookItemFactoryData
 	EMConfigTargetAccount *target_account;
 	CamelURL *url;
 	GtkWidget *hbox = NULL;
+	gint row;
 
 	target_account = (EMConfigTargetAccount *)data->config->target;
 	url = camel_url_new(e_account_get_string(target_account->account, E_ACCOUNT_SOURCE_URL), NULL);
@@ -329,7 +330,7 @@ org_gnome_exchange_mapi_account_setup (EPlugin *epl, EConfigHookItemFactoryData
 		GtkWidget *domain_name;
 		GtkWidget *auth_button;
 		const gchar *domain_value = camel_url_get_param (url, "domain");
-		gint row = ((GtkTable *)data->parent)->nrows;
+		g_object_get (data->parent, "n-rows", &row, NULL);
 
 		/* Domain name & Authenticate Button */
 		hbox = gtk_hbox_new (FALSE, 6);
@@ -480,6 +481,7 @@ exchange_mapi_create (EPlugin *epl, EConfigHookItemFactoryData *data)
 	EABConfigTargetSource *t = (EABConfigTargetSource *) data->target;
 	ESource *source = t->source;
 	gchar *uri_text;
+	gint row;
 	GtkCellRenderer *rcell;
 	GtkTreeStore *ts;
 	GtkTreeViewColumn *tvc;
@@ -508,7 +510,7 @@ exchange_mapi_create (EPlugin *epl, EConfigHookItemFactoryData *data)
 	vbox = gtk_vbox_new (FALSE, 6);
 
 	if (!strcmp (data->config->id, "org.gnome.evolution.calendar.calendarProperties")) {
-		gint row = ((GtkTable*) data->parent)->nrows;
+		g_object_get (data->parent, "n-rows", &row, NULL);
 		gtk_table_attach (GTK_TABLE (data->parent), vbox, 0, 2, row+1, row+2, GTK_FILL|GTK_EXPAND, 0, 0, 0);
 	} else if (!strcmp (data->config->id, "com.novell.evolution.addressbook.config.accountEditor")) {
 		gtk_container_add (GTK_CONTAINER (data->parent), vbox);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]