diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-08-30 12:48:57 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-08-30 12:48:57 +0800 |
commit | 0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317 (patch) | |
tree | ac2e7dc42ce4020548e020fdec9c281eb8b83e97 /plugins | |
parent | 82bc7f0b36b5e951817307e96e1e0be3a8ee34cc (diff) | |
download | gsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.tar.gz gsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.tar.zst gsoc2013-evolution-0f7f4cfe38b3c4cd83efbe9922ae15c5aee00317.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/groupwise-features/install-shared.c | 2 | ||||
-rw-r--r-- | plugins/mail-notification/mail-notification.c | 18 | ||||
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 6 |
3 files changed, 14 insertions, 12 deletions
diff --git a/plugins/groupwise-features/install-shared.c b/plugins/groupwise-features/install-shared.c index 1725835b5f..a208116f0a 100644 --- a/plugins/groupwise-features/install-shared.c +++ b/plugins/groupwise-features/install-shared.c @@ -220,7 +220,7 @@ org_gnome_popup_wizard (EPlugin *ep, EMEventTargetMessage *target) "%s\n\n\n" "Click 'Apply' to install the shared folder\n\n"), name, name, content->buffer->data); - + page = gtk_label_new (start_message); gtk_label_set_line_wrap (GTK_LABEL (page), TRUE); gtk_misc_set_alignment (GTK_MISC (page), 0.0, 0.0); diff --git a/plugins/mail-notification/mail-notification.c b/plugins/mail-notification/mail-notification.c index 07483e7e06..f6272ba873 100644 --- a/plugins/mail-notification/mail-notification.c +++ b/plugins/mail-notification/mail-notification.c @@ -395,7 +395,7 @@ can_support_actions (void) caps = notify_get_server_caps (); if (caps != NULL) { for (c = caps; c != NULL; c = c->next) { - if (strcmp ((char*)c->data, "actions") == 0) { + if (strcmp ((gchar *)c->data, "actions") == 0) { supports_actions = TRUE; break; } @@ -460,7 +460,7 @@ new_notify_status (EMEventTargetFolder *t) notify_notification_set_timeout (notify, NOTIFY_EXPIRES_DEFAULT); notify_notification_add_action(notify, "default", "Default", notifyActionCallback, NULL, NULL); g_timeout_add (500, notification_callback, notify); - } + } } } #endif @@ -630,7 +630,7 @@ sound_play_cb (GtkWidget *widget, gpointer data) file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (scw->filechooser)); do_play_sound (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->beep)), - gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->use_theme)), + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (scw->use_theme)), file); g_free (file); } @@ -651,7 +651,7 @@ sound_notify_idle_cb (gpointer user_data) client = gconf_client_get_default (); file = gconf_client_get_string (client, GCONF_KEY_SOUND_FILE, NULL); - + do_play_sound (is_part_enabled (GCONF_KEY_SOUND_BEEP), is_part_enabled (GCONF_KEY_SOUND_USE_THEME), file); @@ -690,11 +690,13 @@ read_notify_sound (EMEventTargetMessage *t) static void enable_sound (gint enable) { - if (enable){ + if (enable) { ca_context_create(&mailnotification); - ca_context_change_props(mailnotification, - CA_PROP_APPLICATION_NAME, "mailnotification Plugin", - NULL); + ca_context_change_props( + mailnotification, + CA_PROP_APPLICATION_NAME, + "mailnotification Plugin", + NULL); } else ca_context_destroy(mailnotification); diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index 1afbd31d24..1b8ad64768 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -361,7 +361,7 @@ do_ask (const gchar *text, gboolean is_create_edit_add) { gint res; GtkWidget *dialog = gtk_message_dialog_new (NULL, - GTK_DIALOG_MODAL, + GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, is_create_edit_add ? GTK_BUTTONS_NONE : GTK_BUTTONS_YES_NO, "%s", text); @@ -506,7 +506,7 @@ do_manage_comp_idle (GSList *manage_comp_datas) const gchar *ask = get_question_edit_old (source_type); if (ask) { - char *msg = g_strdup_printf (ask, icalcomponent_get_summary (mc->stored_comp) ? icalcomponent_get_summary (mc->stored_comp) : _("[No Summary]")); + gchar *msg = g_strdup_printf (ask, icalcomponent_get_summary (mc->stored_comp) ? icalcomponent_get_summary (mc->stored_comp) : _("[No Summary]")); gint chosen; chosen = do_ask (msg, TRUE); @@ -555,7 +555,7 @@ do_manage_comp_idle (GSList *manage_comp_datas) const gchar *ask = NULL; can = FALSE; - + if (with_old == g_slist_length (manage_comp_datas)) { ask = get_question_create_new_n (source_type, with_old); } else { |