aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-13 21:33:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-13 21:33:38 +0800
commitf425fdc8e2a68fe6fece41ee0684ced30cebc1ed (patch)
tree91c5da26d2aa04b4281eec841a7b475c372527e8 /mail/em-composer-utils.c
parent0d6061a4ebf34cbe4f640e755372c38bd698ed25 (diff)
downloadgsoc2013-evolution-f425fdc8e2a68fe6fece41ee0684ced30cebc1ed.tar.gz
gsoc2013-evolution-f425fdc8e2a68fe6fece41ee0684ced30cebc1ed.tar.zst
gsoc2013-evolution-f425fdc8e2a68fe6fece41ee0684ced30cebc1ed.zip
Fix some issues when building Anjal.
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r--mail/em-composer-utils.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 40abdcf37d..ce72600ed4 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -734,7 +734,7 @@ em_utils_compose_lite_new_message (const gchar *fromuri)
* window. If @url is non-NULL, the composer fields will be filled in
* according to the values in the mailto url.
**/
-void
+EMsgComposer *
em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri)
{
EMsgComposer *composer;
@@ -754,8 +754,12 @@ em_utils_compose_new_message_with_mailto (const gchar *url, const gchar *fromuri
composer_set_no_change (composer, TRUE, url == NULL);
- gtk_widget_show ((GtkWidget *) composer);
- gdk_window_raise (((GtkWidget *) composer)->window);
+ if (!e_msg_composer_get_lite ()) {
+ gtk_widget_show ((GtkWidget *) composer);
+ gdk_window_raise (((GtkWidget *) composer)->window);
+ }
+
+ return composer;
}
/* Editing messages... */