aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:07:50 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:07:50 +0800
commit2e1a44dad5030f227cbf6f25c23e3c0a167d34c2 (patch)
tree8770f5875533e6a6dbd3df72195b6a8928520212 /calendar/gui/dialogs
parent754a294a700dcc3e18056efe8dd5a8bc8d1c97e7 (diff)
downloadgsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar.gz
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar.bz2
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar.lz
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar.xz
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.tar.zst
gsoc2013-evolution-2e1a44dad5030f227cbf6f25c23e3c0a167d34c2.zip
source-type is an enum not a pointer!
2005-08-23 Not Zed <NotZed@Ximian.com> * gui/e-cal-config.h: source-type is an enum not a pointer! * gui/tasks-component.c (selector_tree_drag_data_received): constify uid. * gui/itip-utils.c (comp_sentby): use the right list type for attendees. * gui/gnome-cal.c (config_categories_changed_cb): fix cast. (setup_widgets): fix casts. * gui/e-tasks.c: add missing e-categories.h include. (config_categories_changed_cb): fix cast. * gui/e-week-view.c (e_week_view_realize): remove unused. * gui/e-select-names-editable.c (e_select_names_editable_get_emails): remve unused. * gui/e-meeting-time-sel.c (e_meeting_time_selector_style_set): remove/comment unused. * gui/e-meeting-store.c (freebusy_async): g* strikes again, use the right lock/unlock function for the g-spastic-mutex. (process_callbacks_main_thread): fix signature to match usage. (refresh_queue_add): cast off warning * gui/e-itip-control.c (cleanup_ecal): fix signature to match use * gui/e-day-view.c (process_component): remove unused vars. (e_day_view_realize): more. (e_day_view_on_event_double_click): cast (e_day_view_update_calendar_selection_time): define out unused * gui/e-calendar-table.c (e_calendar_table_init): more a11y related casts. * gui/e-calendar-view.c (on_edit_appointment): proper boolean conversion of a pointer. (transfer_selected_items): cast (on_unrecur_appointment): remove unused prop (e_calendar_view_open_event): proper boolean conversion of pointer. * gui/e-cal-popup.c (needs_to_accept): remove unused. * gui/e-cal-model.c (set_instance_times): remove unused. :include missing calendar-config. * gui/dialogs/meeting-page.c (clear_widgets): yawn, another gtklabel wawrning. (meeting_page_fill_component): constify attendees. * gui/dialogs/e-send-options-utils.c: remove unused global sod, add missing string.h * gui/dialogs/e-delegate-dialog.c (e_delegate_dialog_construct): remove unused. * gui/dialogs/comp-editor.c (response_cb): wtf, this can't use em_utils!!! #if 0 it out and add a build warning. (cab_popup_position): pointer cast. (set_attachment_list): remove unused. * gui/dialogs/calendar-setup.c (eccp_general_offline): change very incorrect N_ macro to _. (CalendarSourceDialog): Umm, source_type is an enum, not a pointer. (eccp_get_source_color): remove unused. svn path=/trunk/; revision=30217
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/calendar-setup.c8
-rw-r--r--calendar/gui/dialogs/comp-editor.c10
-rw-r--r--calendar/gui/dialogs/e-delegate-dialog.c1
-rw-r--r--calendar/gui/dialogs/e-send-options-utils.c3
-rw-r--r--calendar/gui/dialogs/meeting-page.c4
5 files changed, 12 insertions, 14 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c
index e54a3a3838..3b6b578786 100644
--- a/calendar/gui/dialogs/calendar-setup.c
+++ b/calendar/gui/dialogs/calendar-setup.c
@@ -55,7 +55,7 @@ struct _CalendarSourceDialog {
/* Source group we're creating/editing a source in */
ESourceGroup *source_group;
- ECalSourceType *source_type;
+ ECalSourceType source_type;
};
static gboolean
@@ -284,10 +284,10 @@ eccp_general_offline (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent,
row = ((GtkTable*)parent)->nrows;
if (sdialog->source_type == E_CAL_SOURCE_TYPE_EVENT)
- offline_setting = gtk_check_button_new_with_label (N_("Copy calendar contents locally for offline operation"));
+ offline_setting = gtk_check_button_new_with_label (_("Copy calendar contents locally for offline operation"));
else if (sdialog->source_type == E_CAL_SOURCE_TYPE_TODO)
- offline_setting = gtk_check_button_new_with_label (N_("Copy task list contents locally for offline operation"));
+ offline_setting = gtk_check_button_new_with_label (_("Copy task list contents locally for offline operation"));
gtk_widget_show (offline_setting);
g_signal_connect (offline_setting, "toggled", G_CALLBACK (offline_status_changed_cb), sdialog);
@@ -315,8 +315,6 @@ eccp_get_source_color (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent
static GtkWidget *label, *picker;
int row;
ECalConfigTargetSource *t = (ECalConfigTargetSource *) ec->target;
- ESource *source = t->source;
-
static guint32 assigned_colors[] = {
0xBECEDD, /* 190 206 221 Blue */
0xE2F0EF, /* 226 240 239 Light Blue */
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 6e8f8ce6e8..67d3c10411 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -897,9 +897,11 @@ response_cb (GtkWidget *widget, int response, gpointer data)
case GTK_RESPONSE_OK:
/* Check whether the downloads are completed */
if (e_attachment_bar_get_download_count (E_ATTACHMENT_BAR (editor->priv->attachment_bar)) ){
+ gboolean response = 1;
+#warning "FIXME: Cannot use mail functions from calendar!!!!"
+#if 0
ECalComponentVType vtype = e_cal_component_get_vtype(editor->priv->comp);
- gboolean response;
-
+
if (vtype == E_CAL_COMPONENT_EVENT)
response = em_utils_prompt_user((GtkWindow *)widget,
NULL,
@@ -910,6 +912,7 @@ response_cb (GtkWidget *widget, int response, gpointer data)
NULL,
"calendar:ask-send-task-pending-download",
NULL);
+#endif
if (!response)
return;
}
@@ -1097,7 +1100,7 @@ cab_popup_position(GtkMenu *menu, int *x, int *y, gboolean *push_in, gpointer us
if (selection == NULL)
return;
- image = gnome_icon_list_get_icon_pixbuf_item (icon_list, (gint)selection->data);
+ image = gnome_icon_list_get_icon_pixbuf_item (icon_list, GPOINTER_TO_INT(selection->data));
if (image == NULL)
return;
@@ -2009,7 +2012,6 @@ set_attachment_list (CompEditor *editor, GSList *attach_list)
{
GSList *p = NULL;
const char *comp_uid= NULL;
- const char *local_store = e_cal_get_local_attachment_store (editor->priv->client);
e_cal_component_get_uid (editor->priv->comp, &comp_uid);
diff --git a/calendar/gui/dialogs/e-delegate-dialog.c b/calendar/gui/dialogs/e-delegate-dialog.c
index 565d87ad52..f1fcf790d9 100644
--- a/calendar/gui/dialogs/e-delegate-dialog.c
+++ b/calendar/gui/dialogs/e-delegate-dialog.c
@@ -123,7 +123,6 @@ e_delegate_dialog_construct (EDelegateDialog *edd, const char *name, const char
EDestination *dest;
ENameSelectorModel *name_selector_model;
ENameSelectorDialog *name_selector_dialog;
- char *str;
g_return_val_if_fail (edd != NULL, NULL);
g_return_val_if_fail (E_IS_DELEGATE_DIALOG (edd), NULL);
diff --git a/calendar/gui/dialogs/e-send-options-utils.c b/calendar/gui/dialogs/e-send-options-utils.c
index ff70a2ccd7..0999605e07 100644
--- a/calendar/gui/dialogs/e-send-options-utils.c
+++ b/calendar/gui/dialogs/e-send-options-utils.c
@@ -21,8 +21,7 @@
#include "e-send-options-utils.h"
#include "../calendar-config.h"
#include <glib.h>
-
-ESendOptionsDialog *sod = NULL;
+#include <string.h>
void
e_sendoptions_utils_set_default_data (ESendOptionsDialog *sod, ESource *source, char * type)
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c
index 4ca971c3f3..a272a20db5 100644
--- a/calendar/gui/dialogs/meeting-page.c
+++ b/calendar/gui/dialogs/meeting-page.c
@@ -300,7 +300,7 @@ clear_widgets (MeetingPage *mpage)
priv = mpage->priv;
if (COMP_EDITOR_PAGE (mpage)->flags & COMP_EDITOR_PAGE_DELEGATE) {
- gtk_label_set_markup_with_mnemonic (priv->att_label, _("<b>Dele_gatees</b>"));
+ gtk_label_set_markup_with_mnemonic ((GtkLabel *)priv->att_label, _("<b>Dele_gatees</b>"));
}
if (e_cal_get_static_capability (COMP_EDITOR_PAGE (mpage)->client, CAL_STATIC_CAPABILITY_NO_ORGANIZER)) {
@@ -487,7 +487,7 @@ meeting_page_fill_component (CompEditorPage *page, ECalComponent *comp)
if (COMP_EDITOR_PAGE (mpage)->flags & COMP_EDITOR_PAGE_DELEGATE ) {
GSList *attendee_list, *l;
int i;
- GPtrArray *attendees = e_meeting_store_get_attendees (priv->model);
+ const GPtrArray *attendees = e_meeting_store_get_attendees (priv->model);
e_cal_component_get_attendee_list (priv->comp, &attendee_list);