diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-01-31 00:32:55 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-01-31 00:33:28 +0800 |
commit | 0109aa3a92b484ebb85c6481e5a8e39819b1f011 (patch) | |
tree | e7837b0a50517fc160a7b4d6d47f5c78a5505523 /plugins/email-custom-header | |
parent | f25d21294158625477c529a679fd2f27fffb562c (diff) | |
download | gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.gz gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.bz2 gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.lz gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.xz gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.tar.zst gsoc2013-evolution-0109aa3a92b484ebb85c6481e5a8e39819b1f011.zip |
More whitespace cleanup.
Diffstat (limited to 'plugins/email-custom-header')
-rw-r--r-- | plugins/email-custom-header/email-custom-header.c | 52 | ||||
-rw-r--r-- | plugins/email-custom-header/email-custom-header.h | 4 |
2 files changed, 28 insertions, 28 deletions
diff --git a/plugins/email-custom-header/email-custom-header.c b/plugins/email-custom-header/email-custom-header.c index 24e76e3d6c..23f474c5ef 100644 --- a/plugins/email-custom-header/email-custom-header.c +++ b/plugins/email-custom-header/email-custom-header.c @@ -83,7 +83,7 @@ GtkWidget *org_gnome_email_custom_header_config_option (struct _EPlugin *epl, st gint e_plugin_lib_enable (EPlugin *ep, gint enable) { - return 0; + return 0; } static void @@ -335,8 +335,8 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch) /* To create an empty label widget. Text will be added dynamically. */ priv->header_type_name_label = gtk_label_new (""); temp_header_ptr = &g_array_index (priv->email_custom_header_details, EmailCustomHeaderDetails,header_section_id); - str = (temp_header_ptr->header_type_value)->str; - if (strcmp (str, security_field) == 0) + str = (temp_header_ptr->header_type_value)->str; + if (strcmp (str, security_field) == 0) str = g_dpgettext2 (GETTEXT_PACKAGE, "email-custom-header-Security", security_field); gtk_label_set_markup (GTK_LABEL (priv->header_type_name_label), str); @@ -351,7 +351,7 @@ epech_setup_widgets (CustomHeaderOptionsDialog *mch) } for (sub_index = 0,row_combo = 0,column_combo = 1; sub_index < priv->combo_box_header_value->len; - sub_index++,row_combo++,column_combo++) { + sub_index++,row_combo++,column_combo++) { temp = &g_array_index (priv->email_custom_header_details, EmailCustomHeaderDetails,sub_index); sub_combo_box_ptr = &g_array_index (priv->combo_box_header_value, HeaderValueComboBox,sub_index); @@ -485,25 +485,25 @@ epech_append_to_custom_header (CustomHeaderOptionsDialog *dialog, gint state, gp static void epech_custom_header_options_commit (EMsgComposer *comp, gpointer user_data) { - EMsgComposer *composer; - EmailCustomHeaderWindow *new_email_custom_header_window = NULL; - CustomHeaderOptionsDialog *current_dialog = NULL; + EMsgComposer *composer; + EmailCustomHeaderWindow *new_email_custom_header_window = NULL; + CustomHeaderOptionsDialog *current_dialog = NULL; - composer = (EMsgComposer *) user_data; + composer = (EMsgComposer *) user_data; - if (!user_data || !EMAIL_CUSTOM_HEADER_OPTIONS_IS_DIALOG (user_data)) + if (!user_data || !EMAIL_CUSTOM_HEADER_OPTIONS_IS_DIALOG (user_data)) return; new_email_custom_header_window = g_object_get_data ((GObject *) composer, "compowindow"); - if (new_email_custom_header_window) { + if (new_email_custom_header_window) { current_dialog = new_email_custom_header_window->epech_dialog; - } + } - if (current_dialog) { + if (current_dialog) { g_free (current_dialog); current_dialog = NULL; - } + } if (new_email_custom_header_window) { g_free (new_email_custom_header_window); @@ -526,12 +526,12 @@ epech_check_existing_composer_window (gconstpointer compowindow, gconstpointer o static void destroy_compo_data (gpointer data) { - EmailCustomHeaderWindow *compo_data = (EmailCustomHeaderWindow *) data; + EmailCustomHeaderWindow *compo_data = (EmailCustomHeaderWindow *) data; - if (!compo_data) - return; + if (!compo_data) + return; - g_free (compo_data); + g_free (compo_data); } static void action_email_custom_header_cb (GtkAction *action, EMsgComposer *composer) @@ -554,10 +554,10 @@ static void action_email_custom_header_cb (GtkAction *action, EMsgComposer *comp } else { dialog = epech_dialog_new (); if (dialog) { - EmailCustomHeaderWindow *new_email_custom_header_window; - new_email_custom_header_window = g_new0 (EmailCustomHeaderWindow, 1); - new_email_custom_header_window->epech_window = window; - new_email_custom_header_window->epech_dialog = dialog; + EmailCustomHeaderWindow *new_email_custom_header_window; + new_email_custom_header_window = g_new0 (EmailCustomHeaderWindow, 1); + new_email_custom_header_window->epech_window = window; + new_email_custom_header_window->epech_dialog = dialog; g_object_set_data_full ((GObject *) composer, "compowindow", new_email_custom_header_window, destroy_compo_data); } } @@ -613,12 +613,12 @@ commit_changes (ConfigData *cd) -1); /* Check if the keyword is not empty */ - if ((keyword) && (g_utf8_strlen (g_strstrip (keyword), -1) > 0)) { - if ((value) && (g_utf8_strlen (g_strstrip (value), -1) > 0)) { + if ((keyword) && (g_utf8_strlen (g_strstrip (keyword), -1) > 0)) { + if ((value) && (g_utf8_strlen (g_strstrip (value), -1) > 0)) { keyword = g_strconcat (keyword, "=", value, NULL); - } - header_config_list = g_slist_append (header_config_list, g_strdup (keyword)); - } + } + header_config_list = g_slist_append (header_config_list, g_strdup (keyword)); + } g_free (keyword); g_free (value); diff --git a/plugins/email-custom-header/email-custom-header.h b/plugins/email-custom-header/email-custom-header.h index ac2b8f1204..00fa2ef763 100644 --- a/plugins/email-custom-header/email-custom-header.h +++ b/plugins/email-custom-header/email-custom-header.h @@ -65,8 +65,8 @@ struct _CustomHeaderOptionsDialogClass { typedef struct _EmailCustomHeaderWindow { - GdkWindow *epech_window; - CustomHeaderOptionsDialog *epech_dialog; + GdkWindow *epech_window; + CustomHeaderOptionsDialog *epech_dialog; }EmailCustomHeaderWindow; enum { |