diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:24:42 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-09 01:37:20 +0800 |
commit | 8a186c3588d3598857c36e2122fa68d01eba30fd (patch) | |
tree | 731078659d4e04af8346c5ca68512d8537b3707a /calendar/gui/dialogs | |
parent | 2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff) | |
download | gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2 gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip |
Coding style cleanups.
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/alarm-dialog.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/alarm-list-dialog.c | 4 | ||||
-rw-r--r-- | calendar/gui/dialogs/calendar-setup.c | 10 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/delete-comp.c | 10 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 10 | ||||
-rw-r--r-- | calendar/gui/dialogs/memo-page.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/recurrence-page.c | 2 | ||||
-rw-r--r-- | calendar/gui/dialogs/send-comp.c | 2 |
9 files changed, 25 insertions, 25 deletions
diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c index 6d4219c2b4..6b234f6cce 100644 --- a/calendar/gui/dialogs/alarm-dialog.c +++ b/calendar/gui/dialogs/alarm-dialog.c @@ -820,7 +820,7 @@ get_widgets (Dialog *dialog) N_("Send an email") }; - GtkComboBox *combo = (GtkComboBox*)dialog->action_combo; + GtkComboBox *combo = (GtkComboBox*) dialog->action_combo; GtkCellRenderer *cell; GtkListStore *store; gint i; diff --git a/calendar/gui/dialogs/alarm-list-dialog.c b/calendar/gui/dialogs/alarm-list-dialog.c index 0dbf9f81d0..4476bc4c62 100644 --- a/calendar/gui/dialogs/alarm-list-dialog.c +++ b/calendar/gui/dialogs/alarm-list-dialog.c @@ -162,7 +162,7 @@ edit_clicked_cb (GtkButton *button, gpointer data) return; } - alarm = (ECalComponentAlarm *)e_alarm_list_get_alarm (dialog->list_store, &iter); + alarm = (ECalComponentAlarm *) e_alarm_list_get_alarm (dialog->list_store, &iter); path = gtk_tree_model_get_path (GTK_TREE_MODEL (dialog->list_store), &iter); if (alarm_dialog_run (dialog->toplevel, dialog->ecal, alarm)) { @@ -308,7 +308,7 @@ alarm_list_dialog_peek (ECal *ecal, EAlarmList *list_store) { Dialog *dialog; - dialog = (Dialog *)g_new (Dialog, 1); + dialog = (Dialog *) g_new (Dialog, 1); dialog->ecal = ecal; dialog->list_store = list_store; diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index c03e53fd2f..5981076ee6 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -423,12 +423,12 @@ cs_load_sources (CalendarSourceDialog *sdialog, const gchar *conf_key, ESourceGr gconf = gconf_client_get_default (); sdialog->source_list = e_source_list_new_for_gconf (gconf, conf_key); sdialog->menu_source_groups = g_slist_copy (e_source_list_peek_groups (sdialog->source_list)); - sdialog->source_group = (ESourceGroup *)sdialog->menu_source_groups->data; + sdialog->source_group = (ESourceGroup *) sdialog->menu_source_groups->data; g_object_unref (gconf); if (group) - sdialog->source_group = (ESourceGroup *)group; + sdialog->source_group = (ESourceGroup *) group; } /** @@ -484,7 +484,7 @@ calendar_setup_edit_calendar (GtkWindow *parent, ESource *source, ESourceGroup * /* forces initial validation */ if (!sdialog->original_source) - e_config_target_changed ((EConfig *)ec, E_CONFIG_TARGET_CHANGED_STATE); + e_config_target_changed ((EConfig *) ec, E_CONFIG_TARGET_CHANGED_STATE); return; } @@ -540,7 +540,7 @@ calendar_setup_edit_task_list (GtkWindow *parent, ESource *source) /* forces initial validation */ if (!sdialog->original_source) - e_config_target_changed ((EConfig *)ec, E_CONFIG_TARGET_CHANGED_STATE); + e_config_target_changed ((EConfig *) ec, E_CONFIG_TARGET_CHANGED_STATE); return; } @@ -596,7 +596,7 @@ calendar_setup_edit_memo_list (GtkWindow *parent, ESource *source) /* forces initial validation */ if (!sdialog->original_source) - e_config_target_changed ((EConfig *)ec, E_CONFIG_TARGET_CHANGED_STATE); + e_config_target_changed ((EConfig *) ec, E_CONFIG_TARGET_CHANGED_STATE); return; } diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 1d4c74e43c..983b42cdee 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -841,12 +841,12 @@ action_save_cb (GtkAction *action, ECalComponentVType vtype = e_cal_component_get_vtype (editor->priv->comp); if (vtype == E_CAL_COMPONENT_EVENT) - response = em_utils_prompt_user ((GtkWindow *)widget, + response = em_utils_prompt_user ((GtkWindow *) widget, NULL, "calendar:ask-send-event-pending-download", NULL); else - response = em_utils_prompt_user ((GtkWindow *)widget, + response = em_utils_prompt_user ((GtkWindow *) widget, NULL, "calendar:ask-send-task-pending-download", NULL); @@ -2959,7 +2959,7 @@ fill_widgets (CompEditor *editor) g_signal_handlers_unblock_by_func ( store, G_CALLBACK (attachment_store_changed_cb), editor); - g_slist_foreach (attachment_list, (GFunc)g_free, NULL); + g_slist_foreach (attachment_list, (GFunc) g_free, NULL); g_slist_free (attachment_list); } @@ -3369,7 +3369,7 @@ comp_editor_get_mime_attach_list (CompEditor *editor) camel_mime_part_set_content_id (mime_part, NULL); - cal_mime_attach->encoded_data = (gchar *)buffer; + cal_mime_attach->encoded_data = (gchar *) buffer; cal_mime_attach->length = byte_array->len; cal_mime_attach->filename = g_strdup (camel_mime_part_get_filename (mime_part)); diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c index 850728449e..f5ac9c9ce4 100644 --- a/calendar/gui/dialogs/delete-comp.c +++ b/calendar/gui/dialogs/delete-comp.c @@ -216,19 +216,19 @@ prompt_retract_dialog (ECalComponent *comp, gchar **retract_text, GtkWidget *par gtk_frame_set_label_widget ((GtkFrame *) frame, label); gtk_frame_set_label_align ((GtkFrame *) frame, 0, 0); gtk_container_add (GTK_CONTAINER (vbox), frame); - gtk_frame_set_shadow_type ((GtkFrame *)frame, GTK_SHADOW_NONE); + gtk_frame_set_shadow_type ((GtkFrame *) frame, GTK_SHADOW_NONE); sw = gtk_scrolled_window_new (NULL, NULL); - gtk_scrolled_window_set_policy ((GtkScrolledWindow *)sw, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_policy ((GtkScrolledWindow *) sw, GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); entry = gtk_text_view_new (); - gtk_scrolled_window_add_with_viewport ((GtkScrolledWindow *)sw, entry); - gtk_label_set_mnemonic_widget ((GtkLabel *)label, entry); + gtk_scrolled_window_add_with_viewport ((GtkScrolledWindow *) sw, entry); + gtk_label_set_mnemonic_widget ((GtkLabel *) label, entry); gtk_container_add (GTK_CONTAINER (frame), sw); g_signal_connect ((GtkToggleButton *)cb, "toggled", G_CALLBACK (cb_toggled_cb), entry); - gtk_widget_show_all ((GtkWidget *)dialog); + gtk_widget_show_all ((GtkWidget *) dialog); ret_val = (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK); diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index d2fc4ae091..0953e3a9cf 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -495,7 +495,7 @@ is_custom_alarm_store (EAlarmList *alarm_list_store, return FALSE; alarm = e_alarm_list_get_alarm (alarm_list_store, &iter); - if (is_custom_alarm ((ECalComponentAlarm *)alarm, old_summary, user_units, user_interval, alarm_type)) + if (is_custom_alarm ((ECalComponentAlarm *) alarm, old_summary, user_units, user_interval, alarm_type)) return TRUE; valid_iter = gtk_tree_model_iter_next (model, &iter); @@ -646,7 +646,7 @@ sensitize_widgets (EventPage *epage) if (alarm && !priv->alarm_icon) { priv->alarm_icon = create_alarm_image_button ("stock_bell", _("This event has alarms"), epage); - gtk_box_pack_start ((GtkBox *)priv->status_icons, priv->alarm_icon, FALSE, FALSE, 6); + gtk_box_pack_start ((GtkBox *) priv->status_icons, priv->alarm_icon, FALSE, FALSE, 6); } /* The list of organizers is set to be non-editable. Otherwise any @@ -2867,7 +2867,7 @@ alarm_changed_cb (GtkWidget *widget, } if (!priv->alarm_icon) { priv->alarm_icon = create_alarm_image_button ("stock_bell", _("This event has alarms"), epage); - gtk_box_pack_start ((GtkBox *)priv->status_icons, priv->alarm_icon, FALSE, FALSE, 6); + gtk_box_pack_start ((GtkBox *) priv->status_icons, priv->alarm_icon, FALSE, FALSE, 6); } } else { e_alarm_list_clear (priv->alarm_list_store); @@ -3401,7 +3401,7 @@ event_page_get_alarm_page (EventPage *epage) tmp = GW("dialog-vbox1"); alarm_page = GW("vbox2"); g_object_ref (alarm_page); - gtk_container_remove ((GtkContainer *)tmp, alarm_page); + gtk_container_remove ((GtkContainer *) tmp, alarm_page); return alarm_page; } @@ -3419,7 +3419,7 @@ event_page_get_attendee_page (EventPage *epage) apage = priv->list_box; g_object_ref (apage); - gtk_container_remove ((GtkContainer *)gtk_widget_get_parent (apage), apage); + gtk_container_remove ((GtkContainer *) gtk_widget_get_parent (apage), apage); gtk_widget_hide (priv->attendee_box); return apage; diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c index e708cefc0c..e055072959 100644 --- a/calendar/gui/dialogs/memo-page.c +++ b/calendar/gui/dialogs/memo-page.c @@ -1188,7 +1188,7 @@ memo_page_construct (MemoPage *mpage) priv->name_selector = e_name_selector_new (); priv->to_entry = get_to_entry (priv->name_selector); - gtk_container_add ((GtkContainer *)priv->to_hbox, priv->to_entry); + gtk_container_add ((GtkContainer *) priv->to_hbox, priv->to_entry); gtk_widget_show (priv->to_hbox); gtk_widget_show (priv->to_entry); gtk_widget_show (priv->to_button); diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index e602157660..8d2701fab2 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -1412,7 +1412,7 @@ make_ending_count_special (RecurrencePage *rpage) adj = GTK_ADJUSTMENT (gtk_adjustment_new (1, 1, 10000, 1, 10, 0)); priv->ending_count_spin = gtk_spin_button_new (adj, 1, 0); - gtk_spin_button_set_numeric ((GtkSpinButton *)priv->ending_count_spin, TRUE); + gtk_spin_button_set_numeric ((GtkSpinButton *) priv->ending_count_spin, TRUE); gtk_box_pack_start (GTK_BOX (hbox), priv->ending_count_spin, FALSE, FALSE, 6); diff --git a/calendar/gui/dialogs/send-comp.c b/calendar/gui/dialogs/send-comp.c index eab2c2c818..070fb6b735 100644 --- a/calendar/gui/dialogs/send-comp.c +++ b/calendar/gui/dialogs/send-comp.c @@ -86,7 +86,7 @@ have_nonprocedural_alarm (ECalComponent *comp) ECalComponentAlarm *alarm; ECalComponentAlarmAction action = E_CAL_COMPONENT_ALARM_UNKNOWN; - alarm = e_cal_component_get_alarm (comp, (const gchar *)l->data); + alarm = e_cal_component_get_alarm (comp, (const gchar *) l->data); if (alarm) { e_cal_component_alarm_get_action (alarm, &action); e_cal_component_alarm_free (alarm); |