diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-16 23:25:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-09-04 19:34:32 +0800 |
commit | fcbbdfbd18e15b4ee8322a0217cf03a689a5e033 (patch) | |
tree | e16cd2a2279558c6a2bfb6ca39fcbaac4c85ba59 /plugins/external-editor/external-editor.c | |
parent | f78417c48861759d7b0c4535ecd3febe4638a7d3 (diff) | |
download | gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.gz gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.bz2 gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.lz gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.xz gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.tar.zst gsoc2013-evolution-fcbbdfbd18e15b4ee8322a0217cf03a689a5e033.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/external-editor/external-editor.c')
-rw-r--r-- | plugins/external-editor/external-editor.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/plugins/external-editor/external-editor.c b/plugins/external-editor/external-editor.c index 938215945e..b9386caa87 100644 --- a/plugins/external-editor/external-editor.c +++ b/plugins/external-editor/external-editor.c @@ -72,7 +72,8 @@ static GThread *editor_thread; gint e_plugin_lib_enable (EPlugin *ep, gint enable); gint -e_plugin_lib_enable (EPlugin *ep, gint enable) +e_plugin_lib_enable (EPlugin *ep, + gint enable) { return 0; } @@ -153,7 +154,8 @@ e_plugin_lib_get_configure_widget (EPlugin *epl) } static void -enable_disable_composer (EMsgComposer *composer, gboolean enable) +enable_disable_composer (EMsgComposer *composer, + gboolean enable) { GtkhtmlEditor *editor; GtkAction *action; @@ -233,7 +235,8 @@ run_error_dialog (struct run_error_dialog_data *data) } static gint -numlines (const gchar *text, gint pos) +numlines (const gchar *text, + gint pos) { gint ctr = 0; gint lineno = 0; @@ -292,8 +295,8 @@ async_external_editor (EMsgComposer *composer) if (!editor_cmd) { if (!(editor_cmd = g_strdup (g_getenv ("EDITOR"))) ) /* Make gedit the default external editor, - if the default schemas are not installed - and no $EDITOR is set. */ + * if the default schemas are not installed + * and no $EDITOR is set. */ editor_cmd = g_strdup ("gedit"); } g_object_unref (gconf); @@ -403,7 +406,9 @@ static GtkActionEntry entries[] = { }; static gboolean -key_press_cb (GtkWidget * widget, GdkEventKey * event, EMsgComposer *composer) +key_press_cb (GtkWidget *widget, + GdkEventKey *event, + EMsgComposer *composer) { GConfClient *gconf; gboolean immediately; @@ -433,7 +438,8 @@ key_press_cb (GtkWidget * widget, GdkEventKey * event, EMsgComposer *composer) } static void -editor_running_thread_func (GThread *thread, gpointer running) +editor_running_thread_func (GThread *thread, + gpointer running) { if (thread == editor_thread) *(gboolean*)running = TRUE; @@ -451,7 +457,8 @@ editor_running (void) } static gboolean -delete_cb (GtkWidget *widget, EMsgComposer *composer) +delete_cb (GtkWidget *widget, + EMsgComposer *composer) { if (editor_running ()) { e_alert_run_dialog_for_args ( @@ -464,7 +471,8 @@ delete_cb (GtkWidget *widget, EMsgComposer *composer) } gboolean -e_plugin_ui_init (GtkUIManager *manager, EMsgComposer *composer) +e_plugin_ui_init (GtkUIManager *manager, + EMsgComposer *composer) { GtkhtmlEditor *editor; EWebView *web_view; |