From 0a8696393ef5b5166330b78ffd1c269e787aca05 Mon Sep 17 00:00:00 2001 From: Arne Zellentin Date: Thu, 22 Jun 2006 14:49:55 +0000 Subject: [PATCH] * 2 bugs fixed, why didn't the compiler complain? pmo-trunk-r334 --- src/gtk-glade/modest-ui-message-editor.c | 2 +- src/hildon/modest-ui-message-editor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk-glade/modest-ui-message-editor.c b/src/gtk-glade/modest-ui-message-editor.c index ba20a8d..bf1b630 100644 --- a/src/gtk-glade/modest-ui-message-editor.c +++ b/src/gtk-glade/modest-ui-message-editor.c @@ -327,7 +327,7 @@ new_editor_with_presets (ModestUI *modest_ui, const gchar *to_header, void on_new_mail_clicked (GtkWidget *widget, gpointer user_data) { - ModestUI *modest_ui = (ModestUI *) modest_ui; + ModestUI *modest_ui = (ModestUI *) user_data; new_editor_with_presets(modest_ui, "", "", "", "", "", NULL); } diff --git a/src/hildon/modest-ui-message-editor.c b/src/hildon/modest-ui-message-editor.c index f67e860..81a1a76 100644 --- a/src/hildon/modest-ui-message-editor.c +++ b/src/hildon/modest-ui-message-editor.c @@ -327,7 +327,7 @@ new_editor_with_presets (ModestUI *modest_ui, const gchar *to_header, void on_new_mail_clicked (GtkWidget *widget, gpointer user_data) { - ModestUI *modest_ui = (ModestUI *) modest_ui; + ModestUI *modest_ui = (ModestUI *) user_data; new_editor_with_presets(modest_ui, "", "", "", "", "", NULL); } -- 1.7.9.5