aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-20 18:56:06 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-20 20:06:19 +0800
commit5d0878967ee21a039ef599222b1cf3eb606354d4 (patch)
tree790cfcbf63fea7292740f182dd612ab20244f6e8 /composer
parentf5f2132d60cdd1884c6343f759aadfd38a159e04 (diff)
downloadgsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.gz
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.tar.zst
gsoc2013-evolution-5d0878967ee21a039ef599222b1cf3eb606354d4.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'composer')
-rw-r--r--composer/e-msg-composer.c27
1 files changed, 19 insertions, 8 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index d2e60ccc1e..21f508d8d1 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1710,27 +1710,36 @@ msg_composer_delete_event_cb (GtkWidget *widget, gpointer user_data)
}
static void
-msg_composer_prepare_for_quit_cb (EShell *shell, EActivity *activity, EMsgComposer *composer)
+msg_composer_prepare_for_quit_cb (EShell *shell,
+ EActivity *activity,
+ EMsgComposer *composer)
{
if (e_msg_composer_is_exiting (composer)) {
/* needs save draft first */
g_object_ref (activity);
- g_object_weak_ref (G_OBJECT (composer), (GWeakNotify) g_object_unref, activity);
+ g_object_weak_ref (
+ G_OBJECT (composer), (GWeakNotify)
+ g_object_unref, activity);
gtk_action_activate (ACTION (SAVE_DRAFT));
}
}
static void
-msg_composer_quit_requested_cb (EShell *shell, EShellQuitReason reason, EMsgComposer *composer)
+msg_composer_quit_requested_cb (EShell *shell,
+ EShellQuitReason reason,
+ EMsgComposer *composer)
{
if (e_msg_composer_is_exiting (composer)) {
EShell *shell;
shell = e_shell_get_default ();
- g_signal_handlers_disconnect_by_func (shell, msg_composer_quit_requested_cb, composer);
- g_signal_handlers_disconnect_by_func (shell, msg_composer_prepare_for_quit_cb, composer);
- } else if (!e_msg_composer_can_close (composer, FALSE) && !e_msg_composer_is_exiting (composer)) {
+ g_signal_handlers_disconnect_by_func (
+ shell, msg_composer_quit_requested_cb, composer);
+ g_signal_handlers_disconnect_by_func (
+ shell, msg_composer_prepare_for_quit_cb, composer);
+ } else if (!e_msg_composer_can_close (composer, FALSE) &&
+ !e_msg_composer_is_exiting (composer)) {
e_shell_cancel_quit (shell);
}
}
@@ -1900,8 +1909,10 @@ msg_composer_destroy (GtkObject *object)
shell = e_shell_get_default ();
- g_signal_handlers_disconnect_by_func (shell, msg_composer_quit_requested_cb, composer);
- g_signal_handlers_disconnect_by_func (shell, msg_composer_prepare_for_quit_cb, composer);
+ g_signal_handlers_disconnect_by_func (
+ shell, msg_composer_quit_requested_cb, composer);
+ g_signal_handlers_disconnect_by_func (
+ shell, msg_composer_prepare_for_quit_cb, composer);
/* Chain up to parent's destroy() method. */
GTK_OBJECT_CLASS (parent_class)->destroy (object);