From 14e17c5d312d18ba25fa19d49386fa8782f6acb7 Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Wed, 26 Nov 2008 10:05:09 +0000 Subject: [PATCH] Move create_container to constructor in details dialog. This is because the instance_init does not warranty that the class pointer is the final one. In fact, we were getting scrolleds because of this. pmo-trunk-r6408 --- src/hildon2/modest-hildon2-details-dialog.c | 2 ++ src/widgets/modest-details-dialog.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-hildon2-details-dialog.c b/src/hildon2/modest-hildon2-details-dialog.c index d3595be..52079c5 100644 --- a/src/hildon2/modest-hildon2-details-dialog.c +++ b/src/hildon2/modest-hildon2-details-dialog.c @@ -99,6 +99,7 @@ modest_hildon2_details_dialog_new_with_header (GtkWindow *parent, "transient-for", parent, NULL)); + MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->create_container_func (dialog); MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->set_header_func (dialog, header); return GTK_WIDGET (dialog); @@ -117,6 +118,7 @@ modest_hildon2_details_dialog_new_with_folder (GtkWindow *parent, "transient-for", parent, NULL)); + MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->create_container_func (dialog); MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->set_folder_func (dialog, folder); return GTK_WIDGET (dialog); diff --git a/src/widgets/modest-details-dialog.c b/src/widgets/modest-details-dialog.c index 9a14c10..21cdbf2 100644 --- a/src/widgets/modest-details-dialog.c +++ b/src/widgets/modest-details-dialog.c @@ -95,7 +95,6 @@ modest_details_dialog_class_init (ModestDetailsDialogClass *klass) static void modest_details_dialog_init (ModestDetailsDialog *self) { - MODEST_DETAILS_DIALOG_GET_CLASS (self)->create_container_func (self); } GtkWidget* @@ -111,6 +110,7 @@ modest_details_dialog_new_with_header (GtkWindow *parent, "transient-for", parent, NULL)); + MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->create_container_func (dialog); MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->set_header_func (dialog, header); /* Add close button */ @@ -132,6 +132,7 @@ modest_details_dialog_new_with_folder (GtkWindow *parent, "transient-for", parent, NULL)); + MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->create_container_func (dialog); MODEST_DETAILS_DIALOG_GET_CLASS (dialog)->set_folder_func (dialog, folder); /* Add close button */ -- 1.7.9.5