* 2 bugs fixed, why didn't the compiler complain?
authorArne Zellentin <arne@kernelconcepts.de>
Thu, 22 Jun 2006 14:49:55 +0000 (14:49 +0000)
committerArne Zellentin <arne@kernelconcepts.de>
Thu, 22 Jun 2006 14:49:55 +0000 (14:49 +0000)
pmo-trunk-r334

src/gtk-glade/modest-ui-message-editor.c
src/hildon/modest-ui-message-editor.c

index ba20a8d..bf1b630 100644 (file)
@@ -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)
 {
 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);
 }
 
        new_editor_with_presets(modest_ui, "", "", "", "", "", NULL);
 }
index f67e860..81a1a76 100644 (file)
@@ -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)
 {
 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);
 }
 
        new_editor_with_presets(modest_ui, "", "", "", "", "", NULL);
 }