aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-07-13 11:33:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-07-14 23:26:22 +0800
commit374bd42f69aca2e132fd854c9619f3d7491f1f96 (patch)
treebf50b5daa8664d4d793b82f6b6ec59d0686553e0 /calendar
parent573eb0880a80e04737cb4497931ca6588272686e (diff)
downloadgsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar.gz
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar.bz2
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar.lz
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar.xz
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.tar.zst
gsoc2013-evolution-374bd42f69aca2e132fd854c9619f3d7491f1f96.zip
Fix excessive whitespace.
Diffstat (limited to 'calendar')
-rw-r--r--calendar/common/authentication.c1
-rw-r--r--calendar/conduits/calendar/calendar-conduit.c3
-rw-r--r--calendar/conduits/common/libecalendar-common-conduit.h1
-rw-r--r--calendar/conduits/memo/memo-conduit.c4
-rw-r--r--calendar/conduits/todo/todo-conduit.c3
-rw-r--r--calendar/gui/alarm-notify/alarm-notify-dialog.c6
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c1
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c7
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.h2
-rw-r--r--calendar/gui/cal-search-bar.c4
-rw-r--r--calendar/gui/calendar-commands.c2
-rw-r--r--calendar/gui/calendar-commands.h1
-rw-r--r--calendar/gui/calendar-component.c3
-rw-r--r--calendar/gui/calendar-component.h4
-rw-r--r--calendar/gui/calendar-config-keys.h1
-rw-r--r--calendar/gui/calendar-config.c28
-rw-r--r--calendar/gui/calendar-config.h3
-rw-r--r--calendar/gui/comp-util.c2
-rw-r--r--calendar/gui/comp-util.h1
-rw-r--r--calendar/gui/dialogs/cal-attachment-select-file.c1
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c5
-rw-r--r--calendar/gui/dialogs/comp-editor-util.c5
-rw-r--r--calendar/gui/dialogs/comp-editor-util.h1
-rw-r--r--calendar/gui/dialogs/comp-editor.c4
-rw-r--r--calendar/gui/dialogs/comp-editor.h1
-rw-r--r--calendar/gui/dialogs/e-delegate-dialog.c2
-rw-r--r--calendar/gui/dialogs/e-delegate-dialog.h2
-rw-r--r--calendar/gui/dialogs/e-send-options-utils.c1
-rw-r--r--calendar/gui/dialogs/event-page.c9
-rw-r--r--calendar/gui/dialogs/memo-page.c1
-rw-r--r--calendar/gui/dialogs/recur-comp.c1
-rw-r--r--calendar/gui/dialogs/recurrence-page.c1
-rw-r--r--calendar/gui/dialogs/schedule-page.c1
-rw-r--r--calendar/gui/dialogs/schedule-page.h1
-rw-r--r--calendar/gui/dialogs/task-details-page.c2
-rw-r--r--calendar/gui/dialogs/task-editor.c1
-rw-r--r--calendar/gui/dialogs/task-page.c4
-rw-r--r--calendar/gui/e-cal-component-preview.c1
-rw-r--r--calendar/gui/e-cal-component-preview.h1
-rw-r--r--calendar/gui/e-cal-list-view.c1
-rw-r--r--calendar/gui/e-cal-list-view.h3
-rw-r--r--calendar/gui/e-cal-model-memos.c1
-rw-r--r--calendar/gui/e-cal-model-tasks.c2
-rw-r--r--calendar/gui/e-cal-model.c4
-rw-r--r--calendar/gui/e-cal-popup.c2
-rw-r--r--calendar/gui/e-calendar-table.c3
-rw-r--r--calendar/gui/e-calendar-view.c9
-rw-r--r--calendar/gui/e-cell-date-edit-text.c8
-rw-r--r--calendar/gui/e-cell-date-edit-text.h1
-rw-r--r--calendar/gui/e-comp-editor-registry.h2
-rw-r--r--calendar/gui/e-day-view-config.c1
-rw-r--r--calendar/gui/e-day-view-layout.c8
-rw-r--r--calendar/gui/e-day-view-layout.h1
-rw-r--r--calendar/gui/e-day-view-main-item.c13
-rw-r--r--calendar/gui/e-day-view-main-item.h2
-rw-r--r--calendar/gui/e-day-view-time-item.c10
-rw-r--r--calendar/gui/e-day-view-time-item.h3
-rw-r--r--calendar/gui/e-day-view-top-item.c7
-rw-r--r--calendar/gui/e-day-view-top-item.h2
-rw-r--r--calendar/gui/e-day-view.c107
-rw-r--r--calendar/gui/e-day-view.h6
-rw-r--r--calendar/gui/e-itip-control.c6
-rw-r--r--calendar/gui/e-meeting-attendee.c2
-rw-r--r--calendar/gui/e-meeting-list-view.c7
-rw-r--r--calendar/gui/e-meeting-list-view.h1
-rw-r--r--calendar/gui/e-meeting-store.c8
-rw-r--r--calendar/gui/e-meeting-time-sel-item.c23
-rw-r--r--calendar/gui/e-meeting-time-sel-item.h4
-rw-r--r--calendar/gui/e-meeting-time-sel.c60
-rw-r--r--calendar/gui/e-meeting-time-sel.h10
-rw-r--r--calendar/gui/e-meeting-utils.h1
-rw-r--r--calendar/gui/e-memo-table.c2
-rw-r--r--calendar/gui/e-memos.c2
-rw-r--r--calendar/gui/e-memos.h2
-rw-r--r--calendar/gui/e-select-names-renderer.c1
-rw-r--r--calendar/gui/e-tasks.c7
-rw-r--r--calendar/gui/e-tasks.h1
-rw-r--r--calendar/gui/e-timezone-entry.c11
-rw-r--r--calendar/gui/e-timezone-entry.h2
-rw-r--r--calendar/gui/e-week-view-event-item.c11
-rw-r--r--calendar/gui/e-week-view-event-item.h3
-rw-r--r--calendar/gui/e-week-view-layout.c6
-rw-r--r--calendar/gui/e-week-view-main-item.c5
-rw-r--r--calendar/gui/e-week-view-main-item.h3
-rw-r--r--calendar/gui/e-week-view-titles-item.c6
-rw-r--r--calendar/gui/e-week-view-titles-item.h3
-rw-r--r--calendar/gui/e-week-view.c52
-rw-r--r--calendar/gui/e-week-view.h3
-rw-r--r--calendar/gui/ea-cal-view-event.c5
-rw-r--r--calendar/gui/ea-cal-view-event.h1
-rw-r--r--calendar/gui/ea-calendar.c1
-rw-r--r--calendar/gui/ea-day-view-cell.c1
-rw-r--r--calendar/gui/ea-day-view-main-item.c1
-rw-r--r--calendar/gui/ea-gnome-calendar.h1
-rw-r--r--calendar/gui/ea-jump-button.c1
-rw-r--r--calendar/gui/ea-jump-button.h1
-rw-r--r--calendar/gui/ea-week-view-cell.c1
-rw-r--r--calendar/gui/ea-week-view-main-item.c1
-rw-r--r--calendar/gui/ea-week-view.h1
-rw-r--r--calendar/gui/gnome-cal.c14
-rw-r--r--calendar/gui/gnome-cal.h2
-rw-r--r--calendar/gui/itip-utils.c7
-rw-r--r--calendar/gui/memos-component.h3
-rw-r--r--calendar/gui/print.c24
-rw-r--r--calendar/gui/tasks-component.h3
-rw-r--r--calendar/gui/tasks-control.c2
-rw-r--r--calendar/gui/weekday-picker.c1
107 files changed, 0 insertions, 631 deletions
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index a9e2b95ea0..7b0b2e7972 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -102,7 +102,6 @@ auth_new_cal_from_default (ECalSourceType type)
if (!e_cal_open_default (&ecal, type, auth_func_cb, NULL, NULL))
return NULL;
-
return ecal;
}
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c
index 668fbe9bc9..2f752e015f 100644
--- a/calendar/conduits/calendar/calendar-conduit.c
+++ b/calendar/conduits/calendar/calendar-conduit.c
@@ -528,7 +528,6 @@ get_default_timezone (void)
key = "/apps/evolution/calendar/display/timezone";
location = gconf_client_get_string (client, key, NULL);
-
if (location == NULL || *location == '\0') {
g_free (location);
location = g_strdup ("UTC");
@@ -542,7 +541,6 @@ get_default_timezone (void)
return timezone;
}
-
static gchar *
map_name (ECalConduitContext *ctxt)
{
@@ -1363,7 +1361,6 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
e_cal_resolve_tzid_cb, client,
timezone);
-
if (last == elast) {
recur.until = icaltime_null_time ();
recur.count = erecur->count;
diff --git a/calendar/conduits/common/libecalendar-common-conduit.h b/calendar/conduits/common/libecalendar-common-conduit.h
index 8110fc5094..2eeb8b2723 100644
--- a/calendar/conduits/common/libecalendar-common-conduit.h
+++ b/calendar/conduits/common/libecalendar-common-conduit.h
@@ -24,7 +24,6 @@
#define PILOT_MAX_CATEGORIES 16
-
gint e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *category);
void e_pilot_local_category_to_remote(gint * pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
void e_pilot_remote_category_to_local(gint pilotCategory, ECalComponent *comp, struct CategoryAppInfo *category);
diff --git a/calendar/conduits/memo/memo-conduit.c b/calendar/conduits/memo/memo-conduit.c
index 48a8f59f6e..ae45e82439 100644
--- a/calendar/conduits/memo/memo-conduit.c
+++ b/calendar/conduits/memo/memo-conduit.c
@@ -117,7 +117,6 @@ memoconduit_load_configuration (guint32 pilot_id)
GnomePilotConduitConfig *config;
gchar prefix[256];
-
g_snprintf (prefix, 255, "e-memo-conduit/Pilot_%u", pilot_id);
c = g_new0 (EMemoConduitCfg,1);
@@ -637,7 +636,6 @@ local_record_from_uid (EMemoLocalRecord *local,
g_clear_error (&error);
}
-
static ECalComponent *
comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
GnomePilotRecord *remote,
@@ -737,7 +735,6 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
free(txt3);
}
-
e_cal_component_set_transparency (comp, E_CAL_COMPONENT_TRANSP_NONE);
if (remote->secret)
@@ -955,7 +952,6 @@ post_sync (GnomePilotConduit *conduit,
return -1;
}
-
LOG (g_message ( "post_sync: Memo Conduit v.%s", CONDUIT_VERSION ));
g_free (ctxt->cfg->last_uri);
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index d72e85fe3f..42e79d778c 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -119,7 +119,6 @@ todoconduit_load_configuration (guint32 pilot_id)
GnomePilotConduitConfig *config;
gchar prefix[256];
-
g_snprintf (prefix, 255, "e-todo-conduit/Pilot_%u", pilot_id);
c = g_new0 (EToDoConduitCfg,1);
@@ -806,7 +805,6 @@ local_record_from_uid (EToDoLocalRecord *local,
g_clear_error (&error);
}
-
static ECalComponent *
comp_from_remote_record (GnomePilotConduitSyncAbs *conduit,
GnomePilotRecord *remote,
@@ -1142,7 +1140,6 @@ post_sync (GnomePilotConduit *conduit,
return -1;
}
-
LOG (g_message ( "post_sync: ToDo Conduit v.%s", CONDUIT_VERSION ));
g_free (ctxt->cfg->last_uri);
diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c
index 9e9aa003a4..e499e4332f 100644
--- a/calendar/gui/alarm-notify/alarm-notify-dialog.c
+++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c
@@ -34,8 +34,6 @@
#include "util.h"
#include "e-util/e-util-private.h"
-
-
enum {
ALARM_DISPLAY_COLUMN,
ALARM_SUMMARY_COLUMN,
@@ -331,7 +329,6 @@ notified_alarms_dialog_new (void)
g_signal_connect (G_OBJECT (an->snooze_time_hrs), "value_changed",
G_CALLBACK (an_update_hrs_label), an);
-
na = g_new0 (AlarmNotificationsDialog, 1);
na->treeview = an->treeview;
@@ -340,7 +337,6 @@ notified_alarms_dialog_new (void)
return na;
}
-
/**
* add_alarm_to_notified_alarms_dialog:
* @na: Pointer to the dialog-info
@@ -438,8 +434,6 @@ tree_selection_changed_cb (GtkTreeSelection *selection, gpointer user_data)
}
}
-
-
static void
fill_in_labels (AlarmNotify *an, const gchar *summary, const gchar *description,
const gchar *location, time_t occur_start, time_t occur_end)
diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c
index e05c6e6571..62679bb2b6 100644
--- a/calendar/gui/alarm-notify/alarm-notify.c
+++ b/calendar/gui/alarm-notify/alarm-notify.c
@@ -53,7 +53,6 @@ static void alarm_notify_class_init (AlarmNotifyClass *klass);
static void alarm_notify_init (AlarmNotify *an, AlarmNotifyClass *klass);
static void alarm_notify_finalize (GObject *object);
-
static BonoboObjectClass *parent_class;
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index e4aca02699..052340fbca 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -39,7 +39,6 @@
#include <libecal/e-cal-time-util.h>
#include <libecal/e-cal-component.h>
-
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif
@@ -1347,8 +1346,6 @@ tray_icon_clicked_cb (GtkWidget *widget, GdkEventButton *event, gpointer user_da
g_source_remove (tray_blink_id);
tray_blink_id = -1;
-
-
gtk_status_icon_set_visible (tray_icon, FALSE);
g_object_unref (tray_icon);
tray_icon = NULL;
@@ -1409,7 +1406,6 @@ tray_icon_blink_cb (gpointer data)
return tray_blink_countdown > 0;
}
-
/* Add a new data to tray list */
static void
@@ -1582,7 +1578,6 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa,
e_cal_component_get_summary (comp, &text);
e_cal_component_get_organizer (comp, &organiser);
-
if (text.value)
summary = text.value;
else
@@ -1625,7 +1620,6 @@ popup_notification (time_t trigger, CompQueuedAlarms *cqa,
g_free (time_str);
g_free (str);
-
}
#endif
@@ -2059,7 +2053,6 @@ remove_comp_by_id (gpointer key, gpointer value, gpointer userdata) {
return TRUE;
}
-
/* Removes all the alarms queued for a particular calendar client */
static void
remove_client_alarms (ClientAlarms *ca)
diff --git a/calendar/gui/alarm-notify/alarm-queue.h b/calendar/gui/alarm-notify/alarm-queue.h
index 9a2e11c472..c594e12a6b 100644
--- a/calendar/gui/alarm-notify/alarm-queue.h
+++ b/calendar/gui/alarm-notify/alarm-queue.h
@@ -28,12 +28,10 @@
#include <libecal/e-cal.h>
-
void alarm_queue_init (gpointer);
void alarm_queue_done (void);
void alarm_queue_add_client (ECal *client);
void alarm_queue_remove_client (ECal *client, gboolean immediately);
-
#endif
diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c
index c509561a17..c770c833f7 100644
--- a/calendar/gui/cal-search-bar.c
+++ b/calendar/gui/cal-search-bar.c
@@ -57,7 +57,6 @@ static ESearchBarItem calendar_search_items[] = {
{NULL, -1, 0}
};
-
/* IDs and option items for the ESearchBar */
enum {
SEARCH_SUMMARY_CONTAINS,
@@ -134,7 +133,6 @@ enum {
static guint cal_search_bar_signals[LAST_SIGNAL] = { 0 };
-
G_DEFINE_TYPE (CalSearchBar, cal_search_bar, E_FILTER_BAR_TYPE)
/* Class initialization function for the calendar search bar */
@@ -280,7 +278,6 @@ get_current_category (CalSearchBar *cal_search)
return NULL;
}
-
/* Returns a sexp for the selected category in the drop-down menu. The "All"
* option is returned as (const gchar *) 1, and the "Unfiled" option is returned
* as NULL.
@@ -605,7 +602,6 @@ setup_category_options (CalSearchBar *cal_search, CALSearchBarItem *subitems, gi
subitems[index].image = NULL;
}
-
/* Creates the suboptions menu for the ESearchBar with the list of categories */
static void
make_suboptions (CalSearchBar *cal_search)
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index 01e4fe5439..e849bf2e0b 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -126,7 +126,6 @@ show_month_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *pat
gnome_calendar_set_view (gcal, GNOME_CAL_MONTH_VIEW);
}
-
static void
show_list_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
@@ -137,7 +136,6 @@ show_list_view_clicked (BonoboUIComponent *uic, gpointer data, const gchar *path
gnome_calendar_set_view (gcal, GNOME_CAL_LIST_VIEW);
}
-
static void
purge_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path)
{
diff --git a/calendar/gui/calendar-commands.h b/calendar/gui/calendar-commands.h
index b1c093fb9e..605230302e 100644
--- a/calendar/gui/calendar-commands.h
+++ b/calendar/gui/calendar-commands.h
@@ -41,5 +41,4 @@ void calendar_goto_today (GnomeCalendar *gcal);
void calendar_command_print (GnomeCalendar *gcal, GtkPrintOperationAction action);
-
#endif /* CALENDAR_COMMANDS_H */
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index daa7e1c9a9..02bf9a0072 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -250,7 +250,6 @@ config_tasks_selection_changed_cb (GConfClient *client, guint id, GConfEntry *en
update_task_memo_selection (data, E_CAL_SOURCE_TYPE_TODO);
}
-
static void
config_primary_tasks_selection_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointer data)
{
@@ -263,7 +262,6 @@ config_memos_selection_changed_cb (GConfClient *client, guint id, GConfEntry *en
update_task_memo_selection (data, E_CAL_SOURCE_TYPE_JOURNAL);
}
-
static void
config_primary_memos_selection_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpointer data)
{
@@ -631,7 +629,6 @@ view_destroyed_cb (gpointer data, GObject *where_the_object_was)
}
}
-
/* GObject methods. */
static void
diff --git a/calendar/gui/calendar-component.h b/calendar/gui/calendar-component.h
index 1106d8ec62..fbdd8efd23 100644
--- a/calendar/gui/calendar-component.h
+++ b/calendar/gui/calendar-component.h
@@ -23,20 +23,17 @@
#ifndef _CALENDAR_COMPONENT_H_
#define _CALENDAR_COMPONENT_H_
-
#include <bonobo/bonobo-object.h>
#include <libedataserver/e-source-list.h>
#include <widgets/misc/e-activity-handler.h>
#include "Evolution.h"
-
#define CALENDAR_TYPE_COMPONENT (calendar_component_get_type ())
#define CALENDAR_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALENDAR_TYPE_COMPONENT, CalendarComponent))
#define CALENDAR_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALENDAR_TYPE_COMPONENT, CalendarComponentClass))
#define CALENDAR_IS_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALENDAR_TYPE_COMPONENT))
#define CALENDAR_IS_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), CALENDAR_TYPE_COMPONENT))
-
typedef struct _CalendarComponent CalendarComponent;
typedef struct _CalendarComponentPrivate CalendarComponentPrivate;
typedef struct _CalendarComponentClass CalendarComponentClass;
@@ -53,7 +50,6 @@ struct _CalendarComponentClass {
POA_GNOME_Evolution_Component__epv epv;
};
-
GType calendar_component_get_type (void);
#endif /* _CALENDAR_COMPONENT_H_ */
diff --git a/calendar/gui/calendar-config-keys.h b/calendar/gui/calendar-config-keys.h
index b4e95c2bd7..b12b3b2b92 100644
--- a/calendar/gui/calendar-config-keys.h
+++ b/calendar/gui/calendar-config-keys.h
@@ -74,7 +74,6 @@ G_BEGIN_DECLS
#define CALENDAR_CONFIG_MEMOS_SELECTED_MEMOS CALENDAR_CONFIG_PREFIX "/memos/selected_memos"
#define CALENDAR_CONFIG_PRIMARY_MEMOS CALENDAR_CONFIG_PREFIX "/memos/primary_memos"
-
/* Prompt settings */
#define CALENDAR_CONFIG_PROMPT_DELETE CALENDAR_CONFIG_PREFIX "/prompts/confirm_delete"
#define CALENDAR_CONFIG_PROMPT_PURGE CALENDAR_CONFIG_PREFIX "/prompts/confirm_purge"
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index f0b492d59c..81c0675bea 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -239,7 +239,6 @@ calendar_config_get_24_hour_format (void)
return TRUE;
}
-
void
calendar_config_set_24_hour_format (gboolean use_24_hour)
{
@@ -269,7 +268,6 @@ calendar_config_get_week_start_day (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_WEEK_START, NULL);
}
-
void
calendar_config_set_week_start_day (gint week_start_day)
{
@@ -299,7 +297,6 @@ calendar_config_get_day_start_hour (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_DAY_START_HOUR, NULL);
}
-
void
calendar_config_set_day_start_hour (gint day_start_hour)
{
@@ -328,7 +325,6 @@ calendar_config_get_day_start_minute (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_DAY_START_MINUTE, NULL);
}
-
void
calendar_config_set_day_start_minute (gint day_start_min)
{
@@ -357,7 +353,6 @@ calendar_config_get_day_end_hour (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_DAY_END_HOUR, NULL);
}
-
void
calendar_config_set_day_end_hour (gint day_end_hour)
{
@@ -386,7 +381,6 @@ calendar_config_get_day_end_minute (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_DAY_END_MINUTE, NULL);
}
-
void
calendar_config_set_day_end_minute (gint day_end_min)
{
@@ -416,7 +410,6 @@ calendar_config_get_time_divisions (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_TIME_DIVISIONS, NULL);
}
-
void
calendar_config_set_time_divisions (gint divisions)
{
@@ -487,7 +480,6 @@ calendar_config_get_marcus_bains (gboolean *show_line, const gchar **dayview_col
*timebar_color = tcolor;
}
-
void
calendar_config_add_notification_marcus_bains (GConfClientNotifyFunc func, gpointer data, gint *not_show, gint *not_dcolor, gint *not_tcolor)
{
@@ -507,7 +499,6 @@ calendar_config_get_dview_show_week_no (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_DV_WEEK_NUMBER, NULL);
}
-
void
calendar_config_set_dview_show_week_no (gboolean show_week_no)
{
@@ -537,7 +528,6 @@ calendar_config_get_dnav_show_week_no (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_DN_SHOW_WEEK_NUMBERS, NULL);
}
-
void
calendar_config_set_dnav_show_week_no (gboolean show_week_no)
{
@@ -567,7 +557,6 @@ calendar_config_get_hpane_pos (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_HPANE_POS, NULL);
}
-
void
calendar_config_set_hpane_pos (gint hpane_pos)
{
@@ -576,7 +565,6 @@ calendar_config_set_hpane_pos (gint hpane_pos)
gconf_client_set_int (config, CALENDAR_CONFIG_HPANE_POS, hpane_pos, NULL);
}
-
gint
calendar_config_get_vpane_pos (void)
{
@@ -585,7 +573,6 @@ calendar_config_get_vpane_pos (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_VPANE_POS, NULL);
}
-
void
calendar_config_set_vpane_pos (gint vpane_pos)
{
@@ -602,7 +589,6 @@ calendar_config_get_preview_state (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_TASK_PREVIEW, NULL);
}
-
void
calendar_config_set_preview_state (gboolean state)
{
@@ -631,7 +617,6 @@ calendar_config_get_month_hpane_pos (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_MONTH_HPANE_POS, NULL);
}
-
void
calendar_config_set_month_hpane_pos (gint hpane_pos)
{
@@ -640,7 +625,6 @@ calendar_config_set_month_hpane_pos (gint hpane_pos)
gconf_client_set_int (config, CALENDAR_CONFIG_MONTH_HPANE_POS, hpane_pos, NULL);
}
-
gint
calendar_config_get_month_vpane_pos (void)
{
@@ -649,7 +633,6 @@ calendar_config_get_month_vpane_pos (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_MONTH_VPANE_POS, NULL);
}
-
void
calendar_config_set_month_vpane_pos (gint vpane_pos)
{
@@ -666,7 +649,6 @@ calendar_config_get_tag_vpane_pos (void)
return gconf_client_get_float (config, CALENDAR_CONFIG_TAG_VPANE_POS, NULL);
}
-
void
calendar_config_set_tag_vpane_pos (gfloat vpane_pos)
{
@@ -721,7 +703,6 @@ calendar_config_set_primary_tasks (const gchar *primary_uid)
gconf_client_set_string (config, CALENDAR_CONFIG_PRIMARY_TASKS, primary_uid, NULL);
}
-
guint
calendar_config_add_notification_primary_tasks (GConfClientNotifyFunc func, gpointer data)
{
@@ -742,7 +723,6 @@ calendar_config_get_task_vpane_pos (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_TASK_VPANE_POS, NULL);
}
-
void
calendar_config_set_task_vpane_pos (gint vpane_pos)
{
@@ -799,7 +779,6 @@ calendar_config_set_primary_memos (const gchar *primary_uid)
gconf_client_set_string (config, CALENDAR_CONFIG_PRIMARY_MEMOS, primary_uid, NULL);
}
-
guint
calendar_config_add_notification_primary_memos (GConfClientNotifyFunc func, gpointer data)
{
@@ -822,7 +801,6 @@ calendar_config_get_compress_weekend (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_COMPRESS_WEEKEND, NULL);
}
-
void
calendar_config_set_compress_weekend (gboolean compress)
{
@@ -852,7 +830,6 @@ calendar_config_get_show_event_end (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_SHOW_EVENT_END, NULL);
}
-
void
calendar_config_set_show_event_end (gboolean show_end)
{
@@ -882,7 +859,6 @@ calendar_config_get_working_days (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_WORKING_DAYS, NULL);
}
-
void
calendar_config_set_working_days (CalWeekdays days)
{
@@ -912,7 +888,6 @@ calendar_config_get_hide_completed_tasks (void)
return gconf_client_get_bool (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED, NULL);
}
-
void
calendar_config_set_hide_completed_tasks (gboolean hide)
{
@@ -955,7 +930,6 @@ calendar_config_get_hide_completed_tasks_units (void)
return cu;
}
-
void
calendar_config_set_hide_completed_tasks_units (CalUnits cu)
{
@@ -999,7 +973,6 @@ calendar_config_get_hide_completed_tasks_value (void)
return gconf_client_get_int (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_VALUE, NULL);
}
-
void
calendar_config_set_hide_completed_tasks_value (gint value)
{
@@ -1082,7 +1055,6 @@ calendar_config_set_confirm_purge (gboolean confirm)
gconf_client_set_bool (config, CALENDAR_CONFIG_PROMPT_PURGE, confirm, NULL);
}
-
/**
* calendar_config_get_tasks_due_today_color:
* @color: the location to store the color
diff --git a/calendar/gui/calendar-config.h b/calendar/gui/calendar-config.h
index adcf2c0c37..3341b66163 100644
--- a/calendar/gui/calendar-config.h
+++ b/calendar/gui/calendar-config.h
@@ -47,7 +47,6 @@ typedef enum
CAL_SATURDAY = 1 << 6
} CalWeekdays;
-
/* Units for settings. */
typedef enum
{
@@ -56,7 +55,6 @@ typedef enum
CAL_MINUTES
} CalUnits;
-
void calendar_config_remove_notification (guint id);
/*
@@ -170,7 +168,6 @@ guint calendar_config_add_notification_primary_tasks (GConfClientNotifyFunc fu
gint calendar_config_get_task_vpane_pos (void);
void calendar_config_set_task_vpane_pos (gint vpane_pos);
-
/* The current list of memo lists selected */
GSList *calendar_config_get_memos_selected (void);
void calendar_config_set_memos_selected (GSList *selected);
diff --git a/calendar/gui/comp-util.c b/calendar/gui/comp-util.c
index cb3cf95def..30af43fd6d 100644
--- a/calendar/gui/comp-util.c
+++ b/calendar/gui/comp-util.c
@@ -66,8 +66,6 @@ cal_comp_util_add_exdate (ECalComponent *comp, time_t t, icaltimezone *zone)
e_cal_component_free_exdate_list (list);
}
-
-
/* Returns TRUE if the TZIDs are equivalent, i.e. both NULL or the same. */
static gboolean
e_cal_component_compare_tzid (const gchar *tzid1, const gchar *tzid2)
diff --git a/calendar/gui/comp-util.h b/calendar/gui/comp-util.h
index de6595672f..d46fcb79e2 100644
--- a/calendar/gui/comp-util.h
+++ b/calendar/gui/comp-util.h
@@ -31,7 +31,6 @@
void cal_comp_util_add_exdate (ECalComponent *comp, time_t t, icaltimezone *zone);
-
/* Returns TRUE if the component uses the given timezone for both DTSTART
and DTEND, or if the UTC offsets of the start and end times are the same
as in the given zone. */
diff --git a/calendar/gui/dialogs/cal-attachment-select-file.c b/calendar/gui/dialogs/cal-attachment-select-file.c
index b33753c42e..b303a763ce 100644
--- a/calendar/gui/dialogs/cal-attachment-select-file.c
+++ b/calendar/gui/dialogs/cal-attachment-select-file.c
@@ -25,7 +25,6 @@
* specific to the calendar component have been flagged by some comments
* fwiw */
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index b7b6e33fcf..09f6d104b6 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -59,8 +59,6 @@ static GtkVBoxClass *parent_class = NULL;
GtkWidget *cal_prefs_dialog_create_time_edit (void);
-
-
static void
calendar_prefs_dialog_finalize (GObject *obj)
{
@@ -565,7 +563,6 @@ setup_changes (CalendarPrefsDialog *prefs)
g_signal_connect (G_OBJECT (prefs->notify_with_tray), "toggled", G_CALLBACK (notify_with_tray_toggled), prefs);
g_signal_connect (G_OBJECT (prefs->alarm_list_widget), "selection_changed", G_CALLBACK (alarms_selection_changed), prefs);
-
g_signal_connect (G_OBJECT (prefs->template_url), "changed", G_CALLBACK (template_url_changed), prefs);
}
@@ -703,7 +700,6 @@ show_config (CalendarPrefsDialog *prefs)
gtk_widget_set_sensitive (prefs->use_12_hour, sensitive);
gtk_widget_set_sensitive (prefs->use_24_hour, sensitive);
-
/* Time Divisions. */
time_divisions = calendar_config_get_time_divisions ();
e_dialog_combo_box_set (prefs->time_divisions, time_divisions, time_division_map);
@@ -860,7 +856,6 @@ calendar_prefs_dialog_construct (CalendarPrefsDialog *prefs,
prefs->tasks_hide_completed_interval = glade_xml_get_widget (gui, "tasks_hide_completed_interval");
prefs->tasks_hide_completed_units = glade_xml_get_widget (gui, "tasks_hide_completed_units");
-
/* Alarms tab */
prefs->notify_with_tray = glade_xml_get_widget (gui, "notify_with_tray");
prefs->scrolled_window = glade_xml_get_widget (gui, "calendar-source-scrolled-window");
diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c
index e9661db372..e330a7f9d4 100644
--- a/calendar/gui/dialogs/comp-editor-util.c
+++ b/calendar/gui/dialogs/comp-editor-util.c
@@ -81,7 +81,6 @@ comp_editor_dates (CompEditorPageDates *dates, ECalComponent *comp)
e_cal_component_get_completed (comp, &dates->complete);
}
-
/* This frees the dates in the CompEditorPageDates struct. But it doesn't free
* the struct (as that is usually static).
*/
@@ -109,7 +108,6 @@ comp_editor_free_dates (CompEditorPageDates *dates)
e_cal_component_free_icaltimetype (dates->complete);
}
-
/* dtstart is only passed in if tt is the dtend. */
static void
write_label_piece (struct icaltimetype *tt,
@@ -249,7 +247,6 @@ comp_editor_new_date_edit (gboolean show_date, gboolean show_time,
return GTK_WIDGET (dedit);
}
-
/* Returns the current time, for EDateEdit widgets and ECalendar items in the
dialogs.
FIXME: Should probably use the timezone from somewhere in the component
@@ -278,8 +275,6 @@ comp_editor_get_current_time (GtkObject *object, gpointer data)
return tmp_tm;
}
-
-
/**
* comp_editor_strip_categories:
* @categories: A string of category names entered by the user.
diff --git a/calendar/gui/dialogs/comp-editor-util.h b/calendar/gui/dialogs/comp-editor-util.h
index 3bf8921291..c2b5a052a3 100644
--- a/calendar/gui/dialogs/comp-editor-util.h
+++ b/calendar/gui/dialogs/comp-editor-util.h
@@ -38,7 +38,6 @@ GtkWidget *comp_editor_new_date_edit (gboolean show_date, gboolean show_time,
struct tm comp_editor_get_current_time (GtkObject *object, gpointer data);
-
gchar *comp_editor_strip_categories (const gchar *categories);
#endif
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index 64f80b4557..3ed798a6f0 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -448,7 +448,6 @@ save_comp (CompEditor *editor)
if (e_cal_component_has_recurrences (priv->comp) && priv->mod == CALOBJ_MOD_ALL)
comp_util_sanitize_recurrence_master (priv->comp, priv->client);
-
if (priv->mod == CALOBJ_MOD_THIS) {
e_cal_component_set_rdate_list (priv->comp, NULL);
e_cal_component_set_rrule_list (priv->comp, NULL);
@@ -1813,7 +1812,6 @@ comp_editor_show_help (CompEditor *editor)
e_display_help (GTK_WINDOW (editor), class->help_section);
}
-
/* Closes the dialog box and emits the appropriate signals */
static void
close_dialog (CompEditor *editor)
@@ -2654,7 +2652,6 @@ real_send_comp (CompEditor *editor, ECalComponentItipMethod method, gboolean str
}
-
/**
* comp_editor_edit_comp:
* @editor: A component editor
@@ -2791,7 +2788,6 @@ comp_editor_close (CompEditor *editor)
return close;
}
-
/* Utility function to get the mime-attachment list from the attachment
* bar for sending the comp via itip. The list and its contents must
* be freed by the caller.
diff --git a/calendar/gui/dialogs/comp-editor.h b/calendar/gui/dialogs/comp-editor.h
index 6a8f8e4f93..6753635b1a 100644
--- a/calendar/gui/dialogs/comp-editor.h
+++ b/calendar/gui/dialogs/comp-editor.h
@@ -138,7 +138,6 @@ gboolean comp_editor_send_comp (CompEditor *editor,
GSList * comp_editor_get_mime_attach_list(CompEditor *editor);
gboolean comp_editor_close (CompEditor *editor);
-
void comp_editor_sensitize_attachment_bar
(CompEditor *editor,
gboolean set);
diff --git a/calendar/gui/dialogs/e-delegate-dialog.c b/calendar/gui/dialogs/e-delegate-dialog.c
index 87fb164e6a..284076a7bc 100644
--- a/calendar/gui/dialogs/e-delegate-dialog.c
+++ b/calendar/gui/dialogs/e-delegate-dialog.c
@@ -114,7 +114,6 @@ e_delegate_dialog_finalize (GObject *object)
(* G_OBJECT_CLASS (e_delegate_dialog_parent_class)->finalize) (object);
}
-
EDelegateDialog *
e_delegate_dialog_construct (EDelegateDialog *edd, const gchar *name, const gchar *address)
{
@@ -273,7 +272,6 @@ e_delegate_dialog_get_delegate (EDelegateDialog *edd)
return g_strdup (priv->address);
}
-
gchar *
e_delegate_dialog_get_delegate_name (EDelegateDialog *edd)
{
diff --git a/calendar/gui/dialogs/e-delegate-dialog.h b/calendar/gui/dialogs/e-delegate-dialog.h
index 6ff872e7e4..a70488a0ea 100644
--- a/calendar/gui/dialogs/e-delegate-dialog.h
+++ b/calendar/gui/dialogs/e-delegate-dialog.h
@@ -35,7 +35,6 @@
#define E_IS_DELEGATE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_DELEGATE_DIALOG))
#define E_IS_DELEGATE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_DELEGATE_DIALOG))
-
typedef struct _EDelegateDialog EDelegateDialog;
typedef struct _EDelegateDialogClass EDelegateDialogClass;
typedef struct _EDelegateDialogPrivate EDelegateDialogPrivate;
@@ -69,7 +68,6 @@ void e_delegate_dialog_set_delegate (EDelegateDialog *etd,
GtkWidget* e_delegate_dialog_get_toplevel (EDelegateDialog *etd);
-
#endif /* __E_DELEGATE_DIALOG_H__ */
diff --git a/calendar/gui/dialogs/e-send-options-utils.c b/calendar/gui/dialogs/e-send-options-utils.c
index 87f4584133..c4ed13f2cb 100644
--- a/calendar/gui/dialogs/e-send-options-utils.c
+++ b/calendar/gui/dialogs/e-send-options-utils.c
@@ -208,7 +208,6 @@ e_sendoptions_utils_fill_component (ESendOptionsDialog *sod, ECalComponent *comp
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-TRACKINFO");
icalcomponent_add_property (icalcomp, prop);
-
prop = icalproperty_new_x ((const gchar *) g_strdup_printf ("%d", sopts->opened));
icalproperty_set_x_name (prop, "X-EVOLUTION-OPTIONS-OPENED");
icalcomponent_add_property (icalcomp, prop);
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 29e5e1da76..a133904b65 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -1273,7 +1273,6 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
e_cal_component_set_dtstart (comp, &start_date);
e_cal_component_set_dtend (comp, &end_date);
-
/* Categories */
cat = e_dialog_editable_get (priv->categories);
@@ -1457,7 +1456,6 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp)
return FALSE;
}
-
if (flags & COMP_EDITOR_DELEGATE) {
GSList *attendee_list, *l;
gint i;
@@ -1985,7 +1983,6 @@ list_view_event (EMeetingListView *list_view, GdkEvent *event, EventPage *epage)
return FALSE;
}
-
static gboolean
list_key_press (EMeetingListView *list_view, GdkEventKey *event, EventPage *epage)
{
@@ -2259,7 +2256,6 @@ get_widgets (EventPage *epage)
gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (priv->list_view));
gtk_box_pack_start (GTK_BOX (priv->list_box), sw, TRUE, TRUE, 0);
-
/* Glade's visibility flag doesn't seem to work for custom widgets */
priv->start_time = GW ("start-time");
gtk_widget_show (priv->start_time);
@@ -2306,7 +2302,6 @@ summary_changed_cb (GtkEditable *editable,
g_free (summary);
}
-
/* Note that this assumes that the start_tt and end_tt passed to it are the
dates visible to the user. For DATE values, we have to add 1 day to the
end_tt before emitting the signal. */
@@ -2347,7 +2342,6 @@ notify_dates_changed (EventPage *epage, struct icaltimetype *start_tt,
&dates);
}
-
static gboolean
check_start_before_end (struct icaltimetype *start_tt,
icaltimezone *start_zone,
@@ -2385,7 +2379,6 @@ check_start_before_end (struct icaltimetype *start_tt,
return FALSE;
}
-
/*
* This is called whenever the start or end dates or timezones is changed.
* It makes sure that the start date < end date. It also emits the notification
@@ -2463,7 +2456,6 @@ times_updated (EventPage *epage, gboolean adjust_end_time)
}
}
-
if (set_start_date) {
g_signal_handlers_block_matched (priv->start_time, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, epage);
e_date_edit_set_date (E_DATE_EDIT (priv->start_time),
@@ -2829,7 +2821,6 @@ init_widgets (EventPage *epage)
g_signal_connect((priv->summary), "changed",
G_CALLBACK (summary_changed_cb), epage);
-
/* Description */
text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->description));
diff --git a/calendar/gui/dialogs/memo-page.c b/calendar/gui/dialogs/memo-page.c
index 4254dce774..fd218a8ec1 100644
--- a/calendar/gui/dialogs/memo-page.c
+++ b/calendar/gui/dialogs/memo-page.c
@@ -389,7 +389,6 @@ get_recipients (ECalComponent *comp)
return "";
}
-
static gboolean
fill_comp_with_recipients (ENameSelector *name_selector, ECalComponent *comp)
{
diff --git a/calendar/gui/dialogs/recur-comp.c b/calendar/gui/dialogs/recur-comp.c
index 1323755cb1..0d9197546b 100644
--- a/calendar/gui/dialogs/recur-comp.c
+++ b/calendar/gui/dialogs/recur-comp.c
@@ -68,7 +68,6 @@ recur_component_dialog (ECal *client,
return FALSE;
}
-
dialog = gtk_message_dialog_new (parent, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_OK_CANCEL, "%s", str);
g_free (str);
gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c
index 5fbf69df74..092a44db15 100644
--- a/calendar/gui/dialogs/recurrence-page.c
+++ b/calendar/gui/dialogs/recurrence-page.c
@@ -2387,7 +2387,6 @@ recurrence_page_new (CompEditor *editor)
return rpage;
}
-
GtkWidget *make_exdate_date_edit (void);
GtkWidget *
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index c85ccbb4fe..712d2708b9 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -242,7 +242,6 @@ update_time (SchedulePage *spage, ECalComponentDateTime *start_date, ECalCompone
}
-
/* Fills the widgets with default values */
static void
clear_widgets (SchedulePage *spage)
diff --git a/calendar/gui/dialogs/schedule-page.h b/calendar/gui/dialogs/schedule-page.h
index 71eec02763..59b97c754f 100644
--- a/calendar/gui/dialogs/schedule-page.h
+++ b/calendar/gui/dialogs/schedule-page.h
@@ -64,7 +64,6 @@ struct _SchedulePageClass {
CompEditorPageClass parent_class;
};
-
GType schedule_page_get_type (void);
SchedulePage * schedule_page_construct (SchedulePage *mpage,
EMeetingStore *ems);
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index eeacc0774f..e6104ee2d0 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -168,7 +168,6 @@ task_details_page_focus_main_widget (CompEditorPage *page)
gtk_widget_grab_focus (priv->status_combo);
}
-
static TaskEditorPriority
priority_value_to_index (gint priority_value)
{
@@ -492,7 +491,6 @@ get_widgets (TaskDetailsPage *tdpage)
&& priv->url);
}
-
static void
complete_date_changed (TaskDetailsPage *tdpage, time_t ctime, gboolean complete)
{
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index c74ed46db3..2829def666 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -437,7 +437,6 @@ task_editor_edit_comp (CompEditor *editor, ECalComponent *comp)
e_meeting_attendee_set_edit_level (ia, E_MEETING_ATTENDEE_EDIT_NONE);
}
-
comp_editor_set_group_item (editor, TRUE);
priv->assignment_shown = TRUE;
}
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 3cdbe344e9..8a273c2944 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -910,7 +910,6 @@ task_page_fill_component (CompEditorPage *page, ECalComponent *comp)
return FALSE;
}
-
if (flags & COMP_EDITOR_DELEGATE ) {
GSList *attendee_list, *l;
gint i;
@@ -982,7 +981,6 @@ static void edit_clicked_cb (GtkButton *btn, TaskPage *tpage)
gtk_tree_path_free (path);
}
-
static gboolean
existing_attendee (EMeetingAttendee *ia, ECalComponent *comp)
{
@@ -1296,7 +1294,6 @@ list_view_event (EMeetingListView *list_view, GdkEvent *event, TaskPage *page) {
return FALSE;
}
-
static gboolean
list_key_press (EMeetingListView *list_view, GdkEventKey *event, TaskPage *page)
{
@@ -1684,7 +1681,6 @@ times_updated (TaskPage *tpage, gboolean adjust_end_time)
set_start_date = TRUE;
}
-
if (set_start_date) {
g_signal_handlers_block_matched (priv->start_date, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, tpage);
e_date_edit_set_date (E_DATE_EDIT (priv->start_date), start_tt.year, start_tt.month, start_tt.day);
diff --git a/calendar/gui/e-cal-component-preview.c b/calendar/gui/e-cal-component-preview.c
index 4340f9cdd8..0374e1f093 100644
--- a/calendar/gui/e-cal-component-preview.c
+++ b/calendar/gui/e-cal-component-preview.c
@@ -92,7 +92,6 @@ timet_to_str_with_zone (ECalComponentDateTime *dt,
zone = NULL;
}
-
itt = *dt->value;
if (zone)
icaltimezone_convert_time (&itt, zone, default_zone);
diff --git a/calendar/gui/e-cal-component-preview.h b/calendar/gui/e-cal-component-preview.h
index 053c3c8266..8b2b0acd18 100644
--- a/calendar/gui/e-cal-component-preview.h
+++ b/calendar/gui/e-cal-component-preview.h
@@ -65,7 +65,6 @@ struct _ECalComponentPreviewClass {
void (* selection_changed) (ECalComponentPreview *preview, gint n_selected);
};
-
GType e_cal_component_preview_get_type(void);
GtkWidget * e_cal_component_preview_new (void);
icaltimezone * e_cal_component_preview_get_default_timezone
diff --git a/calendar/gui/e-cal-list-view.c b/calendar/gui/e-cal-list-view.c
index 26edef8bcd..65a8ec5f9d 100644
--- a/calendar/gui/e-cal-list-view.c
+++ b/calendar/gui/e-cal-list-view.c
@@ -384,7 +384,6 @@ find_meeting (icalcomponent *icalcomp)
return prop ? TRUE: FALSE;
}
-
static gboolean
e_cal_list_view_on_table_double_click (GtkWidget *table, gint row, gint col, GdkEvent *event,
gpointer data)
diff --git a/calendar/gui/e-cal-list-view.h b/calendar/gui/e-cal-list-view.h
index 656a58261b..df5b3dbeab 100644
--- a/calendar/gui/e-cal-list-view.h
+++ b/calendar/gui/e-cal-list-view.h
@@ -40,7 +40,6 @@ G_BEGIN_DECLS
#define E_CAL_LIST_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, e_cal_list_view_get_type (), ECalListViewClass)
#define E_IS_CAL_LIST_VIEW(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, e_cal_list_view_get_type ())
-
typedef struct _ECalListView ECalListView;
typedef struct _ECalListViewClass ECalListViewClass;
@@ -72,7 +71,6 @@ struct _ECalListViewClass
ECalendarViewClass parent_class;
};
-
GType e_cal_list_view_get_type (void);
GtkWidget *e_cal_list_view_construct (ECalListView *cal_list_view);
@@ -83,7 +81,6 @@ void e_cal_list_view_save_state (ECalListView *cal_list_view, gchar *filename);
gboolean e_cal_list_view_get_range_shown (ECalListView *cal_list_view, GDate *start_date,
gint *days_shown);
-
G_END_DECLS
#endif /* _E_CAL_LIST_VIEW_H_ */
diff --git a/calendar/gui/e-cal-model-memos.c b/calendar/gui/e-cal-model-memos.c
index 995ed9c5cb..0bb086b4f2 100644
--- a/calendar/gui/e-cal-model-memos.c
+++ b/calendar/gui/e-cal-model-memos.c
@@ -135,7 +135,6 @@ ecmm_value_at (ETableModel *etm, gint col, gint row)
return (gpointer) "";
}
-
static void
ecmm_set_value_at (ETableModel *etm, gint col, gint row, gconstpointer value)
{
diff --git a/calendar/gui/e-cal-model-tasks.c b/calendar/gui/e-cal-model-tasks.c
index 5a0a75bea2..acf3175765 100644
--- a/calendar/gui/e-cal-model-tasks.c
+++ b/calendar/gui/e-cal-model-tasks.c
@@ -199,7 +199,6 @@ ensure_task_partially_complete (ECalModelComponent *comp_data)
icalcomponent_add_property (comp_data->icalcomp, icalproperty_new_status (ICAL_STATUS_INPROCESS));
}
-
/* This makes sure a task is marked as incomplete. It clears the
"Date Completed" property. If the percent is set to 100 it removes it,
and if the status is "Completed" it sets it to "Needs Action".
@@ -410,7 +409,6 @@ typedef enum {
E_CAL_MODEL_TASKS_DUE_COMPLETE
} ECalModelTasksDueStatus;
-
static ECalModelTasksDueStatus
get_due_status (ECalModelTasks *model, ECalModelComponent *comp_data)
{
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index 672375c5f8..0ddcc20d07 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -257,7 +257,6 @@ e_cal_model_dispose (GObject *object)
priv->clients = g_list_remove (priv->clients, client_data);
-
g_object_unref (client_data->client);
if (client_data->query)
g_object_unref (client_data->query);
@@ -1798,7 +1797,6 @@ cal_opened_cb (ECal *client, ECalendarStatus status, gpointer user_data)
update_e_cal_view_for_client (model, client_data);
}
-
static ECalModelClient *
add_new_client (ECalModel *model, ECal *client, gboolean do_query)
{
@@ -2318,7 +2316,6 @@ copy_ecdv (ECellDateEditValue *ecdv)
return new_ecdv;
} */
-
struct _ECalModelComponentPrivate {
gchar nouse;
};
@@ -2340,7 +2337,6 @@ e_cal_model_component_class_init (ECalModelComponentClass *klass)
object_class->finalize = e_cal_model_component_finalize;
}
-
static void
e_cal_model_component_finalize (GObject *object)
{
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index d6bf0ed4c5..cdbce07ac7 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -315,8 +315,6 @@ e_cal_popup_target_new_select(ECalPopup *eabp, struct _ECalModel *model, GPtrArr
if (!read_only)
mask &= ~E_CAL_POPUP_SELECT_EDITABLE;
-
-
if (!e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT)
&& !e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_NO_CONV_TO_ASSIGN_TASK))
mask &= ~E_CAL_POPUP_SELECT_ASSIGNABLE;
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index 7771be234f..3d08d7850f 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -644,7 +644,6 @@ calendar_table_constructed (GObject *object)
e_table_extras_add_cell (extras, "calstring", cell);
-
/*
* Date fields.
*/
@@ -1000,7 +999,6 @@ e_calendar_table_get_model (ECalendarTable *cal_table)
return cal_table->priv->model;
}
-
/**
* e_calendar_table_get_table:
* @cal_table: A calendar table.
@@ -1581,7 +1579,6 @@ e_calendar_table_load_state (ECalendarTable *cal_table,
e_table_load_state (table, filename);
}
-
/* Saves the state of the table (headers shown etc.) to the given file. */
void
e_calendar_table_save_state (ECalendarTable *cal_table,
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 82b4704da2..af99121433 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -73,7 +73,6 @@ static void e_calendar_view_get_property (GObject *object, guint property_id, GV
static void e_calendar_view_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec);
static void e_calendar_view_destroy (GtkObject *object);
-
/* Property IDs */
enum props {
PROP_0,
@@ -253,7 +252,6 @@ e_calendar_view_class_init (ECalendarViewClass *klass)
#endif
}
-
void
e_calendar_view_add_event (ECalendarView *cal_view, ECal *client, time_t dtstart,
icaltimezone *default_zone, icalcomponent *icalcomp, gboolean in_top_canvas)
@@ -1150,13 +1148,11 @@ e_calendar_view_delete_selected_occurrence (ECalendarView *cal_view)
} else
zone = e_calendar_view_get_timezone (cal_view);
-
if (is_instance)
rid = e_cal_component_get_recurid_as_string (comp);
e_cal_component_free_datetime (&dt);
-
if ((itip_organizer_is_user (comp, event->comp_data->client) || itip_sentby_is_user (comp, event->comp_data->client))
&& cancel_component_dialog ((GtkWindow *) gtk_widget_get_toplevel (GTK_WIDGET (cal_view)),
event->comp_data->client,
@@ -1346,7 +1342,6 @@ transfer_item_to (ECalendarViewEvent *event, ECal *dest_client, gboolean remove_
if (e_cal_get_object (dest_client, uid, NULL, &orig_icalcomp, NULL)) {
icalcomponent_free (orig_icalcomp);
-
if (!e_cal_modify_object (dest_client, event->comp_data->icalcomp, CALOBJ_MOD_ALL, NULL))
return;
} else {
@@ -1503,7 +1498,6 @@ set_attendee_status_for_delegate (icalcomponent *icalcomp, ECal *client)
address = itip_get_comp_attendee (comp, client);
-
for (prop = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY);
prop;
prop = icalcomponent_get_next_property (icalcomp, ICAL_ATTENDEE_PROPERTY)) {
@@ -1544,7 +1538,6 @@ set_attendee_status_for_delegate (icalcomponent *icalcomp, ECal *client)
g_free (temp);
}
-
g_free (address);
g_object_unref (comp);
}
@@ -1673,7 +1666,6 @@ on_unrecur_appointment (EPopup *ep, EPopupItem *pitem, gpointer data)
e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (event->comp_data->icalcomp));
id = e_cal_component_get_id (comp);
-
/* For the unrecurred instance we duplicate the original object,
create a new uid for it, get rid of the recurrence rules, and set
the start & end times to the instances times. */
@@ -2069,7 +2061,6 @@ e_calendar_view_edit_appointment (ECalendarView *cal_view,
g_object_unref (comp);
}
-
e_calendar_view_open_event_with_flags (cal_view, client, icalcomp, flags);
}
diff --git a/calendar/gui/e-cell-date-edit-text.c b/calendar/gui/e-cell-date-edit-text.c
index efe251aa0f..64dd48ddf1 100644
--- a/calendar/gui/e-cell-date-edit-text.c
+++ b/calendar/gui/e-cell-date-edit-text.c
@@ -48,7 +48,6 @@ e_cell_date_edit_text_set_timezone (ECellDateEditText *ecd,
ecd->zone = zone;
}
-
void
e_cell_date_edit_text_set_use_24_hour_format (ECellDateEditText *ecd,
gboolean use_24_hour)
@@ -58,7 +57,6 @@ e_cell_date_edit_text_set_use_24_hour_format (ECellDateEditText *ecd,
ecd->use_24_hour_format = use_24_hour;
}
-
static gchar *
ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row)
{
@@ -82,14 +80,12 @@ ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row)
return g_strdup (buffer);
}
-
static void
ecd_free_text (ECellText *cell, gchar *text)
{
g_free (text);
}
-
/* FIXME: We need to set the "transient_for" property for the dialog. */
static void
show_date_warning (ECellDateEditText *ecd)
@@ -123,7 +119,6 @@ show_date_warning (ECellDateEditText *ecd)
gtk_widget_destroy (dialog);
}
-
static void
ecd_set_value (ECellText *cell, ETableModel *model, gint col, gint row,
const gchar *text)
@@ -176,7 +171,6 @@ ecd_set_value (ECellText *cell, ETableModel *model, gint col, gint row,
e_table_model_set_value_at (model, col, row, value);
}
-
static void
e_cell_date_edit_text_class_init (ECellDateEditTextClass *ecdet)
{
@@ -187,7 +181,6 @@ e_cell_date_edit_text_class_init (ECellDateEditTextClass *ecdet)
ectc->set_value = ecd_set_value;
}
-
static void
e_cell_date_edit_text_init (ECellDateEditText *ecd)
{
@@ -195,7 +188,6 @@ e_cell_date_edit_text_init (ECellDateEditText *ecd)
ecd->use_24_hour_format = TRUE;
}
-
/**
* e_cell_date_edit_text_new:
*
diff --git a/calendar/gui/e-cell-date-edit-text.h b/calendar/gui/e-cell-date-edit-text.h
index 0f557afade..5dc1f0c4bd 100644
--- a/calendar/gui/e-cell-date-edit-text.h
+++ b/calendar/gui/e-cell-date-edit-text.h
@@ -59,7 +59,6 @@ GType e_cell_date_edit_text_get_type (void);
ECell *e_cell_date_edit_text_new (const gchar *fontname,
GtkJustification justify);
-
void e_cell_date_edit_text_set_timezone (ECellDateEditText *ecd,
icaltimezone *zone);
void e_cell_date_edit_text_set_use_24_hour_format (ECellDateEditText *ecd,
diff --git a/calendar/gui/e-comp-editor-registry.h b/calendar/gui/e-comp-editor-registry.h
index 0b45a53cbc..3f9d195666 100644
--- a/calendar/gui/e-comp-editor-registry.h
+++ b/calendar/gui/e-comp-editor-registry.h
@@ -55,7 +55,6 @@ struct _ECompEditorRegistryClass {
typedef void (* ECompEditorRegistryForeachFn) (CompEditor *editor, gpointer data);
-
GType e_comp_editor_registry_get_type (void);
@@ -71,4 +70,3 @@ G_END_DECLS
#endif /* _E_COMP_EDITOR_REGISTRY_H_ */
-
diff --git a/calendar/gui/e-day-view-config.c b/calendar/gui/e-day-view-config.c
index 942f73933e..a193e7bfa0 100644
--- a/calendar/gui/e-day-view-config.c
+++ b/calendar/gui/e-day-view-config.c
@@ -281,7 +281,6 @@ day_end_hour_changed_cb (GConfClient *client, guint id, GConfEntry *entry, gpoin
set_day_end_hour (priv->view);
}
-
static void
set_day_end_minute (EDayView *day_view)
{
diff --git a/calendar/gui/e-day-view-layout.c b/calendar/gui/e-day-view-layout.c
index ab1f6c0fd0..51ced181b7 100644
--- a/calendar/gui/e-day-view-layout.c
+++ b/calendar/gui/e-day-view-layout.c
@@ -52,7 +52,6 @@ static void e_day_view_recalc_cols_per_row (gint rows,
guint8 *cols_per_row,
guint16 *group_starts);
-
void
e_day_view_layout_long_events (GArray *events,
gint days_shown,
@@ -86,7 +85,6 @@ e_day_view_layout_long_events (GArray *events,
g_free (grid);
}
-
static void
e_day_view_layout_long_event (EDayViewEvent *event,
guint8 *grid,
@@ -128,7 +126,6 @@ e_day_view_layout_long_event (EDayViewEvent *event,
*rows_in_top_display = MAX (*rows_in_top_display, free_row + 1);
}
-
/* returns maximum number of columns among all rows */
gint
e_day_view_layout_day_events (GArray *events,
@@ -197,7 +194,6 @@ e_day_view_layout_day_events (GArray *events,
return res;
}
-
/* Finds the first free position to place the event in.
Increments the number of events in each of the rows it covers, and makes
sure they are all in one group. */
@@ -275,7 +271,6 @@ e_day_view_layout_day_event (EDayViewEvent *event,
}
}
-
/* For each group of rows, find the max number of events in all the
rows, and set the number of cols in each of the rows to that. */
static void
@@ -299,7 +294,6 @@ e_day_view_recalc_cols_per_row (gint rows,
}
}
-
/* Expands the event horizontally to fill any free space. */
static void
e_day_view_expand_day_event (EDayViewEvent *event,
@@ -333,7 +327,6 @@ e_day_view_expand_day_event (EDayViewEvent *event,
}
}
-
/* Find the start and end days for the event. */
gboolean
e_day_view_find_long_event_days (EDayViewEvent *event,
@@ -369,4 +362,3 @@ e_day_view_find_long_event_days (EDayViewEvent *event,
return TRUE;
}
-
diff --git a/calendar/gui/e-day-view-layout.h b/calendar/gui/e-day-view-layout.h
index 36f2e0c52d..c169a06b59 100644
--- a/calendar/gui/e-day-view-layout.h
+++ b/calendar/gui/e-day-view-layout.h
@@ -36,7 +36,6 @@ void e_day_view_layout_long_events (GArray *events,
time_t *day_starts,
gint *rows_in_top_display);
-
gint e_day_view_layout_day_events (GArray *events,
gint rows,
gint mins_per_row,
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index acbc192218..b55dba425c 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -116,14 +116,12 @@ e_day_view_main_item_class_init (EDayViewMainItemClass *class)
#endif
}
-
static void
e_day_view_main_item_init (EDayViewMainItem *dvtitem)
{
dvtitem->day_view = NULL;
}
-
static void
e_day_view_main_item_set_property (GObject *object,
guint property_id,
@@ -143,7 +141,6 @@ e_day_view_main_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_day_view_main_item_update (GnomeCanvasItem *item,
double *affine,
@@ -160,7 +157,6 @@ e_day_view_main_item_update (GnomeCanvasItem *item,
item->y2 = INT_MAX;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -371,7 +367,6 @@ e_day_view_main_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable,
day);
}
-
if (e_day_view_get_show_marcus_bains (day_view)) {
icaltimezone *zone;
struct icaltimetype time_now, day_start;
@@ -413,7 +408,6 @@ e_day_view_main_item_draw (GnomeCanvasItem *canvas_item, GdkDrawable *drawable,
cairo_destroy (cr);
}
-
static void
e_day_view_main_item_draw_events_in_vbars (EDayViewMainItem *dvmitem,
GdkDrawable *drawable,
@@ -455,7 +449,6 @@ e_day_view_main_item_draw_events_in_vbars (EDayViewMainItem *dvmitem,
}
}
-
comp = e_cal_component_new ();
e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (event->comp_data->icalcomp));
@@ -494,7 +487,6 @@ e_day_view_main_item_draw_events_in_vbars (EDayViewMainItem *dvmitem,
cairo_destroy (cr);
}
-
static void
e_day_view_main_item_draw_long_events_in_vbars (EDayViewMainItem *dvmitem,
GdkDrawable *drawable,
@@ -583,7 +575,6 @@ e_day_view_main_item_draw_long_events_in_vbars (EDayViewMainItem *dvmitem,
cairo_destroy (cr);
}
-
static void
e_day_view_main_item_draw_day_events (EDayViewMainItem *dvmitem,
GdkDrawable *drawable,
@@ -1013,7 +1004,6 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
else if (bar_y2 < scroll_flag)
event->end_minute -= day_view->mins_per_row;
-
comp = e_cal_component_new ();
e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (event->comp_data->icalcomp));
@@ -1174,7 +1164,6 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
icon_y += icon_y_inc;
}
-
if (draw_meeting_icon && fit_in_event ()) {
max_icon_w = item_x + item_w - icon_x
- E_DAY_VIEW_EVENT_BORDER_WIDTH;
@@ -1342,7 +1331,6 @@ e_day_view_main_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
static gint
e_day_view_main_item_event (GnomeCanvasItem *item, GdkEvent *event)
{
@@ -1360,4 +1348,3 @@ e_day_view_main_item_event (GnomeCanvasItem *item, GdkEvent *event)
return FALSE;
}
-
diff --git a/calendar/gui/e-day-view-main-item.h b/calendar/gui/e-day-view-main-item.h
index 3f28bde608..5204115e88 100644
--- a/calendar/gui/e-day-view-main-item.h
+++ b/calendar/gui/e-day-view-main-item.h
@@ -51,10 +51,8 @@ typedef struct {
} EDayViewMainItemClass;
-
GType e_day_view_main_item_get_type (void);
-
G_END_DECLS
#endif /* _E_DAY_VIEW_MAIN_ITEM_H_ */
diff --git a/calendar/gui/e-day-view-time-item.c b/calendar/gui/e-day-view-time-item.c
index 232534d51a..36a7b49ae2 100644
--- a/calendar/gui/e-day-view-time-item.c
+++ b/calendar/gui/e-day-view-time-item.c
@@ -35,7 +35,6 @@
#include <widgets/e-timezone-dialog/e-timezone-dialog.h>
#include <libedataserver/e-data-server-util.h>
-
/* The spacing between items in the time column. GRID_X_PAD is the space down
either side of the column, i.e. outside the main horizontal grid lines.
HOUR_L_PAD & HOUR_R_PAD are the spaces on the left & right side of the
@@ -127,7 +126,6 @@ e_day_view_time_item_class_init (EDayViewTimeItemClass *class)
G_PARAM_WRITABLE));
}
-
static void
e_day_view_time_item_init (EDayViewTimeItem *dvtmitem)
{
@@ -197,7 +195,6 @@ e_day_view_time_item_update (GnomeCanvasItem *item,
item->y2 = INT_MAX;
}
-
/* Returns the minimum width needed for the column, by adding up all the
maximum widths of the strings. The string widths are all calculated in
the style_set handlers of EDayView and EDayViewTimeCanvas. */
@@ -267,7 +264,6 @@ e_day_view_time_item_get_column_width (EDayViewTimeItem *dvtmitem)
return dvtmitem->column_width;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -642,7 +638,6 @@ e_day_view_time_item_increment_time (gint *hour,
}
}
-
static double
e_day_view_time_item_point (GnomeCanvasItem *item, double x, double y,
gint cx, gint cy,
@@ -652,7 +647,6 @@ e_day_view_time_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
static gint
e_day_view_time_item_event (GnomeCanvasItem *item,
GdkEvent *event)
@@ -823,7 +817,6 @@ e_day_view_time_item_show_popup_menu (EDayViewTimeItem *dvtmitem,
event->button.button, event->button.time);
}
-
static void
e_day_view_time_item_on_set_divisions (GtkWidget *item,
EDayViewTimeItem *dvtmitem)
@@ -842,7 +835,6 @@ e_day_view_time_item_on_set_divisions (GtkWidget *item,
calendar_config_set_time_divisions (divisions);
}
-
static void
e_day_view_time_item_on_button_press (EDayViewTimeItem *dvtmitem,
GdkEvent *event)
@@ -874,7 +866,6 @@ e_day_view_time_item_on_button_press (EDayViewTimeItem *dvtmitem,
}
}
-
static void
e_day_view_time_item_on_button_release (EDayViewTimeItem *dvtmitem,
GdkEvent *event)
@@ -921,7 +912,6 @@ e_day_view_time_item_on_motion_notify (EDayViewTimeItem *dvtmitem,
}
}
-
/* Returns the row corresponding to the y position, or -1. */
static gint
e_day_view_time_item_convert_position_to_row (EDayViewTimeItem *dvtmitem,
diff --git a/calendar/gui/e-day-view-time-item.h b/calendar/gui/e-day-view-time-item.h
index 237b556df6..802ca50c3b 100644
--- a/calendar/gui/e-day-view-time-item.h
+++ b/calendar/gui/e-day-view-time-item.h
@@ -62,13 +62,10 @@ typedef struct {
} EDayViewTimeItemClass;
-
GType e_day_view_time_item_get_type (void);
-
gint e_day_view_time_item_get_column_width (EDayViewTimeItem *dvtmitem);
-
G_END_DECLS
#endif /* _E_DAY_VIEW_TIME_ITEM_H_ */
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c
index 31cce40a5a..180b3adb1c 100644
--- a/calendar/gui/e-day-view-top-item.c
+++ b/calendar/gui/e-day-view-top-item.c
@@ -74,7 +74,6 @@ static double e_day_view_top_item_point (GnomeCanvasItem *item,
static gint e_day_view_top_item_event (GnomeCanvasItem *item,
GdkEvent *event);
-
/* The arguments we take */
enum {
PROP_0,
@@ -119,7 +118,6 @@ e_day_view_top_item_class_init (EDayViewTopItemClass *class)
G_PARAM_WRITABLE));
}
-
static void
e_day_view_top_item_init (EDayViewTopItem *dvtitem)
{
@@ -127,7 +125,6 @@ e_day_view_top_item_init (EDayViewTopItem *dvtitem)
dvtitem->show_dates = FALSE;
}
-
static void
e_day_view_top_item_set_property (GObject *object,
guint property_id,
@@ -150,7 +147,6 @@ e_day_view_top_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_day_view_top_item_update (GnomeCanvasItem *item,
double *affine,
@@ -167,7 +163,6 @@ e_day_view_top_item_update (GnomeCanvasItem *item,
item->y2 = INT_MAX;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -718,7 +713,6 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
gdk_gc_set_clip_mask (gc, NULL);
}
-
/* This draws a little triangle to indicate that an event extends past
the days visible on screen. */
static void
@@ -807,7 +801,6 @@ e_day_view_top_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
static gint
e_day_view_top_item_event (GnomeCanvasItem *item, GdkEvent *event)
{
diff --git a/calendar/gui/e-day-view-top-item.h b/calendar/gui/e-day-view-top-item.h
index 61dfdceab8..e163e3eb81 100644
--- a/calendar/gui/e-day-view-top-item.h
+++ b/calendar/gui/e-day-view-top-item.h
@@ -54,12 +54,10 @@ typedef struct {
} EDayViewTopItemClass;
-
GType e_day_view_top_item_get_type (void);
void e_day_view_top_item_get_day_label (EDayView *day_view, gint day,
gchar *buffer, gint buffer_len);
-
G_END_DECLS
#endif /* _E_DAY_VIEW_TOP_ITEM_H_ */
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 9d6bc2df3a..f3cb3f0715 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -226,7 +226,6 @@ static void e_day_view_finish_long_event_resize (EDayView *day_view);
static void e_day_view_finish_resize (EDayView *day_view);
static void e_day_view_abort_resize (EDayView *day_view);
-
static gboolean e_day_view_on_long_event_button_press (EDayView *day_view,
gint event_num,
GdkEventButton *event,
@@ -265,7 +264,6 @@ static void e_day_view_show_popup_menu (EDayView *day_view,
gint day,
gint event_num);
-
static void e_day_view_recalc_day_starts (EDayView *day_view,
time_t start_time);
static void e_day_view_recalc_num_rows (EDayView *day_view);
@@ -506,7 +504,6 @@ time_range_changed_cb (ECalModel *model, time_t start_time, time_t end_time, gpo
e_day_view_ensure_rows_visible (day_view, day_view->selection_start_row, day_view->selection_start_row);
}
-
static void
process_component (EDayView *day_view, ECalModelComponent *comp_data)
{
@@ -682,7 +679,6 @@ timezone_changed_cb (ECalendarView *cal_view, icaltimezone *old_zone,
g_return_if_fail (E_IS_DAY_VIEW (day_view));
-
if (!cal_view->in_focus)
return;
@@ -779,7 +775,6 @@ e_day_view_init (EDayView *day_view)
day_view->last_edited_comp_string = NULL;
-
day_view->selection_start_row = -1;
day_view->selection_start_day = -1;
day_view->selection_end_row = -1;
@@ -971,7 +966,6 @@ e_day_view_init (EDayView *day_view)
NULL);
gnome_canvas_item_hide (day_view->drag_item);
-
/*
* Times Canvas
*/
@@ -993,7 +987,6 @@ e_day_view_init (EDayView *day_view)
"EDayViewTimeItem::day_view", day_view,
NULL);
-
/*
* Scrollbar.
*/
@@ -1029,13 +1022,11 @@ e_day_view_init (EDayView *day_view)
target_table, n_targets,
GDK_ACTION_COPY | GDK_ACTION_MOVE | GDK_ACTION_ASK);
-
/* connect to ECalendarView's signals */
g_signal_connect (G_OBJECT (day_view), "timezone_changed",
G_CALLBACK (timezone_changed_cb), NULL);
}
-
static void
init_model (EDayView *day_view, ECalModel *model)
{
@@ -1062,7 +1053,6 @@ e_day_view_on_canvas_realized (GtkWidget *widget,
NULL, FALSE);
}
-
/**
* e_day_view_new:
* @Returns: a new #EDayView.
@@ -1168,7 +1158,6 @@ e_day_view_realize (GtkWidget *widget)
day_view->meeting_icon = e_icon_factory_get_icon ("stock_people", GTK_ICON_SIZE_MENU);
day_view->attach_icon = e_icon_factory_get_icon ("mail-attachment", GTK_ICON_SIZE_MENU);
-
/* Set the canvas item colors. */
gnome_canvas_item_set (day_view->drag_long_event_rect_item,
"fill_color_gdk", &day_view->colors[E_DAY_VIEW_COLOR_EVENT_BACKGROUND],
@@ -1438,7 +1427,6 @@ e_day_view_style_set (GtkWidget *widget,
}
}
-
/* Calculate the widths of all the time strings necessary. */
day_view->max_small_hour_width = 0;
for (hour = 0; hour < 24; hour++) {
@@ -1625,7 +1613,6 @@ e_day_view_recalc_cell_sizes (EDayView *day_view)
g_object_unref (layout);
}
-
static gint
e_day_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1645,7 +1632,6 @@ e_day_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
static gint
e_day_view_focus_out (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1702,7 +1688,6 @@ e_day_view_foreach_event (EDayView *day_view,
}
}
-
/* This calls a given function for each event instance that matches the given
uid. If the callback returns FALSE the iteration is stopped.
Note that it is safe for the callback to remove the event (since we
@@ -1746,7 +1731,6 @@ e_day_view_foreach_event_with_uid (EDayView *day_view,
}
}
-
static gboolean
e_day_view_remove_event_cb (EDayView *day_view,
gint day,
@@ -1917,7 +1901,6 @@ e_day_view_update_long_event_label (EDayView *day_view,
set_text_as_bold (event);
}
-
/* Finds the day and index of the event with the given canvas item.
If is is a long event, -1 is returned as the day.
Returns TRUE if the event was found. */
@@ -1957,7 +1940,6 @@ e_day_view_find_event_from_item (EDayView *day_view,
return FALSE;
}
-
/* Finds the day and index of the event with the given uid.
If is is a long event, E_DAY_VIEW_LONG_EVENT is returned as the day.
Returns TRUE if an event with the uid was found.
@@ -2132,7 +2114,6 @@ e_day_view_set_selected_time_range_visible (EDayView *day_view,
}
}
-
/* Finds the start of the working week which includes the given time. */
static time_t
e_day_view_find_work_week_start (EDayView *day_view,
@@ -2177,7 +2158,6 @@ e_day_view_find_work_week_start (EDayView *day_view,
return icaltime_as_timet_with_zone (tt, e_calendar_view_get_timezone (E_CALENDAR_VIEW (day_view)));
}
-
/* This sets the selected time range. If the start_time & end_time are not equal
and are both visible in the view, then the selection is set to those times,
otherwise it is set to 1 hour from the start of the working day. */
@@ -2355,7 +2335,6 @@ e_day_view_get_work_week_view (EDayView *day_view)
return day_view->work_week_view;
}
-
void
e_day_view_set_work_week_view (EDayView *day_view,
gboolean work_week_view)
@@ -2371,7 +2350,6 @@ e_day_view_set_work_week_view (EDayView *day_view,
e_day_view_recalc_work_week (day_view);
}
-
gint
e_day_view_get_days_shown (EDayView *day_view)
{
@@ -2380,7 +2358,6 @@ e_day_view_get_days_shown (EDayView *day_view)
return day_view->days_shown;
}
-
void
e_day_view_set_days_shown (EDayView *day_view,
gint days_shown)
@@ -2404,7 +2381,6 @@ e_day_view_set_days_shown (EDayView *day_view,
e_day_view_update_query (day_view);
}
-
gint
e_day_view_get_mins_per_row (EDayView *day_view)
{
@@ -2413,7 +2389,6 @@ e_day_view_get_mins_per_row (EDayView *day_view)
return day_view->mins_per_row;
}
-
void
e_day_view_set_mins_per_row (EDayView *day_view,
gint mins_per_row)
@@ -2455,7 +2430,6 @@ e_day_view_set_mins_per_row (EDayView *day_view,
e_day_view_update_scroll_regions (day_view);
}
-
/* This specifies the working days in the week. The value is a bitwise
combination of day flags. Defaults to Mon-Fri. */
EDayViewDays
@@ -2466,7 +2440,6 @@ e_day_view_get_working_days (EDayView *day_view)
return day_view->working_days;
}
-
void
e_day_view_set_working_days (EDayView *day_view,
EDayViewDays days)
@@ -2486,7 +2459,6 @@ e_day_view_set_working_days (EDayView *day_view,
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_recalc_work_week_days_shown (EDayView *day_view)
{
@@ -2522,7 +2494,6 @@ e_day_view_recalc_work_week_days_shown (EDayView *day_view)
e_day_view_set_days_shown (day_view, days_shown);
}
-
/* The start and end time of the working day. This only affects the background
colors. */
void
@@ -2540,7 +2511,6 @@ e_day_view_get_working_day (EDayView *day_view,
*end_minute = day_view->work_day_end_minute;
}
-
void
e_day_view_set_working_day (EDayView *day_view,
gint start_hour,
@@ -2558,7 +2528,6 @@ e_day_view_set_working_day (EDayView *day_view,
gtk_widget_queue_draw (day_view->main_canvas);
}
-
/* Whether we display the Marcus Bains Line in the main canvas and time canvas. */
gboolean
e_day_view_get_show_marcus_bains (EDayView *day_view)
@@ -2576,7 +2545,6 @@ e_day_view_update_marcus_bains (EDayView *day_view)
gtk_widget_queue_draw (day_view->time_canvas);
}
-
/* Update the variables controlling the Marcus Bains Line (display toggle, and colors). */
void
e_day_view_set_marcus_bains (EDayView *day_view,
@@ -2610,7 +2578,6 @@ e_day_view_set_marcus_bains (EDayView *day_view,
}
}
-
/* Whether we display event end times in the main canvas. */
gboolean
e_day_view_get_show_event_end_times (EDayView *day_view)
@@ -2620,7 +2587,6 @@ e_day_view_get_show_event_end_times (EDayView *day_view)
return day_view->show_event_end_times;
}
-
void
e_day_view_set_show_event_end_times (EDayView *day_view,
gboolean show)
@@ -2648,7 +2614,6 @@ e_day_view_set_show_times_cb (EDayView *day_view,
return TRUE;
}
-
/* The first day of the week, 0 (Monday) to 6 (Sunday). */
gint
e_day_view_get_week_start_day (EDayView *day_view)
@@ -2658,7 +2623,6 @@ e_day_view_get_week_start_day (EDayView *day_view)
return day_view->week_start_day;
}
-
void
e_day_view_set_week_start_day (EDayView *day_view,
gint week_start_day)
@@ -2704,7 +2668,6 @@ e_day_view_recalc_work_week (EDayView *day_view)
}
}
-
static gboolean
e_day_view_update_scroll_regions (EDayView *day_view)
{
@@ -2745,7 +2708,6 @@ e_day_view_update_scroll_regions (EDayView *day_view)
return need_reshape;
}
-
/* This recalculates the number of rows to display, based on the time range
shown and the minutes per row. */
static void
@@ -2760,7 +2722,6 @@ e_day_view_recalc_num_rows (EDayView *day_view)
day_view->rows = total_minutes / day_view->mins_per_row;
}
-
/* Converts an hour and minute to a row in the canvas. Note that if we aren't
showing all 24 hours of the day, the returned row may be negative or
greater than day_view->rows. */
@@ -2781,7 +2742,6 @@ e_day_view_convert_time_to_row (EDayView *day_view,
return offset / day_view->mins_per_row;
}
-
/* Converts an hour and minute to a y coordinate in the canvas. */
gint
e_day_view_convert_time_to_position (EDayView *day_view,
@@ -2878,7 +2838,6 @@ e_day_view_on_top_canvas_button_press (GtkWidget *widget,
return TRUE;
}
-
static gboolean
e_day_view_convert_event_coords (EDayView *day_view,
GdkEvent *event,
@@ -2932,7 +2891,6 @@ e_day_view_convert_event_coords (EDayView *day_view,
return (event_window == window) ? TRUE : FALSE;
}
-
static gboolean
e_day_view_on_main_canvas_button_press (GtkWidget *widget,
GdkEventButton *event,
@@ -3008,7 +2966,6 @@ e_day_view_on_main_canvas_button_press (GtkWidget *widget,
if (!GTK_WIDGET_HAS_FOCUS (day_view))
gtk_widget_grab_focus (GTK_WIDGET (day_view));
-
if ((day < day_view->selection_start_day || day > day_view->selection_end_day)
|| (day == day_view->selection_start_day && row < day_view->selection_start_row)
|| (day == day_view->selection_end_day && row > day_view->selection_end_row)) {
@@ -3118,7 +3075,6 @@ e_day_view_on_long_event_button_press (EDayView *day_view,
return FALSE;
}
-
static gboolean
e_day_view_on_event_button_press (EDayView *day_view,
gint day,
@@ -3257,7 +3213,6 @@ e_day_view_on_event_click (EDayView *day_view,
return;
}
-
/* Grab the keyboard focus, so the event being edited is saved
and we can use the Escape key to abort the resize. */
if (!GTK_WIDGET_HAS_FOCUS (day_view))
@@ -3331,7 +3286,6 @@ e_day_view_reshape_resize_long_event_rect_item (EDayView *day_view)
y2 = item_y + item_h - 1;
}
-
static void
e_day_view_reshape_resize_rect_item (EDayView *day_view)
{
@@ -3509,7 +3463,6 @@ e_day_view_on_top_canvas_button_release (GtkWidget *widget,
return FALSE;
}
-
static gboolean
e_day_view_on_main_canvas_button_release (GtkWidget *widget,
GdkEventButton *event,
@@ -3539,7 +3492,6 @@ e_day_view_on_main_canvas_button_release (GtkWidget *widget,
return FALSE;
}
-
void
e_day_view_update_calendar_selection_time (EDayView *day_view)
{
@@ -3656,7 +3608,6 @@ e_day_view_on_top_canvas_motion (GtkWidget *widget,
return FALSE;
}
-
static gboolean
e_day_view_on_main_canvas_motion (GtkWidget *widget,
GdkEventMotion *mevent,
@@ -3790,7 +3741,6 @@ e_day_view_start_selection (EDayView *day_view,
gtk_widget_queue_draw (day_view->main_canvas);
}
-
/* Updates the selection during a drag. If day is -1 the selection day is
unchanged. */
void
@@ -3836,7 +3786,6 @@ e_day_view_update_selection (EDayView *day_view,
}
}
-
static void
e_day_view_normalize_selection (EDayView *day_view)
{
@@ -3859,7 +3808,6 @@ e_day_view_normalize_selection (EDayView *day_view)
}
}
-
void
e_day_view_finish_selection (EDayView *day_view)
{
@@ -3907,7 +3855,6 @@ e_day_view_update_long_event_resize (EDayView *day_view,
}
}
-
static void
e_day_view_update_resize (EDayView *day_view,
gint row)
@@ -3958,7 +3905,6 @@ e_day_view_update_resize (EDayView *day_view,
}
}
-
/* This converts the resize start or end row back to a time and updates the
event. */
static void
@@ -4067,7 +4013,6 @@ e_day_view_finish_long_event_resize (EDayView *day_view)
g_object_unref (comp);
}
-
/* This converts the resize start or end row back to a time and updates the
event. */
static void
@@ -4129,7 +4074,6 @@ e_day_view_finish_resize (EDayView *day_view)
day_view->last_edited_comp_string = e_cal_component_get_as_string (comp);
-
/* Hide the horizontal bars. */
day_view->resize_bars_event_day = -1;
day_view->resize_bars_event_num = -1;
@@ -4175,7 +4119,6 @@ e_day_view_finish_resize (EDayView *day_view)
g_object_unref (comp);
}
-
static void
e_day_view_abort_resize (EDayView *day_view)
{
@@ -4222,14 +4165,12 @@ e_day_view_free_events (EDayView *day_view)
day_view->editing_event_num = -1;
day_view->popup_event_num = -1;
-
e_day_view_free_event_array (day_view, day_view->long_events);
for (day = 0; day < E_DAY_VIEW_MAX_DAYS; day++)
e_day_view_free_event_array (day_view, day_view->events[day]);
}
-
static void
e_day_view_free_event_array (EDayView *day_view,
GArray *array)
@@ -4248,7 +4189,6 @@ e_day_view_free_event_array (EDayView *day_view,
g_array_set_size (array, 0);
}
-
/* This adds one event to the view, adding it to the appropriate array. */
static gboolean
e_day_view_add_event (ECalComponent *comp,
@@ -4418,7 +4358,6 @@ e_day_view_check_layout (EDayView *day_view)
}
}
-
static void
e_day_view_reshape_long_events (EDayView *day_view)
{
@@ -4441,7 +4380,6 @@ e_day_view_reshape_long_events (EDayView *day_view)
}
}
-
static void
e_day_view_reshape_long_event (EDayView *day_view,
gint event_num)
@@ -4600,7 +4538,6 @@ e_day_view_reshape_long_event (EDayView *day_view,
g_object_unref (comp);
}
-
/* This creates or updates the sizes of the canvas items for one day of the
main canvas. */
static void
@@ -4631,7 +4568,6 @@ e_day_view_reshape_day_events (EDayView *day_view,
}
}
-
static void
e_day_view_reshape_day_event (EDayView *day_view,
gint day,
@@ -4735,7 +4671,6 @@ e_day_view_reshape_day_event (EDayView *day_view,
}
}
-
/* This creates or resizes the horizontal bars used to resize events in the
main canvas. */
static void
@@ -4802,7 +4737,6 @@ e_day_view_ensure_events_sorted (EDayView *day_view)
}
}
-
gint
e_day_view_event_sort_func (gconstpointer arg1,
gconstpointer arg2)
@@ -4976,7 +4910,6 @@ e_day_view_do_key_press (GtkWidget *widget, GdkEventKey *event)
return TRUE;
}
-
/* Handle the cursor keys for moving & extending the selection. */
stop_emission = TRUE;
if (event->state & GDK_SHIFT_MASK) {
@@ -5081,7 +5014,6 @@ e_day_view_goto_start_of_work_day (EDayView *day_view)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
/* Select the time that ends a work day*/
static void
e_day_view_goto_end_of_work_day (EDayView *day_view)
@@ -5182,7 +5114,6 @@ e_day_view_change_duration_to_end_of_work_day (EDayView *day_view)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_up_shifted (EDayView *day_view, GdkEventKey *event)
{
@@ -5494,7 +5425,6 @@ e_day_view_cursor_key_down_shifted (EDayView *day_view, GdkEventKey *event)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_left_shifted (EDayView *day_view, GdkEventKey *event)
{
@@ -5519,7 +5449,6 @@ e_day_view_cursor_key_left_shifted (EDayView *day_view, GdkEventKey *event)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_right_shifted (EDayView *day_view, GdkEventKey *event)
{
@@ -5544,7 +5473,6 @@ e_day_view_cursor_key_right_shifted (EDayView *day_view, GdkEventKey *event)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_up (EDayView *day_view, GdkEventKey *event)
{
@@ -5577,7 +5505,6 @@ e_day_view_cursor_key_up (EDayView *day_view, GdkEventKey *event)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_down (EDayView *day_view, GdkEventKey *event)
{
@@ -5610,7 +5537,6 @@ e_day_view_cursor_key_down (EDayView *day_view, GdkEventKey *event)
gtk_widget_queue_draw (day_view->main_canvas);
}
-
static void
e_day_view_cursor_key_left (EDayView *day_view, GdkEventKey *event)
{
@@ -5631,7 +5557,6 @@ e_day_view_cursor_key_left (EDayView *day_view, GdkEventKey *event)
#endif
}
-
static void
e_day_view_cursor_key_right (EDayView *day_view, GdkEventKey *event)
{
@@ -5652,7 +5577,6 @@ e_day_view_cursor_key_right (EDayView *day_view, GdkEventKey *event)
#endif
}
-
/* Scrolls the main canvas up or down. The pages_to_scroll argument
is multiplied with the adjustment's page size and added to the adjustment's
value, while ensuring we stay within the bounds. A positive value will
@@ -5776,7 +5700,6 @@ e_day_view_start_editing_event (EDayView *day_view,
}
}
-
/* This stops the current edit. If accept is TRUE the event summary is updated,
else the edit is cancelled. */
static void
@@ -5794,7 +5717,6 @@ e_day_view_stop_editing_event (EDayView *day_view)
gtk_window_set_focus (GTK_WINDOW (toplevel), NULL);
}
-
/* Cancels the current edition by resetting the appointment's text to its original value */
static void
cancel_editing (EDayView *day_view)
@@ -6212,7 +6134,6 @@ e_day_view_change_event_end_time_up (EDayView *day_view)
e_day_view_ensure_rows_visible (day_view, resize_start_row, resize_end_row);
}
-
static void
e_day_view_change_event_end_time_down (EDayView *day_view)
{
@@ -6243,7 +6164,6 @@ e_day_view_change_event_end_time_down (EDayView *day_view)
e_day_view_ensure_rows_visible (day_view, resize_start_row, resize_end_row);
}
-
static void
e_day_view_on_editing_started (EDayView *day_view,
GnomeCanvasItem *item)
@@ -6501,7 +6421,6 @@ e_day_view_convert_grid_position_to_time (EDayView *day_view,
return val;
}
-
static gboolean
e_day_view_convert_time_to_grid_position (EDayView *day_view,
time_t time,
@@ -6540,7 +6459,6 @@ e_day_view_convert_time_to_grid_position (EDayView *day_view,
return TRUE;
}
-
/* This starts or stops auto-scrolling when dragging a selection or resizing
an event. */
void
@@ -6568,7 +6486,6 @@ e_day_view_check_auto_scroll (EDayView *day_view,
e_day_view_stop_auto_scroll (day_view);
}
-
static void
e_day_view_start_auto_scroll (EDayView *day_view,
gboolean scroll_up)
@@ -6580,7 +6497,6 @@ e_day_view_start_auto_scroll (EDayView *day_view,
day_view->auto_scroll_up = scroll_up;
}
-
void
e_day_view_stop_auto_scroll (EDayView *day_view)
{
@@ -6590,7 +6506,6 @@ e_day_view_stop_auto_scroll (EDayView *day_view)
}
}
-
static gboolean
e_day_view_auto_scroll_handler (gpointer data)
{
@@ -6726,7 +6641,6 @@ e_day_view_get_event_position (EDayView *day_view,
end_row = day_view->resize_end_row;
}
-
*item_x = day_view->day_offsets[day]
+ day_view->day_widths[day] * start_col / cols_in_row;
*item_w = day_view->day_widths[day] * num_columns / cols_in_row
@@ -6743,7 +6657,6 @@ e_day_view_get_event_position (EDayView *day_view,
return TRUE;
}
-
gboolean
e_day_view_get_long_event_position (EDayView *day_view,
gint event_num,
@@ -6788,7 +6701,6 @@ e_day_view_get_long_event_position (EDayView *day_view,
return TRUE;
}
-
/* Converts a position within the entire top canvas to a day & event and
a place within the event if appropriate. If event_num_return is NULL, it
simply returns the grid position without trying to find the event. */
@@ -6864,7 +6776,6 @@ e_day_view_convert_position_in_top_canvas (EDayView *day_view,
return E_CALENDAR_VIEW_POS_NONE;
}
-
/* Converts a position within the entire main canvas to a day, row, event and
a place within the event if appropriate. If event_num_return is NULL, it
simply returns the grid position without trying to find the event. */
@@ -6965,7 +6876,6 @@ e_day_view_convert_position_in_main_canvas (EDayView *day_view,
return E_CALENDAR_VIEW_POS_NONE;
}
-
static gboolean
e_day_view_on_top_canvas_drag_motion (GtkWidget *widget,
GdkDragContext *context,
@@ -6986,7 +6896,6 @@ e_day_view_on_top_canvas_drag_motion (GtkWidget *widget,
return TRUE;
}
-
static void
e_day_view_reshape_top_canvas_drag_item (EDayView *day_view)
{
@@ -7010,7 +6919,6 @@ e_day_view_reshape_top_canvas_drag_item (EDayView *day_view)
e_day_view_update_top_canvas_drag (day_view, day);
}
-
static void
e_day_view_update_top_canvas_drag (EDayView *day_view,
gint day)
@@ -7055,14 +6963,12 @@ e_day_view_update_top_canvas_drag (EDayView *day_view,
day_view->drag_last_day = day;
-
item_x = day_view->day_offsets[day] + E_DAY_VIEW_BAR_WIDTH;
item_w = day_view->day_offsets[day + num_days] - item_x
- E_DAY_VIEW_GAP_WIDTH;
item_y = row * day_view->top_row_height;
item_h = day_view->top_row_height - E_DAY_VIEW_TOP_CANVAS_Y_GAP;
-
/* Set the positions of the event & associated items. */
gnome_canvas_item_set (day_view->drag_long_event_rect_item,
"x1", item_x,
@@ -7108,7 +7014,6 @@ e_day_view_update_top_canvas_drag (EDayView *day_view,
}
}
-
static gboolean
e_day_view_on_main_canvas_drag_motion (GtkWidget *widget,
GdkDragContext *context,
@@ -7133,7 +7038,6 @@ e_day_view_on_main_canvas_drag_motion (GtkWidget *widget,
return TRUE;
}
-
static void
e_day_view_reshape_main_canvas_drag_item (EDayView *day_view)
{
@@ -7158,7 +7062,6 @@ e_day_view_reshape_main_canvas_drag_item (EDayView *day_view)
e_day_view_update_main_canvas_drag (day_view, row, day);
}
-
static void
e_day_view_update_main_canvas_drag (EDayView *day_view,
gint row,
@@ -7270,7 +7173,6 @@ e_day_view_update_main_canvas_drag (EDayView *day_view,
}
}
-
static void
e_day_view_on_top_canvas_drag_leave (GtkWidget *widget,
GdkDragContext *context,
@@ -7330,7 +7232,6 @@ e_day_view_on_drag_begin (GtkWidget *widget,
gnome_canvas_item_hide (event->canvas_item);
}
-
static void
e_day_view_on_drag_end (GtkWidget *widget,
GdkDragContext *context,
@@ -7364,7 +7265,6 @@ e_day_view_on_drag_end (GtkWidget *widget,
day_view->drag_event_num = -1;
}
-
static void
e_day_view_on_drag_data_get (GtkWidget *widget,
GdkDragContext *context,
@@ -7420,7 +7320,6 @@ e_day_view_on_drag_data_get (GtkWidget *widget,
}
}
-
static void
e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
GdkDragContext *context,
@@ -7646,7 +7545,6 @@ error:
gtk_drag_finish (context, FALSE, FALSE, time);
}
-
static void
e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget,
GdkDragContext *context,
@@ -7852,7 +7750,6 @@ error:
gtk_drag_finish (context, FALSE, FALSE, time);
}
-
/* Converts an hour from 0-23 to the preferred time format, and returns the
suffix to add and the width of it in the normal font. */
void
@@ -7884,7 +7781,6 @@ e_day_view_convert_time_to_display (EDayView *day_view,
}
}
-
gint
e_day_view_get_time_string_width (EDayView *day_view)
{
@@ -7908,7 +7804,6 @@ e_day_view_queue_layout (EDayView *day_view)
}
}
-
/* Removes any queued layout. */
static void
e_day_view_cancel_layout (EDayView *day_view)
@@ -7919,7 +7814,6 @@ e_day_view_cancel_layout (EDayView *day_view)
}
}
-
static gboolean
e_day_view_layout_timeout_cb (gpointer data)
{
@@ -7934,7 +7828,6 @@ e_day_view_layout_timeout_cb (gpointer data)
return FALSE;
}
-
/* Returns the number of selected events (0 or 1 at present). */
gint
e_day_view_get_num_events_selected (EDayView *day_view)
diff --git a/calendar/gui/e-day-view.h b/calendar/gui/e-day-view.h
index 31b894919c..d4f1ca680c 100644
--- a/calendar/gui/e-day-view.h
+++ b/calendar/gui/e-day-view.h
@@ -95,7 +95,6 @@ G_BEGIN_DECLS
/* The gap between rows in the top canvas. */
#define E_DAY_VIEW_TOP_CANVAS_Y_GAP 2
-
/* These are used to get/set the working days in the week. The bit-flags are
combined together. The bits must be from 0 (Sun) to 6 (Sat) to match the
day values used by localtime etc. */
@@ -110,7 +109,6 @@ typedef enum
E_DAY_VIEW_SATURDAY = 1 << 6
} EDayViewDays;
-
/* These are used to specify the type of an appointment. They match those
used in EMeetingTimeSelector. */
typedef enum
@@ -184,12 +182,10 @@ struct _EDayViewEvent {
guint8 num_columns;
};
-
#define E_DAY_VIEW(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, e_day_view_get_type (), EDayView)
#define E_DAY_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, e_day_view_get_type (), EDayViewClass)
#define E_IS_DAY_VIEW(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, e_day_view_get_type ())
-
typedef struct _EDayView EDayView;
typedef struct _EDayViewClass EDayViewClass;
@@ -486,7 +482,6 @@ struct _EDayViewClass
ECalendarViewClass parent_class;
};
-
GType e_day_view_get_type (void);
GtkWidget* e_day_view_new (ECalModel *model);
@@ -600,7 +595,6 @@ void e_day_view_convert_time_to_display (EDayView *day_view,
gint *suffix_width);
gint e_day_view_get_time_string_width (EDayView *day_view);
-
gint e_day_view_event_sort_func (const void *arg1,
const void *arg2);
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c
index d849c465d8..4d2803d442 100644
--- a/calendar/gui/e-itip-control.c
+++ b/calendar/gui/e-itip-control.c
@@ -981,7 +981,6 @@ set_message (GtkHTML *html, GtkHTMLStream *html_stream, const gchar *message, gb
if (message == NULL)
return;
-
if (err) {
gtk_html_stream_printf (html_stream, "<b><font color=\"#ff0000\">%s</font></b><br><br>", message);
} else {
@@ -1245,7 +1244,6 @@ write_html (EItipControl *itip, const gchar *itip_desc, const gchar *itip_title,
gtk_html_end (GTK_HTML (priv->html), html_stream, GTK_HTML_STREAM_OK);
}
-
static gchar *
get_publish_options (void)
{
@@ -1293,7 +1291,6 @@ get_cancel_options (gboolean found, icalcomponent_kind kind)
return g_strdup_printf ("<object classid=\"itip:cancel_options\"></object>");
}
-
static ECalComponent *
get_real_item (EItipControl *itip)
{
@@ -1816,7 +1813,6 @@ e_itip_control_get_view_only (EItipControl *itip)
return priv->view_only;
}
-
void
e_itip_control_set_delegator_address (EItipControl *itip, const gchar *address)
{
@@ -1840,7 +1836,6 @@ e_itip_control_get_delegator_address (EItipControl *itip)
return priv->delegator_address;
}
-
void
e_itip_control_set_delegator_name (EItipControl *itip, const gchar *name)
{
@@ -1887,7 +1882,6 @@ e_itip_control_get_calendar_uid (EItipControl *itip)
return priv->calendar_uid;
}
-
static gboolean
change_status (icalcomponent *ical_comp, const gchar *address, icalparameter_partstat status)
{
diff --git a/calendar/gui/e-meeting-attendee.c b/calendar/gui/e-meeting-attendee.c
index 52d5860e29..fea2697344 100644
--- a/calendar/gui/e-meeting-attendee.c
+++ b/calendar/gui/e-meeting-attendee.c
@@ -615,7 +615,6 @@ e_meeting_attendee_get_atype (EMeetingAttendee *ia)
return E_MEETING_ATTENDEE_OPTIONAL_PERSON;
}
-
EMeetingAttendeeEditLevel
e_meeting_attendee_get_edit_level (EMeetingAttendee *ia)
{
@@ -642,7 +641,6 @@ e_meeting_attendee_set_edit_level (EMeetingAttendee *ia, EMeetingAttendeeEditLev
priv->edit_level = level;
}
-
static gint
compare_times (EMeetingTime *time1,
EMeetingTime *time2)
diff --git a/calendar/gui/e-meeting-list-view.c b/calendar/gui/e-meeting-list-view.c
index 924ab6720d..55e3af816e 100644
--- a/calendar/gui/e-meeting-list-view.c
+++ b/calendar/gui/e-meeting-list-view.c
@@ -120,7 +120,6 @@ e_meeting_list_view_class_init (EMeetingListViewClass *klass)
G_TYPE_POINTER);
}
-
static void
add_section (ENameSelector *name_selector, const gchar *name)
{
@@ -281,7 +280,6 @@ e_meeting_list_view_remove_attendee_from_name_selector (EMeetingListView *view,
const gchar *attendee = NULL;
EDestination *des = l->data;
-
if (e_destination_is_evolution_list (des)) {
GList *l, *dl;
@@ -473,7 +471,6 @@ attendee_editing_canceled_cb (GtkCellRenderer *renderer, GtkTreeView *view)
gtk_tree_path_free (path);
}
-
static void
type_edited_cb (GtkCellRenderer *renderer, const gchar *path, const gchar *text, GtkTreeView *view)
{
@@ -661,7 +658,6 @@ row_activated_cb (GtkTreeSelection *selection, EMeetingListView *view)
priv = view->priv;
-
if (!(paths = gtk_tree_selection_get_selected_rows (selection, &model)))
return;
if (g_list_length (paths) > 1)
@@ -694,7 +690,6 @@ row_activated_cb (GtkTreeSelection *selection, EMeetingListView *view)
}
-
EMeetingListView *
e_meeting_list_view_new (EMeetingStore *store)
{
@@ -863,7 +858,6 @@ process_section (EMeetingListView *view, GList *destinations, icalparameter_role
if (contact)
fburi = e_contact_get (contact, E_CONTACT_FREEBUSY_URL);
-
if (e_meeting_store_find_attendee (priv->store, attendee, NULL) == NULL) {
EMeetingAttendee *ia = e_meeting_store_add_attendee_with_defaults (priv->store);
@@ -1003,4 +997,3 @@ e_meeting_list_view_set_name_selector (EMeetingListView *lview, ENameSelector *n
priv->name_selector = g_object_ref (name_selector);
}
-
diff --git a/calendar/gui/e-meeting-list-view.h b/calendar/gui/e-meeting-list-view.h
index 50aad0c966..6a2dc55523 100644
--- a/calendar/gui/e-meeting-list-view.h
+++ b/calendar/gui/e-meeting-list-view.h
@@ -36,7 +36,6 @@ G_BEGIN_DECLS
#define E_IS_MEETING_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_MEETING_LIST_VIEW))
#define E_IS_MEETING_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), E_TYPE_MEETING_LIST_VIEW))
-
typedef struct _EMeetingListView EMeetingListView;
typedef struct _EMeetingListViewPrivate EMeetingListViewPrivate;
typedef struct _EMeetingListViewClass EMeetingListViewClass;
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c
index da60b19f43..20bc6388da 100644
--- a/calendar/gui/e-meeting-store.c
+++ b/calendar/gui/e-meeting-store.c
@@ -76,7 +76,6 @@ struct _EMeetingStoreQueueData {
GPtrArray *data;
};
-
static GObjectClass *parent_class = NULL;
static icalparameter_cutype
@@ -565,7 +564,6 @@ ems_class_init (GObjectClass *klass)
klass->finalize = ems_finalize;
}
-
static void
ems_init (EMeetingStore *store)
{
@@ -629,7 +627,6 @@ e_meeting_store_new (void)
return g_object_new (E_TYPE_MEETING_STORE, NULL);
}
-
ECal *
e_meeting_store_get_e_cal (EMeetingStore *store)
{
@@ -1203,7 +1200,6 @@ freebusy_async (gpointer data)
#undef USER_SUB
#undef DOMAIN_SUB
-
static gboolean
refresh_busy_periods (gpointer data)
{
@@ -1278,8 +1274,6 @@ refresh_busy_periods (gpointer data)
}
-
-
g_mutex_lock (store->priv->mutex);
store->priv->num_threads++;
g_mutex_unlock (store->priv->mutex);
@@ -1292,7 +1286,6 @@ refresh_busy_periods (gpointer data)
g_free (fbd->email);
priv->refresh_idle_id = 0;
-
g_mutex_lock (store->priv->mutex);
store->priv->num_threads--;
g_mutex_unlock (store->priv->mutex);
@@ -1360,7 +1353,6 @@ refresh_queue_add (EMeetingStore *store, gint row,
}
g_mutex_unlock (priv->mutex);
-
g_object_ref (attendee);
g_ptr_array_add (priv->refresh_queue, attendee);
diff --git a/calendar/gui/e-meeting-time-sel-item.c b/calendar/gui/e-meeting-time-sel-item.c
index 00efabe029..90a12b51df 100644
--- a/calendar/gui/e-meeting-time-sel-item.c
+++ b/calendar/gui/e-meeting-time-sel-item.c
@@ -126,7 +126,6 @@ e_meeting_time_selector_item_class_init (EMeetingTimeSelectorItemClass *class)
G_PARAM_WRITABLE));
}
-
static void
e_meeting_time_selector_item_init (EMeetingTimeSelectorItem *mts_item)
{
@@ -149,7 +148,6 @@ e_meeting_time_selector_item_init (EMeetingTimeSelectorItem *mts_item)
item->y2 = 0;
}
-
static void
e_meeting_time_selector_item_dispose (GObject *object)
{
@@ -173,7 +171,6 @@ e_meeting_time_selector_item_dispose (GObject *object)
G_OBJECT_CLASS (e_meeting_time_selector_item_parent_class)->dispose (object);
}
-
static void
e_meeting_time_selector_item_set_property (GObject *object,
guint property_id,
@@ -193,7 +190,6 @@ e_meeting_time_selector_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_meeting_time_selector_item_realize (GnomeCanvasItem *item)
{
@@ -213,7 +209,6 @@ e_meeting_time_selector_item_realize (GnomeCanvasItem *item)
mts_item->stipple_gc = gdk_gc_new (window);
}
-
static void
e_meeting_time_selector_item_unrealize (GnomeCanvasItem *item)
{
@@ -230,7 +225,6 @@ e_meeting_time_selector_item_unrealize (GnomeCanvasItem *item)
(*GNOME_CANVAS_ITEM_CLASS (e_meeting_time_selector_item_parent_class)->unrealize)(item);
}
-
static void
e_meeting_time_selector_item_update (GnomeCanvasItem *item, double *affine, ArtSVP *clip_path, gint flags)
{
@@ -244,7 +238,6 @@ e_meeting_time_selector_item_update (GnomeCanvasItem *item, double *affine, ArtS
item->y2 = INT_MAX;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -381,7 +374,6 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
else
e_meeting_time_selector_item_paint_busy_periods (mts_item, drawable, &date, x, y, width, height);
-
/* Draw the currently-selected meeting time vertical bars. */
if (show_meeting_time) {
if (is_display_top) {
@@ -414,7 +406,6 @@ e_meeting_time_selector_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
cairo_destroy (cr);
}
-
static void
e_meeting_time_selector_item_paint_day_top (EMeetingTimeSelectorItem *mts_item,
GdkDrawable *drawable, GDate *date,
@@ -510,7 +501,6 @@ e_meeting_time_selector_item_paint_day_top (EMeetingTimeSelectorItem *mts_item,
g_object_unref (layout);
}
-
/* This paints the colored bars representing busy periods for the combined
list of attendees. For now we just paint the bars for each attendee of
each other. If we want to speed it up we could optimise it later. */
@@ -561,7 +551,6 @@ e_meeting_time_selector_item_paint_all_attendees_busy_periods (EMeetingTimeSelec
cairo_destroy (cr);
}
-
static void
e_meeting_time_selector_item_paint_day (EMeetingTimeSelectorItem *mts_item,
GdkDrawable *drawable, GDate *date,
@@ -632,10 +621,8 @@ e_meeting_time_selector_item_paint_day (EMeetingTimeSelectorItem *mts_item,
2, height - unused_y);
}
-
}
-
/* This paints the colored bars representing busy periods for the individual
attendees. */
static void
@@ -685,7 +672,6 @@ e_meeting_time_selector_item_paint_busy_periods (EMeetingTimeSelectorItem *mts_i
cairo_destroy (cr);
}
-
/* This subtracts the attendees longest_period_in_days from the given date,
and does a binary search of the attendee's busy periods array to find the
first one which could possible end on the given day or later.
@@ -717,7 +703,6 @@ e_meeting_time_selector_item_find_first_busy_period (EMeetingTimeSelectorItem *m
return period_num;
}
-
/* This paints the visible busy periods for one attendee which are of a certain
busy type, e.g out of office. It is passed the index of the first visible
busy period of the attendee and continues until it runs off the screen. */
@@ -789,7 +774,6 @@ e_meeting_time_selector_item_paint_attendee_busy_periods (EMeetingTimeSelectorIt
}
}
-
/*
* CANVAS ITEM ROUTINES - functions to be a GnomeCanvasItem.
*/
@@ -806,7 +790,6 @@ e_meeting_time_selector_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
static gint
e_meeting_time_selector_item_event (GnomeCanvasItem *item, GdkEvent *event)
{
@@ -831,7 +814,6 @@ e_meeting_time_selector_item_event (GnomeCanvasItem *item, GdkEvent *event)
return FALSE;
}
-
/* This handles all button press events for the item. If the cursor is over
one of the meeting time vertical bars we start a drag. If not we set the
meeting time to the nearest half-hour interval.
@@ -940,11 +922,9 @@ e_meeting_time_selector_item_button_press (EMeetingTimeSelectorItem *mts_item,
end_time.hour,
end_time.minute);
-
return FALSE;
}
-
/* This handles all button release events for the item. If we were dragging,
we finish the drag. */
static gint
@@ -966,7 +946,6 @@ e_meeting_time_selector_item_button_release (EMeetingTimeSelectorItem *mts_item,
return FALSE;
}
-
/* This handles all motion notify events for the item. If button1 is pressed
we check if a drag is in progress. If not, we set the cursor if we are over
the meeting time vertical bars. Note that GnomeCanvas doesn't use motion
@@ -1010,7 +989,6 @@ e_meeting_time_selector_item_motion_notify (EMeetingTimeSelectorItem *mts_item,
return FALSE;
}
-
static EMeetingTimeSelectorPosition
e_meeting_time_selector_item_get_drag_position (EMeetingTimeSelectorItem *mts_item,
gint x, gint y)
@@ -1038,7 +1016,6 @@ e_meeting_time_selector_item_get_drag_position (EMeetingTimeSelectorItem *mts_it
return E_MEETING_TIME_SELECTOR_POS_NONE;
}
-
static gboolean
e_meeting_time_selector_item_calculate_busy_range (EMeetingTimeSelector *mts,
gint row,
diff --git a/calendar/gui/e-meeting-time-sel-item.h b/calendar/gui/e-meeting-time-sel-item.h
index e9daa3d56a..547f01aaf6 100644
--- a/calendar/gui/e-meeting-time-sel-item.h
+++ b/calendar/gui/e-meeting-time-sel-item.h
@@ -35,12 +35,10 @@
G_BEGIN_DECLS
-
#define E_MEETING_TIME_SELECTOR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), e_meeting_time_selector_item_get_type (), EMeetingTimeSelectorItem))
#define E_MEETING_TIME_SELECTOR_ITEM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), e_meeting_time_selector_item_get_type (), EMeetingTimeSelectorItemClass))
#define IS_E_MEETING_TIME_SELECTOR_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE((o), e_meeting_time_selector_item_get_type ()))
-
typedef struct _EMeetingTimeSelectorItem EMeetingTimeSelectorItem;
typedef struct _EMeetingTimeSelectorItemClass EMeetingTimeSelectorItemClass;
@@ -65,7 +63,6 @@ struct _EMeetingTimeSelectorItem
GdkCursor *last_cursor_set;
};
-
struct _EMeetingTimeSelectorItemClass
{
GnomeCanvasItemClass parent_class;
@@ -74,5 +71,4 @@ struct _EMeetingTimeSelectorItemClass
GType e_meeting_time_selector_item_get_type (void);
void e_meeting_time_selector_item_set_normal_cursor (EMeetingTimeSelectorItem *mts_item);
-
#endif /* _E_MEETING_TIME_SELECTOR_ITEM_H_ */
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c
index 16b6a9d48c..9ca98268e7 100644
--- a/calendar/gui/e-meeting-time-sel.c
+++ b/calendar/gui/e-meeting-time-sel.c
@@ -81,7 +81,6 @@ enum {
LAST_SIGNAL
};
-
static gint mts_signals [LAST_SIGNAL] = { 0 };
static void e_meeting_time_selector_destroy (GtkObject *object);
@@ -162,7 +161,6 @@ static EMeetingFreeBusyPeriod* e_meeting_time_selector_find_time_clash (EMeeting
EMeetingTime *start_time,
EMeetingTime *end_time);
-
static void e_meeting_time_selector_recalc_grid (EMeetingTimeSelector *mts);
static void e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts);
static void e_meeting_time_selector_save_position (EMeetingTimeSelector *mts,
@@ -220,7 +218,6 @@ e_meeting_time_selector_class_init (EMeetingTimeSelectorClass * klass)
widget_class->expose_event = e_meeting_time_selector_expose_event;
}
-
static void
e_meeting_time_selector_init (EMeetingTimeSelector * mts)
{
@@ -247,7 +244,6 @@ e_meeting_time_selector_init (EMeetingTimeSelector * mts)
mts->style_change_idle_id = 0;
}
-
void
e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *ems)
{
@@ -298,7 +294,6 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
gtk_box_pack_start (GTK_BOX (vbox), mts->attendees_vbox, TRUE, TRUE, 0);
gtk_widget_show (mts->attendees_vbox);
-
/* build the etable */
mts->model = ems;
@@ -317,7 +312,6 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
gtk_widget_show (GTK_WIDGET (mts->list_view));
-
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_IN);
@@ -675,7 +669,6 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *em
g_signal_emit (mts, mts_signals [CHANGED], 0);
}
-
/* This adds a color to the color key beneath the main display. If color is
NULL, it displays the No Info stipple instead. */
static void
@@ -739,7 +732,6 @@ e_meeting_time_selector_expose_key_color (GtkWidget *darea,
return TRUE;
}
-
static void
e_meeting_time_selector_alloc_named_color (EMeetingTimeSelector * mts,
const gchar *name, GdkColor *c)
@@ -755,7 +747,6 @@ e_meeting_time_selector_alloc_named_color (EMeetingTimeSelector * mts,
g_warning ("Failed to allocate color: %s\n", name);
}
-
static void
e_meeting_time_selector_options_menu_detacher (GtkWidget *widget,
GtkMenu *menu)
@@ -771,7 +762,6 @@ e_meeting_time_selector_options_menu_detacher (GtkWidget *widget,
mts->options_menu = NULL;
}
-
static void
e_meeting_time_selector_autopick_menu_detacher (GtkWidget *widget,
GtkMenu *menu)
@@ -787,7 +777,6 @@ e_meeting_time_selector_autopick_menu_detacher (GtkWidget *widget,
mts->autopick_menu = NULL;
}
-
GtkWidget *
e_meeting_time_selector_new (EMeetingStore *ems)
{
@@ -800,7 +789,6 @@ e_meeting_time_selector_new (EMeetingStore *ems)
return mts;
}
-
static void
e_meeting_time_selector_destroy (GtkObject *object)
{
@@ -842,7 +830,6 @@ e_meeting_time_selector_destroy (GtkObject *object)
(*GTK_OBJECT_CLASS (e_meeting_time_selector_parent_class)->destroy)(object);
}
-
static void
e_meeting_time_selector_realize (GtkWidget *widget)
{
@@ -856,7 +843,6 @@ e_meeting_time_selector_realize (GtkWidget *widget)
mts->color_key_gc = gdk_gc_new (widget->window);
}
-
static void
e_meeting_time_selector_unrealize (GtkWidget *widget)
{
@@ -1001,7 +987,6 @@ e_meeting_time_selector_draw_shadow (EMeetingTimeSelector *mts)
GTK_SHADOW_IN, NULL, NULL, NULL, x, y, w, h);
}
-
/* When the main canvas scrolls, we scroll the other canvases. */
static void
e_meeting_time_selector_hadjustment_changed (GtkAdjustment *adjustment,
@@ -1016,7 +1001,6 @@ e_meeting_time_selector_hadjustment_changed (GtkAdjustment *adjustment,
}
}
-
static void
e_meeting_time_selector_vadjustment_changed (GtkAdjustment *adjustment,
EMeetingTimeSelector *mts)
@@ -1056,7 +1040,6 @@ e_meeting_time_selector_get_meeting_time (EMeetingTimeSelector *mts,
*end_minute = mts->meeting_end_time.minute;
}
-
gboolean
e_meeting_time_selector_set_meeting_time (EMeetingTimeSelector *mts,
gint start_year,
@@ -1126,7 +1109,6 @@ e_meeting_time_selector_set_all_day (EMeetingTimeSelector *mts,
e_meeting_time_selector_update_date_popup_menus (mts);
}
-
void
e_meeting_time_selector_set_working_hours_only (EMeetingTimeSelector *mts,
gboolean working_hours_only)
@@ -1149,7 +1131,6 @@ e_meeting_time_selector_set_working_hours_only (EMeetingTimeSelector *mts,
e_meeting_time_selector_update_date_popup_menus (mts);
}
-
void
e_meeting_time_selector_set_working_hours (EMeetingTimeSelector *mts,
gint day_start_hour,
@@ -1188,7 +1169,6 @@ e_meeting_time_selector_set_working_hours (EMeetingTimeSelector *mts,
e_meeting_time_selector_update_date_popup_menus (mts);
}
-
void
e_meeting_time_selector_set_zoomed_out (EMeetingTimeSelector *mts,
gboolean zoomed_out)
@@ -1285,7 +1265,6 @@ e_meeting_time_selector_get_autopick_option (EMeetingTimeSelector *mts)
return E_MEETING_TIME_SELECTOR_REQUIRED_PEOPLE_AND_ONE_RESOURCE;
}
-
void
e_meeting_time_selector_set_autopick_option (EMeetingTimeSelector *mts,
EMeetingTimeSelectorAutopickOption autopick_option)
@@ -1391,7 +1370,6 @@ e_meeting_time_selector_dump (EMeetingTimeSelector *mts)
}
-
/* This formats a EMeetingTimein a string and returns it.
Note that it uses a static buffer. */
gchar *
@@ -1411,7 +1389,6 @@ e_meeting_time_selector_dump_time (EMeetingTime*mtstime)
return buffer;
}
-
/* This formats a GDate in a string and returns it.
Note that it uses a static buffer. */
gchar *
@@ -1433,7 +1410,6 @@ e_meeting_time_selector_on_invite_others_button_clicked (GtkWidget *button,
e_meeting_list_view_invite_others_dialog (mts->list_view);
}
-
static void
e_meeting_time_selector_on_options_button_clicked (GtkWidget *button,
EMeetingTimeSelector *mts)
@@ -1443,7 +1419,6 @@ e_meeting_time_selector_on_options_button_clicked (GtkWidget *button,
mts, 1, GDK_CURRENT_TIME);
}
-
static void
e_meeting_time_selector_options_menu_position_callback (GtkMenu *menu,
gint *x,
@@ -1482,7 +1457,6 @@ e_meeting_time_selector_on_update_free_busy (GtkWidget *button,
e_meeting_time_selector_refresh_free_busy (mts, 0, TRUE);
}
-
static void
e_meeting_time_selector_on_autopick_button_clicked (GtkWidget *button,
EMeetingTimeSelector *mts)
@@ -1492,7 +1466,6 @@ e_meeting_time_selector_on_autopick_button_clicked (GtkWidget *button,
mts, 1, GDK_CURRENT_TIME);
}
-
static void
e_meeting_time_selector_autopick_menu_position_callback (GtkMenu *menu,
gint *x,
@@ -1519,7 +1492,6 @@ e_meeting_time_selector_autopick_menu_position_callback (GtkMenu *menu,
*y = CLAMP (*y, 0, max_y);
}
-
static void
e_meeting_time_selector_on_autopick_option_toggled (GtkWidget *button,
EMeetingTimeSelector *mts)
@@ -1530,7 +1502,6 @@ e_meeting_time_selector_on_autopick_option_toggled (GtkWidget *button,
gtk_menu_popdown (GTK_MENU (mts->autopick_menu));
}
-
static void
e_meeting_time_selector_on_prev_button_clicked (GtkWidget *button,
EMeetingTimeSelector *mts)
@@ -1538,7 +1509,6 @@ e_meeting_time_selector_on_prev_button_clicked (GtkWidget *button,
e_meeting_time_selector_autopick (mts, FALSE);
}
-
static void
e_meeting_time_selector_on_next_button_clicked (GtkWidget *button,
EMeetingTimeSelector *mts)
@@ -1546,7 +1516,6 @@ e_meeting_time_selector_on_next_button_clicked (GtkWidget *button,
e_meeting_time_selector_autopick (mts, TRUE);
}
-
/* This tries to find the previous or next meeting time for which all
attendees will be available. */
static void
@@ -1671,7 +1640,6 @@ e_meeting_time_selector_autopick (EMeetingTimeSelector *mts,
}
}
-
static void
e_meeting_time_selector_calculate_time_difference (EMeetingTime*start,
EMeetingTime*end,
@@ -1692,7 +1660,6 @@ e_meeting_time_selector_calculate_time_difference (EMeetingTime*start,
}
}
-
/* This moves the given time forward to the next suitable start of a meeting.
If zoomed_out is set, this means every hour. If not every half-hour. */
static void
@@ -1769,7 +1736,6 @@ e_meeting_time_selector_find_nearest_interval (EMeetingTimeSelector *mts,
}
}
-
/* This moves the given time backward to the next suitable start of a meeting.
If zoomed_out is set, this means every hour. If not every half-hour. */
static void
@@ -1854,7 +1820,6 @@ e_meeting_time_selector_find_nearest_interval_backward (EMeetingTimeSelector *mt
}
}
-
/* This adds on the given days, hours & minutes to a EMeetingTimeSelectorTime.
It is used to calculate the end of a period given a start & duration.
Days, hours & minutes can be negative, to move backwards, but they should
@@ -1886,7 +1851,6 @@ e_meeting_time_selector_adjust_time (EMeetingTime*mtstime,
e_meeting_time_selector_fix_time_overflows (mtstime);
}
-
/* This looks for any busy period of the given attendee which clashes with
the start and end time. It uses a binary search. */
static EMeetingFreeBusyPeriod *
@@ -1941,7 +1905,6 @@ e_meeting_time_selector_on_zoomed_out_toggled (GtkWidget *menuitem,
e_meeting_time_selector_ensure_meeting_time_shown (mts);
}
-
static void
e_meeting_time_selector_on_working_hours_toggled (GtkWidget *menuitem,
EMeetingTimeSelector *mts)
@@ -1955,7 +1918,6 @@ e_meeting_time_selector_on_working_hours_toggled (GtkWidget *menuitem,
e_meeting_time_selector_ensure_meeting_time_shown (mts);
}
-
/* This recalculates day_width, first_hour_shown and last_hour_shown. */
static void
e_meeting_time_selector_recalc_grid (EMeetingTimeSelector *mts)
@@ -1994,7 +1956,6 @@ e_meeting_time_selector_recalc_grid (EMeetingTimeSelector *mts)
mts->meeting_positions_valid = FALSE;
}
-
/* This saves the first visible time in the given EMeetingTimeSelectorTime. */
static void
e_meeting_time_selector_save_position (EMeetingTimeSelector *mts,
@@ -2007,7 +1968,6 @@ e_meeting_time_selector_save_position (EMeetingTimeSelector *mts,
e_meeting_time_selector_calculate_time (mts, scroll_x, mtstime);
}
-
/* This restores a saved position. */
static void
e_meeting_time_selector_restore_position (EMeetingTimeSelector *mts,
@@ -2023,7 +1983,6 @@ e_meeting_time_selector_restore_position (EMeetingTimeSelector *mts,
new_scroll_x, scroll_y);
}
-
/* This returns the x pixel coords of the meeting time in the entire scroll
region. It recalculates them if they have been marked as invalid.
If it returns FALSE then no meeting time is set or the meeting time is
@@ -2059,7 +2018,6 @@ e_meeting_time_selector_get_meeting_time_positions (EMeetingTimeSelector *mts,
return TRUE;
}
-
/* This recalculates the date format to used, by computing the width of the
longest date strings in the widget's font and seeing if they fit. */
static void
@@ -2169,7 +2127,6 @@ e_meeting_time_selector_recalc_date_format (EMeetingTimeSelector *mts)
g_object_unref (layout);
}
-
/* Turn off the background of the canvas windows. This reduces flicker
considerably when scrolling. (Why isn't it in GnomeCanvas?). */
static void
@@ -2180,7 +2137,6 @@ e_meeting_time_selector_on_canvas_realized (GtkWidget *widget,
NULL, FALSE);
}
-
/* This is called when the meeting start time GnomeDateEdit is changed,
either via the "date_changed". "time_changed" or "activate" signals on one
of the GtkEntry widgets. So don't use the widget parameter since it may be
@@ -2227,7 +2183,6 @@ e_meeting_time_selector_on_start_time_changed (GtkWidget *widget,
g_signal_emit (mts, mts_signals [CHANGED], 0);
}
-
/* This is called when the meeting end time GnomeDateEdit is changed,
either via the "date_changed", "time_changed" or "activate" signals on one
of the GtkEntry widgets. So don't use the widget parameter since it may be
@@ -2277,7 +2232,6 @@ e_meeting_time_selector_on_end_time_changed (GtkWidget *widget,
g_signal_emit (mts, mts_signals [CHANGED], 0);
}
-
/* This updates the ranges shown in the GnomeDateEdit popup menus, according
to working_hours_only etc. */
static void
@@ -2301,7 +2255,6 @@ e_meeting_time_selector_update_date_popup_menus (EMeetingTimeSelector *mts)
e_date_edit_set_time_popup_range (end_edit, low_hour, high_hour);
}
-
static void
e_meeting_time_selector_on_canvas_size_allocate (GtkWidget *widget,
GtkAllocation *allocation,
@@ -2342,7 +2295,6 @@ e_meeting_time_selector_update_main_canvas_scroll_region (EMeetingTimeSelector *
height);
}
-
/* This changes the meeting time based on the given x coordinate and whether
we are dragging the start or end bar. It returns the new position, which
will be swapped if the start bar is dragged past the end bar or vice versa.
@@ -2472,7 +2424,6 @@ e_meeting_time_selector_drag_meeting_time (EMeetingTimeSelector *mts,
set_both_times = TRUE;
}
-
/* Mark the calculated positions as invalid. */
mts->meeting_positions_valid = FALSE;
@@ -2495,7 +2446,6 @@ e_meeting_time_selector_drag_meeting_time (EMeetingTimeSelector *mts,
g_signal_emit (mts, mts_signals [CHANGED], 0);
}
-
/* This is the timeout function which handles auto-scrolling when the user is
dragging one of the meeting time vertical bars outside the left or right
edge of the canvas. */
@@ -2648,7 +2598,6 @@ e_meeting_time_selector_timeout_handler (gpointer data)
return TRUE;
}
-
/* This removes our auto-scroll timeout function, if we have one installed. */
void
e_meeting_time_selector_remove_timeout (EMeetingTimeSelector *mts)
@@ -2659,7 +2608,6 @@ e_meeting_time_selector_remove_timeout (EMeetingTimeSelector *mts)
}
}
-
/* This updates the GnomeDateEdit widget displaying the meeting start time. */
static void
e_meeting_time_selector_update_start_date_edit (EMeetingTimeSelector *mts)
@@ -2672,7 +2620,6 @@ e_meeting_time_selector_update_start_date_edit (EMeetingTimeSelector *mts)
mts->meeting_start_time.minute);
}
-
/* This updates the GnomeDateEdit widget displaying the meeting end time. */
static void
e_meeting_time_selector_update_end_date_edit (EMeetingTimeSelector *mts)
@@ -2691,7 +2638,6 @@ e_meeting_time_selector_update_end_date_edit (EMeetingTimeSelector *mts)
mts->meeting_end_time.minute);
}
-
/* This ensures that the meeting time is shown on screen, by scrolling the
canvas and possibly by changing the range of dates shown in the canvas. */
static void
@@ -2731,7 +2677,6 @@ e_meeting_time_selector_ensure_meeting_time_shown (EMeetingTimeSelector *mts)
new_scroll_x, scroll_y);
}
-
/* This updates the range of dates shown in the canvas, to make sure that the
currently selected meeting time is in the range. */
static void
@@ -2746,7 +2691,6 @@ e_meeting_time_selector_update_dates_shown (EMeetingTimeSelector *mts)
E_MEETING_TIME_SELECTOR_DAYS_SHOWN - 1);
}
-
/* This checks if the time's hour is over 24 or its minute is over 60 and if
so it updates the day/hour appropriately. Note that hours and minutes are
stored in guint8's so they can't overflow by much. */
@@ -2802,7 +2746,6 @@ e_meeting_time_selector_calculate_day_and_position (EMeetingTimeSelector *mts,
}
}
-
/* This takes an x pixel coordinate within a day, and converts it to hours
and minutes, depending on working_hours_only and zoomed_out. */
void
@@ -2819,7 +2762,6 @@ e_meeting_time_selector_convert_day_position_to_hours_and_mins (EMeetingTimeSele
*hours += mts->first_hour_shown;
}
-
/* This takes an x pixel coordinate within the entire canvas scroll region and
returns the time in which it falls. Note that it won't be extremely
accurate since hours may only be a few pixels wide in the display.
@@ -2845,7 +2787,6 @@ e_meeting_time_selector_calculate_time (EMeetingTimeSelector *mts,
e_meeting_time_selector_convert_day_position_to_hours_and_mins (mts, day_position, &time->hour, &time->minute);
}
-
/* This takes a EMeetingTime and calculates the x pixel coordinate
within the entire canvas scroll region. It is used to draw the selected
meeting time and all the busy periods. */
@@ -2915,7 +2856,6 @@ row_deleted_cb (GtkTreeModel *model, GtkTreePath *path, gpointer data)
gtk_widget_queue_draw (mts->display_main);
}
-
#define REFRESH_PAUSE 5
static gboolean
diff --git a/calendar/gui/e-meeting-time-sel.h b/calendar/gui/e-meeting-time-sel.h
index 97be769917..b38dd98f74 100644
--- a/calendar/gui/e-meeting-time-sel.h
+++ b/calendar/gui/e-meeting-time-sel.h
@@ -48,7 +48,6 @@ G_BEGIN_DECLS
#define E_MEETING_TIME_SELECTOR_TEXT_Y_PAD 3
#define E_MEETING_TIME_SELECTOR_TEXT_X_PAD 2
-
/* This is used to specify the format used when displaying the dates.
The full format is like 'Sunday, September 12, 1999'. The abbreviated format
is like 'Sun 12/9/99'. The short format is like '12/9/99'. The actual
@@ -61,7 +60,6 @@ typedef enum
E_MEETING_TIME_SELECTOR_DATE_SHORT
} EMeetingTimeSelectorDateFormat;
-
/* This is used to specify a position regarding the vertical bars around the
current meeting time, so we know which one is being dragged. */
typedef enum
@@ -71,7 +69,6 @@ typedef enum
E_MEETING_TIME_SELECTOR_POS_END
} EMeetingTimeSelectorPosition;
-
/* This is used to specify the autopick option, which determines how we choose
the previous/next appropriate meeting time. */
typedef enum
@@ -87,12 +84,10 @@ extern const gchar *EMeetingTimeSelectorHours[24];
/* An array of hour strings for 12 hour time, "12:00am" .. "11:00pm". */
extern const gchar *EMeetingTimeSelectorHours12[24];
-
#define E_MEETING_TIME_SELECTOR(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, e_meeting_time_selector_get_type (), EMeetingTimeSelector)
#define E_MEETING_TIME_SELECTOR_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, e_meeting_time_selector_get_type (), EMeetingTimeSelectorClass)
#define IS_E_MEETING_TIME_SELECTOR(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, e_meeting_time_selector_get_type ())
-
typedef struct _EMeetingTimeSelector EMeetingTimeSelector;
typedef struct _EMeetingTimeSelectorClass EMeetingTimeSelectorClass;
@@ -200,7 +195,6 @@ struct _EMeetingTimeSelector
than every hour. Defaults to FALSE. */
gboolean zoomed_out;
-
/*
* Internal Data.
*/
@@ -263,7 +257,6 @@ struct _EMeetingTimeSelector
guint style_change_idle_id;
};
-
struct _EMeetingTimeSelectorClass
{
GtkTableClass parent_class;
@@ -271,7 +264,6 @@ struct _EMeetingTimeSelectorClass
void (* changed) (EMeetingTimeSelector *mts);
};
-
/*
* PUBLIC INTERFACE - note that this interface will probably change, when I
* know where the data is coming from. This is mainly just for testing for now.
@@ -351,8 +343,6 @@ gboolean e_meeting_time_selector_attendee_add_busy_period (EMeetingTimeSelector
gint end_minute,
EMeetingFreeBusyType busy_type);
-
-
/*
* INTERNAL ROUTINES - functions to communicate with the canvas items within
* the EMeetingTimeSelector.
diff --git a/calendar/gui/e-meeting-utils.h b/calendar/gui/e-meeting-utils.h
index cd2e76df38..1777d2c7ff 100644
--- a/calendar/gui/e-meeting-utils.h
+++ b/calendar/gui/e-meeting-utils.h
@@ -42,4 +42,3 @@ G_END_DECLS
#endif /* _E_MEETING_UTILS_H_ */
-
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index 4c6cd9b865..1cfc2b662b 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -782,7 +782,6 @@ e_memo_table_get_model (EMemoTable *memo_table)
return memo_table->priv->model;
}
-
/**
* e_memo_table_get_table:
* @memo_table: A calendar table.
@@ -1208,7 +1207,6 @@ e_memo_table_load_state (EMemoTable *memo_table,
e_table_load_state (table, filename);
}
-
/* Saves the state of the table (headers shown etc.) to the given file. */
void
e_memo_table_save_state (EMemoTable *memo_table,
diff --git a/calendar/gui/e-memos.c b/calendar/gui/e-memos.c
index 3ac375abba..8a10802bff 100644
--- a/calendar/gui/e-memos.c
+++ b/calendar/gui/e-memos.c
@@ -52,7 +52,6 @@
#include "e-memos.h"
#include "common/authentication.h"
-
/* Private part of the GnomeCalendar structure */
struct _EMemosPrivate {
/* The memo lists for display */
@@ -269,7 +268,6 @@ e_memos_class_init (EMemosClass *klass)
klass->source_removed = NULL;
}
-
static void
categories_changed_cb (gpointer object, gpointer user_data)
{
diff --git a/calendar/gui/e-memos.h b/calendar/gui/e-memos.h
index 2c0f69f87d..4c49f56a79 100644
--- a/calendar/gui/e-memos.h
+++ b/calendar/gui/e-memos.h
@@ -57,7 +57,6 @@ struct _EMemosClass {
void (* source_removed) (EMemos *memos, ESource *source);
};
-
GType e_memos_get_type (void);
GtkWidget *e_memos_construct (EMemos *memos);
@@ -73,7 +72,6 @@ void e_memos_new_memo (EMemos *memos);
void e_memos_complete_selected (EMemos *memos);
void e_memos_delete_selected (EMemos *memos);
-
void e_memos_setup_view_menus (EMemos *memos, BonoboUIComponent *uic);
void e_memos_discard_view_menus (EMemos *memos);
diff --git a/calendar/gui/e-select-names-renderer.c b/calendar/gui/e-select-names-renderer.c
index f1aa1ec45d..0f82c3237e 100644
--- a/calendar/gui/e-select-names-renderer.c
+++ b/calendar/gui/e-select-names-renderer.c
@@ -27,7 +27,6 @@
#include "e-select-names-editable.h"
#include "e-select-names-renderer.h"
-
struct _ESelectNamesRendererPriv {
ESelectNamesEditable *editable;
gchar *path;
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 9a5a894f4c..2f24ebfbc2 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -56,7 +56,6 @@
#include "e-cal-menu.h"
#include "e-cal-model-tasks.h"
-
/* Private part of the GnomeCalendar structure */
struct _ETasksPrivate {
/* The task lists for display */
@@ -244,7 +243,6 @@ table_drag_begin (ETable *table,
}
-
static void
table_drag_end (ETable *table,
gint row,
@@ -327,7 +325,6 @@ setup_widgets (ETasks *tasks)
gtk_paned_add1 (GTK_PANED (priv->paned), priv->tasks_view);
gtk_widget_show (priv->tasks_view);
-
e_table_drag_source_set (etable, GDK_BUTTON1_MASK,
list_drag_types, num_list_drag_types,
GDK_ACTION_MOVE|GDK_ACTION_COPY|GDK_ACTION_ASK);
@@ -408,7 +405,6 @@ e_tasks_class_init (ETasksClass *class)
class->source_removed = NULL;
}
-
/* Object initialization function for the gnome calendar */
static void
e_tasks_init (ETasks *tasks)
@@ -524,7 +520,6 @@ open_ecal (ETasks *tasks, ECal *cal, gboolean only_if_exists, open_func of)
zone = calendar_config_get_icaltimezone ();
e_cal_set_default_timezone (cal, zone, NULL);
-
set_status_message (tasks, _("Opening tasks at %s"), e_cal_get_uri (cal));
g_signal_connect (G_OBJECT (cal), "cal_opened", G_CALLBACK (of), tasks);
@@ -594,7 +589,6 @@ e_tasks_remove_todo_source (ETasks *tasks, ESource *source)
if (!client)
return TRUE;
-
priv->clients_list = g_list_remove (priv->clients_list, client);
g_signal_handlers_disconnect_matched (client, G_SIGNAL_MATCH_DATA,
0, 0, NULL, NULL, tasks);
@@ -604,7 +598,6 @@ e_tasks_remove_todo_source (ETasks *tasks, ESource *source)
g_hash_table_remove (priv->clients, uid);
-
g_signal_emit (tasks, e_tasks_signals[SOURCE_REMOVED], 0, source);
return TRUE;
diff --git a/calendar/gui/e-tasks.h b/calendar/gui/e-tasks.h
index 628c34ace1..a37db26117 100644
--- a/calendar/gui/e-tasks.h
+++ b/calendar/gui/e-tasks.h
@@ -57,7 +57,6 @@ struct _ETasksClass {
void (* source_removed) (ETasks *tasks, ESource *source);
};
-
GType e_tasks_get_type (void);
GtkWidget *e_tasks_construct (ETasks *tasks);
diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c
index 28660fd3b9..f3e239aa63 100644
--- a/calendar/gui/e-timezone-entry.c
+++ b/calendar/gui/e-timezone-entry.c
@@ -49,7 +49,6 @@ struct _ETimezoneEntryPrivate {
GtkWidget *button;
};
-
enum {
CHANGED,
LAST_SIGNAL
@@ -70,7 +69,6 @@ static void add_relation (ETimezoneEntry *tentry,
static void e_timezone_entry_set_entry (ETimezoneEntry *tentry);
-
static guint timezone_entry_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (ETimezoneEntry, e_timezone_entry, GTK_TYPE_HBOX)
@@ -99,7 +97,6 @@ e_timezone_entry_class_init (ETimezoneEntryClass *class)
class->changed = NULL;
}
-
static void
e_timezone_entry_init (ETimezoneEntry *tentry)
{
@@ -128,7 +125,6 @@ e_timezone_entry_init (ETimezoneEntry *tentry)
}
}
-
/**
* e_timezone_entry_new:
*
@@ -149,7 +145,6 @@ e_timezone_entry_new (void)
return GTK_WIDGET (tentry);
}
-
static void
e_timezone_entry_destroy (GtkObject *object)
{
@@ -166,7 +161,6 @@ e_timezone_entry_destroy (GtkObject *object)
(* GTK_OBJECT_CLASS (e_timezone_entry_parent_class)->destroy) (object);
}
-
/* The arrow button beside the date field has been clicked, so we show the
popup with the ECalendar in. */
static void
@@ -193,7 +187,6 @@ on_button_clicked (GtkWidget *widget,
g_object_unref (timezone_dialog);
}
-
static void
on_entry_changed (GtkEntry *entry,
ETimezoneEntry *tentry)
@@ -201,7 +194,6 @@ on_entry_changed (GtkEntry *entry,
g_signal_emit (GTK_OBJECT (tentry), timezone_entry_signals[CHANGED], 0);
}
-
icaltimezone*
e_timezone_entry_get_timezone (ETimezoneEntry *tentry)
{
@@ -272,7 +264,6 @@ e_timezone_entry_set_timezone (ETimezoneEntry *tentry,
add_relation (tentry, priv->entry);
}
-
/* Sets the default timezone. If the current timezone matches this, then the
entry field is hidden. This is useful since most people do not use timezones
so it makes the user interface simpler. */
@@ -291,7 +282,6 @@ e_timezone_entry_set_default_timezone (ETimezoneEntry *tentry,
e_timezone_entry_set_entry (tentry);
}
-
static void
e_timezone_entry_set_entry (ETimezoneEntry *tentry)
{
@@ -325,7 +315,6 @@ e_timezone_entry_set_entry (ETimezoneEntry *tentry)
g_free (name_buffer);
}
-
static gboolean
e_timezone_entry_mnemonic_activate (GtkWidget *widget,
gboolean group_cycling)
diff --git a/calendar/gui/e-timezone-entry.h b/calendar/gui/e-timezone-entry.h
index 6c63fb8444..c1bf482aef 100644
--- a/calendar/gui/e-timezone-entry.h
+++ b/calendar/gui/e-timezone-entry.h
@@ -37,14 +37,12 @@
G_BEGIN_DECLS
-
#define E_TYPE_TIMEZONE_ENTRY (e_timezone_entry_get_type ())
#define E_TIMEZONE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), E_TYPE_TIMEZONE_ENTRY, ETimezoneEntry))
#define E_TIMEZONE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), E_TYPE_TIMEZONE_ENTRY, ETimezoneEntryClass))
#define E_IS_TIMEZONE_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), E_TYPE_TIMEZONE_ENTRY))
#define E_IS_TIMEZONE_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), E_TYPE_TIMEZONE_ENTRY))
-
typedef struct _ETimezoneEntry ETimezoneEntry;
typedef struct _ETimezoneEntryPrivate ETimezoneEntryPrivate;
typedef struct _ETimezoneEntryClass ETimezoneEntryClass;
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 6ab551e6fc..8ad8b608a2 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -89,7 +89,6 @@ static ECalendarViewPosition e_week_view_event_item_get_position (EWeekViewEvent
gdouble x,
gdouble y);
-
/* The arguments we take */
enum {
PROP_0,
@@ -139,7 +138,6 @@ e_week_view_event_item_class_init (EWeekViewEventItemClass *class)
G_PARAM_WRITABLE));
}
-
static void
e_week_view_event_item_init (EWeekViewEventItem *wveitem)
{
@@ -147,7 +145,6 @@ e_week_view_event_item_init (EWeekViewEventItem *wveitem)
wveitem->span_num = -1;
}
-
static void
e_week_view_event_item_set_property (GObject *object,
guint property_id,
@@ -174,7 +171,6 @@ e_week_view_event_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_week_view_event_item_update (GnomeCanvasItem *item,
double *affine,
@@ -720,7 +716,6 @@ e_week_view_draw_time (EWeekView *week_view,
g_object_unref (layout);
}
-
static void
e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
GdkDrawable *drawable,
@@ -859,7 +854,6 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
gdk_gc_set_clip_mask (gc, NULL);
}
-
/* This draws a little triangle to indicate that an event extends past
the days visible on screen. */
static void
@@ -922,7 +916,6 @@ e_week_view_event_item_draw_triangle (EWeekViewEventItem *wveitem,
cairo_save (cr);
gdk_cairo_set_source_color (cr, &week_view->colors[E_WEEK_VIEW_COLOR_EVENT_BORDER]);
-
/* If the height is odd we can use the same central point for both
lines. If it is even we use different end-points. */
c1 = c2 = y + (h / 2);
@@ -951,7 +944,6 @@ e_week_view_event_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
static gint
e_week_view_event_item_event (GnomeCanvasItem *item, GdkEvent *event)
{
@@ -975,7 +967,6 @@ e_week_view_event_item_event (GnomeCanvasItem *item, GdkEvent *event)
return FALSE;
}
-
static gboolean
e_week_view_event_item_button_press (EWeekViewEventItem *wveitem,
GdkEvent *bevent)
@@ -1045,7 +1036,6 @@ e_week_view_event_item_button_press (EWeekViewEventItem *wveitem,
return FALSE;
}
-
static gboolean
e_week_view_event_item_button_release (EWeekViewEventItem *wveitem,
GdkEvent *event)
@@ -1109,7 +1099,6 @@ e_week_view_event_item_double_click (EWeekViewEventItem *wveitem,
return TRUE;
}
-
static ECalendarViewPosition
e_week_view_event_item_get_position (EWeekViewEventItem *wveitem,
gdouble x,
diff --git a/calendar/gui/e-week-view-event-item.h b/calendar/gui/e-week-view-event-item.h
index ebc5d07e07..6c077747f1 100644
--- a/calendar/gui/e-week-view-event-item.h
+++ b/calendar/gui/e-week-view-event-item.h
@@ -56,11 +56,8 @@ typedef struct {
} EWeekViewEventItemClass;
-
GType e_week_view_event_item_get_type (void);
-
-
G_END_DECLS
#endif /* _E_WEEK_VIEW_EVENT_ITEM_H_ */
diff --git a/calendar/gui/e-week-view-layout.c b/calendar/gui/e-week-view-layout.c
index 8f0cb5ece8..f28f77a020 100644
--- a/calendar/gui/e-week-view-layout.c
+++ b/calendar/gui/e-week-view-layout.c
@@ -45,7 +45,6 @@ static gint e_week_view_find_span_end (gboolean multi_week_view,
gint display_start_day,
gint day);
-
GArray*
e_week_view_layout_events (GArray *events,
GArray *old_spans,
@@ -108,7 +107,6 @@ e_week_view_layout_events (GArray *events,
return spans;
}
-
static void
e_week_view_layout_event (EWeekViewEvent *event,
guint8 *grid,
@@ -211,7 +209,6 @@ e_week_view_layout_event (EWeekViewEvent *event,
event->num_spans = num_spans;
}
-
/* Finds the day containing the given time.
If include_midnight_in_prev_day is TRUE then if the time exactly
matches the start of a day the previous day is returned. This is useful
@@ -241,7 +238,6 @@ e_week_view_find_day (time_t time_to_find,
g_return_val_if_reached (days_shown);
}
-
/* This returns the last possible day in the same span as the given day.
A span is all the days which are displayed next to each other from left to
right. In the week view all spans are only 1 day, since Tuesday is below
@@ -279,7 +275,6 @@ e_week_view_find_span_end (gboolean multi_week_view,
}
}
-
void
e_week_view_layout_get_day_position (gint day,
gboolean multi_week_view,
@@ -403,7 +398,6 @@ e_week_view_layout_get_day_position (gint day,
}
}
-
/* Returns TRUE if the event span is visible or FALSE if it isn't.
It also returns the number of days of the span that are visible.
Usually this can easily be determined by the start & end days and row of
diff --git a/calendar/gui/e-week-view-main-item.c b/calendar/gui/e-week-view-main-item.c
index 3ea3e2e63b..ed4d14232b 100644
--- a/calendar/gui/e-week-view-main-item.c
+++ b/calendar/gui/e-week-view-main-item.c
@@ -98,14 +98,12 @@ e_week_view_main_item_class_init (EWeekViewMainItemClass *class)
#endif
}
-
static void
e_week_view_main_item_init (EWeekViewMainItem *wvmitem)
{
wvmitem->week_view = NULL;
}
-
static void
e_week_view_main_item_set_property (GObject *object,
guint property_id,
@@ -125,7 +123,6 @@ e_week_view_main_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_week_view_main_item_update (GnomeCanvasItem *item,
double *affine,
@@ -142,7 +139,6 @@ e_week_view_main_item_update (GnomeCanvasItem *item,
item->y2 = INT_MAX;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -455,4 +451,3 @@ e_week_view_main_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
diff --git a/calendar/gui/e-week-view-main-item.h b/calendar/gui/e-week-view-main-item.h
index 135a25e662..3be9bbe5f3 100644
--- a/calendar/gui/e-week-view-main-item.h
+++ b/calendar/gui/e-week-view-main-item.h
@@ -52,11 +52,8 @@ typedef struct {
} EWeekViewMainItemClass;
-
GType e_week_view_main_item_get_type (void);
-
-
G_END_DECLS
#endif /* _E_WEEK_VIEW_MAIN_ITEM_H_ */
diff --git a/calendar/gui/e-week-view-titles-item.c b/calendar/gui/e-week-view-titles-item.c
index e9ff467b63..69108f43cb 100644
--- a/calendar/gui/e-week-view-titles-item.c
+++ b/calendar/gui/e-week-view-titles-item.c
@@ -82,14 +82,12 @@ e_week_view_titles_item_class_init (EWeekViewTitlesItemClass *class)
G_PARAM_WRITABLE));
}
-
static void
e_week_view_titles_item_init (EWeekViewTitlesItem *wvtitem)
{
wvtitem->week_view = NULL;
}
-
static void
e_week_view_titles_item_set_property (GObject *object,
guint property_id,
@@ -109,7 +107,6 @@ e_week_view_titles_item_set_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
}
-
static void
e_week_view_titles_item_update (GnomeCanvasItem *item,
double *affine,
@@ -126,7 +123,6 @@ e_week_view_titles_item_update (GnomeCanvasItem *item,
item->y2 = INT_MAX;
}
-
/*
* DRAWING ROUTINES - functions to paint the canvas item.
*/
@@ -263,7 +259,6 @@ e_week_view_titles_item_draw (GnomeCanvasItem *canvas_item,
g_object_unref (layout);
}
-
/* This is supposed to return the nearest item the the point and the distance.
Since we are the only item we just return ourself and 0 for the distance.
This is needed so that we get button/motion events. */
@@ -276,4 +271,3 @@ e_week_view_titles_item_point (GnomeCanvasItem *item, double x, double y,
return 0.0;
}
-
diff --git a/calendar/gui/e-week-view-titles-item.h b/calendar/gui/e-week-view-titles-item.h
index 6ee6cdaa96..3b27034202 100644
--- a/calendar/gui/e-week-view-titles-item.h
+++ b/calendar/gui/e-week-view-titles-item.h
@@ -52,11 +52,8 @@ typedef struct {
} EWeekViewTitlesItemClass;
-
GType e_week_view_titles_item_get_type (void);
-
-
G_END_DECLS
#endif /* _E_WEEK_VIEW_TITLES_ITEM_H_ */
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 6397ce94d1..838fda8478 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -373,7 +373,6 @@ model_row_changed_cb (ETableModel *etm, gint row, gpointer user_data)
return;
}
-
update_row (week_view, row);
}
@@ -664,7 +663,6 @@ e_week_view_new (ECalModel *model)
return week_view;
}
-
static void
e_week_view_destroy (GtkObject *object)
{
@@ -713,7 +711,6 @@ e_week_view_destroy (GtkObject *object)
GTK_OBJECT_CLASS (e_week_view_parent_class)->destroy (object);
}
-
static void
e_week_view_realize (GtkWidget *widget)
{
@@ -989,7 +986,6 @@ e_week_view_style_set (GtkWidget *widget,
pango_font_metrics_unref (font_metrics);
}
-
/* This recalculates the sizes of each column. */
static void
e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
@@ -1012,7 +1008,6 @@ e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
gnome_canvas_set_scroll_region (GNOME_CANVAS (week_view->titles_canvas),
0, 0, new_x2, new_y2);
-
/* Set the scroll region of the main canvas to its allocated width,
but with the height depending on the number of rows needed. */
gnome_canvas_get_scroll_region (GNOME_CANVAS (week_view->main_canvas),
@@ -1030,7 +1025,6 @@ e_week_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
}
}
-
static void
e_week_view_recalc_cell_sizes (EWeekView *week_view)
{
@@ -1085,7 +1079,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
- week_view->row_offsets[row];
}
-
/* If the font hasn't been set yet just return. */
widget = GTK_WIDGET (week_view);
style = gtk_widget_get_style (widget);
@@ -1099,7 +1092,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
font_metrics = pango_context_get_metrics (pango_context, font_desc,
pango_context_get_language (pango_context));
-
/* Calculate the number of rows of events in each cell, for the large
cells and the compressed weekend cells. */
if (week_view->multi_week_view) {
@@ -1151,7 +1143,6 @@ e_week_view_recalc_cell_sizes (EWeekView *week_view)
pango_font_metrics_unref (font_metrics);
}
-
static gint
e_week_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1170,7 +1161,6 @@ e_week_view_focus_in (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
static gint
e_week_view_focus_out (GtkWidget *widget, GdkEventFocus *event)
{
@@ -1189,7 +1179,6 @@ e_week_view_focus_out (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
/* This draws a shadow around the top display and main display. */
static gint
e_week_view_expose_event (GtkWidget *widget,
@@ -1507,7 +1496,6 @@ e_week_view_set_selected_time_range_visible (EWeekView *week_view,
gtk_widget_queue_draw (week_view->main_canvas);
}
-
/* Returns the selected time range. */
static gboolean
e_week_view_get_selected_time_range (ECalendarView *cal_view,
@@ -1554,7 +1542,6 @@ e_week_view_get_visible_time_range (ECalendarView *cal_view,
return TRUE;
}
-
/* Note that the returned date may be invalid if no date has been set yet. */
void
e_week_view_get_first_day_shown (EWeekView *week_view,
@@ -1563,7 +1550,6 @@ e_week_view_get_first_day_shown (EWeekView *week_view,
*date = week_view->first_day_shown;
}
-
/* This sets the first day shown in the view. It will be rounded down to the
nearest week. */
void
@@ -1653,7 +1639,6 @@ e_week_view_set_first_day_shown (EWeekView *week_view,
gtk_widget_queue_draw (week_view->main_canvas);
}
-
/* Recalculates the time_t corresponding to the start of each day. */
static void
e_week_view_recalc_day_starts (EWeekView *week_view,
@@ -1695,7 +1680,6 @@ e_week_view_get_multi_week_view (EWeekView *week_view)
return week_view->multi_week_view;
}
-
void
e_week_view_set_multi_week_view (EWeekView *week_view,
gboolean multi_week_view)
@@ -1754,7 +1738,6 @@ e_week_view_get_update_base_date (EWeekView *week_view)
return week_view->update_base_date;
}
-
void
e_week_view_set_update_base_date (EWeekView *week_view, gboolean update_base_date)
{
@@ -1771,7 +1754,6 @@ e_week_view_get_weeks_shown (EWeekView *week_view)
return week_view->weeks_shown;
}
-
void
e_week_view_set_weeks_shown (EWeekView *week_view,
gint weeks_shown)
@@ -1811,7 +1793,6 @@ e_week_view_set_weeks_shown (EWeekView *week_view,
}
}
-
gboolean
e_week_view_get_compress_weekend (EWeekView *week_view)
{
@@ -1820,7 +1801,6 @@ e_week_view_get_compress_weekend (EWeekView *week_view)
return week_view->compress_weekend;
}
-
void
e_week_view_set_compress_weekend (EWeekView *week_view,
gboolean compress)
@@ -1867,7 +1847,6 @@ e_week_view_get_show_event_end_times (EWeekView *week_view)
return week_view->show_event_end_times;
}
-
void
e_week_view_set_show_event_end_times (EWeekView *week_view,
gboolean show)
@@ -1882,7 +1861,6 @@ e_week_view_set_show_event_end_times (EWeekView *week_view,
}
}
-
/* The first day of the week, 0 (Monday) to 6 (Sunday). */
gint
e_week_view_get_week_start_day (EWeekView *week_view)
@@ -1892,7 +1870,6 @@ e_week_view_get_week_start_day (EWeekView *week_view)
return week_view->week_start_day;
}
-
void
e_week_view_set_week_start_day (EWeekView *week_view,
gint week_start_day)
@@ -2004,7 +1981,6 @@ e_week_view_foreach_event_with_uid (EWeekView *week_view,
}
}
-
static gboolean
e_week_view_remove_event_cb (EWeekView *week_view,
gint event_num,
@@ -2066,7 +2042,6 @@ e_week_view_remove_event_cb (EWeekView *week_view,
return TRUE;
}
-
void
e_week_view_get_day_position (EWeekView *week_view,
gint day,
@@ -2097,7 +2072,6 @@ e_week_view_get_day_position (EWeekView *week_view,
}
}
-
/* Returns the bounding box for a span of an event. Usually this can easily
be determined by the start & end days and row of the span, which are set in
e_week_view_layout_event(). Though we need a special case for the weekends
@@ -2159,8 +2133,6 @@ e_week_view_get_span_position (EWeekView *week_view,
return TRUE;
}
-
-
static gboolean
e_week_view_on_button_press (GtkWidget *widget,
GdkEventButton *event,
@@ -2237,7 +2209,6 @@ e_week_view_on_button_press (GtkWidget *widget,
return TRUE;
}
-
static gboolean
e_week_view_on_button_release (GtkWidget *widget,
GdkEventButton *event,
@@ -2293,7 +2264,6 @@ e_week_view_on_scroll (GtkWidget *widget,
return TRUE;
}
-
static gboolean
e_week_view_on_motion (GtkWidget *widget,
GdkEventMotion *mevent,
@@ -2320,7 +2290,6 @@ e_week_view_on_motion (GtkWidget *widget,
return FALSE;
}
-
/* Converts a position in the canvas window to a day offset from the first
day displayed. Returns -1 if the position is outside the grid. */
static gint
@@ -2380,7 +2349,6 @@ e_week_view_convert_position_to_day (EWeekView *week_view,
return week * 7 + day;
}
-
static void
e_week_view_update_selection (EWeekView *week_view,
gint day)
@@ -2421,7 +2389,6 @@ e_week_view_update_selection (EWeekView *week_view,
}
}
-
static void
e_week_view_free_events (EWeekView *week_view)
{
@@ -2471,7 +2438,6 @@ e_week_view_free_events (EWeekView *week_view)
}
}
-
/* This adds one event to the view, adding it to the appropriate array. */
static gboolean
e_week_view_add_event (ECalComponent *comp,
@@ -2546,7 +2512,6 @@ e_week_view_add_event (ECalComponent *comp,
return TRUE;
}
-
/* This lays out the events, or reshapes them, as necessary. */
static void
e_week_view_check_layout (EWeekView *week_view)
@@ -2575,7 +2540,6 @@ e_week_view_check_layout (EWeekView *week_view)
week_view->events_need_reshape = FALSE;
}
-
static void
e_week_view_ensure_events_sorted (EWeekView *week_view)
{
@@ -2588,7 +2552,6 @@ e_week_view_ensure_events_sorted (EWeekView *week_view)
}
}
-
gint
e_week_view_event_sort_func (gconstpointer arg1,
gconstpointer arg2)
@@ -2611,7 +2574,6 @@ e_week_view_event_sort_func (gconstpointer arg1,
return 0;
}
-
static void
e_week_view_reshape_events (EWeekView *week_view)
{
@@ -2900,7 +2862,6 @@ e_week_view_reshape_event_span (EWeekView *week_view,
the icons in the middle, but making sure we don't go over the times.
*/
-
/* Calculate the space necessary to display a time, e.g. "13:00". */
time_width = e_week_view_get_time_string_width (week_view);
@@ -3112,7 +3073,6 @@ e_week_view_start_editing_event (EWeekView *week_view,
return TRUE;
}
-
/* This stops any current edit. */
void
e_week_view_stop_editing_event (EWeekView *week_view)
@@ -3129,7 +3089,6 @@ e_week_view_stop_editing_event (EWeekView *week_view)
gtk_window_set_focus (GTK_WINDOW (toplevel), NULL);
}
-
/* Cancels the current edition by resetting the appointment's text to its original value */
static void
cancel_editing (EWeekView *week_view)
@@ -3304,7 +3263,6 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item,
&nspan))
return FALSE;
-
g_object_set_data ((GObject *)item, "event-num", GINT_TO_POINTER (nevent));
pevent = tooltip_get_view_event (week_view, -1, nevent);
@@ -3510,7 +3468,6 @@ e_week_view_change_event_time (EWeekView *week_view, time_t start_dt, time_t end
week_view->last_edited_comp_string = e_cal_component_get_as_string (comp);
-
if (e_cal_component_has_recurrences (comp)) {
if (!recur_component_dialog (client, comp, &mod, NULL, FALSE)) {
gtk_widget_queue_draw (week_view->main_canvas);
@@ -3565,7 +3522,6 @@ e_week_view_on_editing_started (EWeekView *week_view,
g_signal_emit_by_name (week_view, "selection_changed");
}
-
static void
e_week_view_on_editing_stopped (EWeekView *week_view,
GnomeCanvasItem *item)
@@ -3725,7 +3681,6 @@ e_week_view_on_editing_stopped (EWeekView *week_view,
g_signal_emit_by_name (week_view, "selection_changed");
}
-
gboolean
e_week_view_find_event_from_item (EWeekView *week_view,
GnomeCanvasItem *item,
@@ -3755,7 +3710,6 @@ e_week_view_find_event_from_item (EWeekView *week_view,
return FALSE;
}
-
/* Finds the index of the event with the given uid.
Returns TRUE if an event with the uid was found.
Note that for recurring events there may be several EWeekViewEvents, one
@@ -3808,7 +3762,6 @@ e_week_view_find_event_from_uid (EWeekView *week_view,
return FALSE;
}
-
gboolean
e_week_view_is_one_day_event (EWeekView *week_view,
gint event_num)
@@ -4409,7 +4362,6 @@ e_week_view_on_jump_button_event (GnomeCanvasItem *item,
return FALSE;
}
-
/* Converts an hour from 0-23 to the preferred time format, and returns the
suffix to add and the width of it in the normal font. */
void
@@ -4441,7 +4393,6 @@ e_week_view_convert_time_to_display (EWeekView *week_view,
}
}
-
gint
e_week_view_get_time_string_width (EWeekView *week_view)
{
@@ -4470,7 +4421,6 @@ e_week_view_queue_layout (EWeekView *week_view)
}
}
-
/* Removes any queued layout. */
static void
e_week_view_cancel_layout (EWeekView *week_view)
@@ -4481,7 +4431,6 @@ e_week_view_cancel_layout (EWeekView *week_view)
}
}
-
static gboolean
e_week_view_layout_timeout_cb (gpointer data)
{
@@ -4494,7 +4443,6 @@ e_week_view_layout_timeout_cb (gpointer data)
return FALSE;
}
-
/* Returns the number of selected events (0 or 1 at present). */
gint
e_week_view_get_num_events_selected (EWeekView *week_view)
diff --git a/calendar/gui/e-week-view.h b/calendar/gui/e-week-view.h
index eff5466895..b536e5d5a3 100644
--- a/calendar/gui/e-week-view.h
+++ b/calendar/gui/e-week-view.h
@@ -147,12 +147,10 @@ struct _EWeekViewEvent {
guint8 num_spans;
};
-
#define E_WEEK_VIEW(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, e_week_view_get_type (), EWeekView)
#define E_WEEK_VIEW_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, e_week_view_get_type (), EWeekViewClass)
#define E_IS_WEEK_VIEW(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, e_week_view_get_type ())
-
typedef struct _EWeekView EWeekView;
typedef struct _EWeekViewClass EWeekViewClass;
@@ -349,7 +347,6 @@ struct _EWeekViewClass
ECalendarViewClass parent_class;
};
-
GType e_week_view_get_type (void);
GtkWidget* e_week_view_new (ECalModel *model);
diff --git a/calendar/gui/ea-cal-view-event.c b/calendar/gui/ea-cal-view-event.c
index 5da164323f..5f0af90261 100644
--- a/calendar/gui/ea-cal-view-event.c
+++ b/calendar/gui/ea-cal-view-event.c
@@ -48,7 +48,6 @@ static gboolean ea_cal_view_event_do_action (AtkAction *action, gint i);
static gint ea_cal_view_event_get_n_actions (AtkAction *action);
static G_CONST_RETURN gchar * ea_cal_view_event_action_get_name (AtkAction *action, gint i);
-
#ifdef ACC_DEBUG
static gint n_ea_cal_view_event_created = 0, n_ea_cal_view_event_destroyed = 0;
static void ea_cal_view_finalize (GObject *object);
@@ -64,7 +63,6 @@ ea_cal_view_event_get_type (void)
GTypeQuery query;
GType derived_atk_type;
-
if (!type) {
static GTypeInfo tinfo = {
sizeof (EaCalViewEventClass),
@@ -91,7 +89,6 @@ ea_cal_view_event_get_type (void)
NULL
};
-
/*
* Figure out the size of the class and instance
* we are run-time deriving from (atk object for E_TEXT, in this case)
@@ -113,7 +110,6 @@ ea_cal_view_event_get_type (void)
g_type_add_interface_static (type, ATK_TYPE_ACTION,
&atk_action_info);
-
}
return type;
@@ -253,7 +249,6 @@ ea_cal_view_event_get_name (AtkObject *accessible)
gchar *summary_string;
const gchar *summary;
-
g_return_val_if_fail (EA_IS_CAL_VIEW_EVENT (accessible), NULL);
atk_gobj = ATK_GOBJECT_ACCESSIBLE (accessible);
diff --git a/calendar/gui/ea-cal-view-event.h b/calendar/gui/ea-cal-view-event.h
index 548e42b4a7..b4b193de2d 100644
--- a/calendar/gui/ea-cal-view-event.h
+++ b/calendar/gui/ea-cal-view-event.h
@@ -54,5 +54,4 @@ AtkObject *ea_cal_view_event_new (GObject *obj);
G_END_DECLS
-
#endif /* __EA_CAL_VIEW_EVENT_H__ */
diff --git a/calendar/gui/ea-calendar.c b/calendar/gui/ea-calendar.c
index d09efae4d2..b5d4b75281 100644
--- a/calendar/gui/ea-calendar.c
+++ b/calendar/gui/ea-calendar.c
@@ -34,7 +34,6 @@
#include "calendar/ea-week-view-main-item.h"
#include "calendar/ea-gnome-calendar.h"
-
EA_FACTORY (EA_TYPE_CAL_VIEW, ea_cal_view, ea_cal_view_new)
EA_FACTORY (EA_TYPE_DAY_VIEW, ea_day_view, ea_day_view_new)
EA_FACTORY_GOBJECT (EA_TYPE_DAY_VIEW_MAIN_ITEM, ea_day_view_main_item, ea_day_view_main_item_new)
diff --git a/calendar/gui/ea-day-view-cell.c b/calendar/gui/ea-day-view-cell.c
index fa491e87ea..2d42a47fc6 100644
--- a/calendar/gui/ea-day-view-cell.c
+++ b/calendar/gui/ea-day-view-cell.c
@@ -258,7 +258,6 @@ ea_day_view_cell_ref_state_set (AtkObject *obj)
atk_component_get_extents (ATK_COMPONENT (parent), &parent_x, &parent_y,
&parent_width, &parent_height, ATK_XY_WINDOW);
-
if (x + width < parent_x || x > parent_x + parent_width ||
y + height < parent_y || y > parent_y + parent_height)
/* the cell is out of the main canvas */
diff --git a/calendar/gui/ea-day-view-main-item.c b/calendar/gui/ea-day-view-main-item.c
index 3bfd56f0b3..89b6f1a57b 100644
--- a/calendar/gui/ea-day-view-main-item.c
+++ b/calendar/gui/ea-day-view-main-item.c
@@ -181,7 +181,6 @@ ea_day_view_main_item_get_type (void)
NULL
};
-
/*
* Figure out the size of the class and instance
* we are run-time deriving from (GailCanvasItem, in this case)
diff --git a/calendar/gui/ea-gnome-calendar.h b/calendar/gui/ea-gnome-calendar.h
index b0d2cf71d2..db9acdb47e 100644
--- a/calendar/gui/ea-gnome-calendar.h
+++ b/calendar/gui/ea-gnome-calendar.h
@@ -56,5 +56,4 @@ const gchar * ea_gnome_calendar_get_label_description (GnomeCalendar *gcal);
G_END_DECLS
-
#endif /* __EA_GNOME_CALENDAR_H__ */
diff --git a/calendar/gui/ea-jump-button.c b/calendar/gui/ea-jump-button.c
index eb24bea42c..a6775ade55 100644
--- a/calendar/gui/ea-jump-button.c
+++ b/calendar/gui/ea-jump-button.c
@@ -51,7 +51,6 @@ ea_jump_button_get_type (void)
GTypeQuery query;
GType derived_atk_type;
-
if (!type) {
static GTypeInfo tinfo = {
sizeof (EaJumpButtonClass),
diff --git a/calendar/gui/ea-jump-button.h b/calendar/gui/ea-jump-button.h
index cd3b6e26bb..be0a357a14 100644
--- a/calendar/gui/ea-jump-button.h
+++ b/calendar/gui/ea-jump-button.h
@@ -54,5 +54,4 @@ AtkObject *ea_jump_button_new (GObject *obj);
G_END_DECLS
-
#endif /* __EA_JUMP_BUTTON_H__ */
diff --git a/calendar/gui/ea-week-view-cell.c b/calendar/gui/ea-week-view-cell.c
index e724592ec8..57554427da 100644
--- a/calendar/gui/ea-week-view-cell.c
+++ b/calendar/gui/ea-week-view-cell.c
@@ -270,7 +270,6 @@ ea_week_view_cell_ref_state_set (AtkObject *obj)
atk_component_get_extents (ATK_COMPONENT (parent), &parent_x, &parent_y,
&parent_width, &parent_height, ATK_XY_WINDOW);
-
if (x + width < parent_x || x > parent_x + parent_width ||
y + height < parent_y || y > parent_y + parent_height)
/* the cell is out of the main canvas */
diff --git a/calendar/gui/ea-week-view-main-item.c b/calendar/gui/ea-week-view-main-item.c
index 74f4695a69..3d0bd9e8e8 100644
--- a/calendar/gui/ea-week-view-main-item.c
+++ b/calendar/gui/ea-week-view-main-item.c
@@ -181,7 +181,6 @@ ea_week_view_main_item_get_type (void)
NULL
};
-
/*
* Figure out the size of the class and instance
* we are run-time deriving from (GailCanvasItem, in this case)
diff --git a/calendar/gui/ea-week-view.h b/calendar/gui/ea-week-view.h
index bb71c17e74..09409ec4cf 100644
--- a/calendar/gui/ea-week-view.h
+++ b/calendar/gui/ea-week-view.h
@@ -55,5 +55,4 @@ AtkObject* ea_week_view_new (GtkWidget *widget);
G_END_DECLS
-
#endif /* __EA_WEEK_VIEW_H__ */
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 25b0336d16..bd131327c6 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -195,7 +195,6 @@ enum {
static guint gnome_calendar_signals[LAST_SIGNAL];
-
static void gnome_calendar_destroy (GtkObject *object);
@@ -936,7 +935,6 @@ view_selection_changed_cb (GtkWidget *view, GnomeCalendar *gcal)
g_signal_emit (gcal, gnome_calendar_signals[CALENDAR_SELECTION_CHANGED], 0);
}
-
/**
* gnome_calendar_emit_user_created_signal
* Emits "user_created" signal on a gcal and use calendar as a store where was event created.
@@ -977,7 +975,6 @@ user_created_cb (GtkWidget *view, GnomeCalendar *gcal)
gnome_calendar_add_source (gcal, E_CAL_SOURCE_TYPE_EVENT, e_cal_get_source (ecal));
}
-
static void
set_week_start (GnomeCalendar *calendar)
{
@@ -1331,7 +1328,6 @@ categories_changed_cb (gpointer object, gpointer user_data)
g_ptr_array_free (cat_array, TRUE);
}
-
static void
view_progress_cb (ECalModel *model, const gchar *message, gint percent, ECalSourceType type, GnomeCalendar *gcal)
{
@@ -1808,7 +1804,6 @@ gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time)
}
}
-
static void
update_view_times (GnomeCalendar *gcal, time_t start_time)
{
@@ -1975,7 +1970,6 @@ set_view (GnomeCalendar *gcal, GnomeCalendarViewType view_type, gboolean range_s
focus_current_view (gcal);
}
-
/**
* gnome_calendar_set_view:
* @gcal: A calendar.
@@ -2108,7 +2102,6 @@ display_view_cb (GalViewInstance *view_instance, GalView *view, gpointer data)
return;
}
-
display_view (gcal, view_type, TRUE);
if (!priv->base_view_time)
@@ -2687,7 +2680,6 @@ gnome_calendar_set_default_source (GnomeCalendar *gcal, ESource *source)
return FALSE;
}
-
open_ecal (gcal, priv->default_client, FALSE, default_client_cal_opened_cb);
return TRUE;
@@ -2791,7 +2783,6 @@ gnome_calendar_new_task (GnomeCalendar *gcal, time_t *dtstart, time_t *dtend)
gtk_window_present (GTK_WINDOW (editor));
}
-
/* Returns the selected time range for the current view. Note that this may be
different from the fields in the GnomeCalendar, since the view may clip
this or choose a more appropriate time. */
@@ -2804,7 +2795,6 @@ gnome_calendar_get_current_time_range (GnomeCalendar *gcal,
start_time, end_time);
}
-
/* Gets the visible time range for the current view. Returns FALSE if no
time range has been set yet. */
gboolean
@@ -3013,7 +3003,6 @@ gnome_calendar_hpane_resized (GtkWidget *w, GdkEventButton *e, GnomeCalendar *gc
else
gtk_widget_set_size_request (E_DAY_VIEW (priv->day_view)->time_canvas, priv->hpane_pos - 20, -1);
-
return FALSE;
}
static void
@@ -3081,7 +3070,6 @@ gnome_calendar_paste_clipboard (GnomeCalendar *gcal)
e_calendar_view_paste_clipboard (E_CALENDAR_VIEW (widget));
}
-
/* Get the current timezone. */
icaltimezone*
gnome_calendar_get_timezone (GnomeCalendar *gcal)
@@ -3092,7 +3080,6 @@ gnome_calendar_get_timezone (GnomeCalendar *gcal)
return gcal->priv->zone;
}
-
static void
gnome_calendar_notify_dates_shown_changed (GnomeCalendar *gcal)
{
@@ -3121,7 +3108,6 @@ gnome_calendar_notify_dates_shown_changed (GnomeCalendar *gcal)
update_memo_view (gcal);
}
-
/* Returns the number of selected events (0 or 1 at present). */
gint
gnome_calendar_get_num_events_selected (GnomeCalendar *gcal)
diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h
index 0803a4fb63..d904c10aa7 100644
--- a/calendar/gui/gnome-cal.h
+++ b/calendar/gui/gnome-cal.h
@@ -99,7 +99,6 @@ struct _GnomeCalendarClass {
void (* goto_date) (GnomeCalendar *gcal, GnomeCalendarGotoDateType date);
};
-
GType gnome_calendar_get_type (void);
GtkWidget *gnome_calendar_construct (GnomeCalendar *gcal);
@@ -164,7 +163,6 @@ gint gnome_calendar_get_num_events_selected (GnomeCalendar *gcal);
/* Get the current timezone. */
icaltimezone *gnome_calendar_get_timezone (GnomeCalendar *gcal);
-
/* Clipboard operations */
void gnome_calendar_cut_clipboard (GnomeCalendar *gcal);
void gnome_calendar_copy_clipboard (GnomeCalendar *gcal);
diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c
index 2287f59248..10eda35811 100644
--- a/calendar/gui/itip-utils.c
+++ b/calendar/gui/itip-utils.c
@@ -300,7 +300,6 @@ typedef struct {
icalcomponent *zones;
} ItipUtilTZData;
-
static void
foreach_tzid_callback (icalparameter *param, gpointer data)
{
@@ -411,7 +410,6 @@ comp_from (ECalComponentItipMethod method, ECalComponent *comp)
}
return g_strdup (itip_strip_mailto (organizer.value));
-
default:
if (!e_cal_component_has_attendees (comp))
return NULL;
@@ -1396,22 +1394,18 @@ reply_to_calendar_comp (ECalComponentItipMethod method,
e_cal_component_free_text_list (text_list);
-
e_cal_component_get_summary (comp, &text);
if (text.value)
subject = g_strdup (text.value);
-
e_cal_component_get_organizer (comp, &organizer);
if (organizer.value)
orig_from = g_strdup (itip_strip_mailto (organizer.value));
-
e_cal_component_get_location (comp, &location);
if (!location)
location = "Unspecified";
-
e_cal_component_get_dtstart (comp, &dtstart);
if (dtstart.value) {
start_zone = icaltimezone_get_builtin_timezone_from_tzid (dtstart.tzid);
@@ -1427,7 +1421,6 @@ reply_to_calendar_comp (ECalComponentItipMethod method,
time = g_strdup (ctime (&start));
}
-
body = g_string_new ("<br><br><hr><br><b>______ Original Appointment ______ </b><br><br><table>");
if (orig_from && *orig_from)
diff --git a/calendar/gui/memos-component.h b/calendar/gui/memos-component.h
index f1ba3de204..b46095c629 100644
--- a/calendar/gui/memos-component.h
+++ b/calendar/gui/memos-component.h
@@ -29,14 +29,12 @@
#include <widgets/misc/e-activity-handler.h>
#include "Evolution.h"
-
#define MEMOS_TYPE_COMPONENT (memos_component_get_type ())
#define MEMOS_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MEMOS_TYPE_COMPONENT, MemosComponent))
#define MEMOS_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MEMOS_TYPE_COMPONENT, MemosComponentClass))
#define MEMOS_IS_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MEMOS_TYPE_COMPONENT))
#define MEMOS_IS_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), MEMOS_TYPE_COMPONENT))
-
typedef struct _MemosComponent MemosComponent;
typedef struct _MemosComponentPrivate MemosComponentPrivate;
typedef struct _MemosComponentClass MemosComponentClass;
@@ -53,7 +51,6 @@ struct _MemosComponentClass {
POA_GNOME_Evolution_Component__epv epv;
};
-
GType memos_component_get_type (void);
MemosComponent *memos_component_peek (void);
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index 7501374cea..fb68435769 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -163,7 +163,6 @@ static const gint sept_1752[42] = {
#define SEPT_1752_START 2 /* Start day within month */
#define SEPT_1752_END 20 /* End day within month */
-
struct pdinfo
{
gint days_shown;
@@ -226,7 +225,6 @@ convert_timet_to_struct_tm (time_t time, icaltimezone *zone)
return &my_tm;
}
-
/* Fills the 42-element days array with the day numbers for the specified month. Slots outside the
* bounds of the month are filled with zeros. The starting and ending indexes of the days are
* returned in the start and end arguments.
@@ -361,7 +359,6 @@ print_border_with_triangles (GtkPrintContext *pc,
cairo_restore (cr);
}
-
/* Prints a rectangle, with or without a border, and filled or outline.
width = width of border, -ve means no border.
fillcolor = shade of fill, -ve means no fill. */
@@ -762,7 +759,6 @@ bound_text (GtkPrintContext *context,
return y1 + pango_units_to_double (layout_height);
}
-
/* Draw the borders, lines, and times down the left of the day view. */
static void
print_day_background (GtkPrintContext *context, GnomeCalendar *gcal,
@@ -866,7 +862,6 @@ print_day_background (GtkPrintContext *context, GnomeCalendar *gcal,
pango_font_description_free (font_minute);
}
-
/* This adds one event to the view, adding it to the appropriate array. */
static gint
print_day_add_event (ECalModelComponent *comp_data,
@@ -941,7 +936,6 @@ print_day_add_event (ECalModelComponent *comp_data,
return E_DAY_VIEW_LONG_EVENT;
}
-
static gboolean
print_day_details_cb (ECalComponent *comp, time_t istart, time_t iend,
gpointer data)
@@ -956,7 +950,6 @@ print_day_details_cb (ECalComponent *comp, time_t istart, time_t iend,
return TRUE;
}
-
static void
free_event_array (GArray *array)
{
@@ -1165,7 +1158,6 @@ print_day_long_event (GtkPrintContext *context, PangoFontDescription *font,
g_free (text);
}
-
static void
print_day_event (GtkPrintContext *context, PangoFontDescription *font,
double left, double right, double top, double bottom,
@@ -1244,7 +1236,6 @@ print_day_event (GtkPrintContext *context, PangoFontDescription *font,
g_free (text);
}
-
static void
print_day_details (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
double left, double right, double top, double bottom)
@@ -1343,7 +1334,6 @@ print_day_details (GtkPrintContext *context, GnomeCalendar *gcal, time_t whence,
/* Now adjust to get rid of the time column. */
left += DAY_VIEW_TIME_COLUMN_WIDTH;
-
/* lay out the short events, within the day. */
e_day_view_layout_day_events (pdi.events[0], DAY_VIEW_ROWS,
DAY_VIEW_MINS_PER_ROW, pdi.cols_per_row, -1);
@@ -1389,7 +1379,6 @@ print_is_one_day_week_event (EWeekViewEvent *event,
return FALSE;
}
-
static void
print_week_long_event (GtkPrintContext *context, PangoFontDescription *font,
struct psinfo *psi,
@@ -1456,7 +1445,6 @@ print_week_long_event (GtkPrintContext *context, PangoFontDescription *font,
print_text_size (context, text, PANGO_ALIGN_CENTER, x1, x2, y1, y2);
}
-
static void
print_week_day_event (GtkPrintContext *context, PangoFontDescription *font,
struct psinfo *psi,
@@ -1495,7 +1483,6 @@ print_week_day_event (GtkPrintContext *context, PangoFontDescription *font,
print_text_size (context, text, PANGO_ALIGN_LEFT, x1, x2, y1, y2 + 3);
}
-
static void
print_week_event (GtkPrintContext *context, PangoFontDescription *font,
struct psinfo *psi,
@@ -1556,7 +1543,6 @@ print_week_event (GtkPrintContext *context, PangoFontDescription *font,
+ span->row * psi->row_height;
y2 = y1 + psi->row_height * 0.5;
-
red = .9;
green = .9;
blue = .9;
@@ -1621,7 +1607,6 @@ print_week_event (GtkPrintContext *context, PangoFontDescription *font,
g_free (text);
}
-
static void
print_week_view_background (GtkPrintContext *context,
PangoFontDescription *font,
@@ -1806,7 +1791,6 @@ print_week_summary (GtkPrintContext *context, GnomeCalendar *gcal,
cell_height = (bottom - top) / 6;
}
-
/* Calculate the row height, using the normal font and with room for
space or a rectangle around it. */
psi.row_height = font_size * 1.2;
@@ -1841,7 +1825,6 @@ print_week_summary (GtkPrintContext *context, GnomeCalendar *gcal,
#endif
}
-
/* XXX Evolution doesn't have a "year" view. */
#if 0
static void
@@ -1964,7 +1947,6 @@ print_month_summary (GtkPrintContext *context, GnomeCalendar *gcal, time_t whenc
left, right, top, bottom);
}
-
static void
print_todo_details (GtkPrintContext *context, GnomeCalendar *gcal,
time_t start, time_t end,
@@ -2048,7 +2030,6 @@ print_todo_details (GtkPrintContext *context, GnomeCalendar *gcal,
y = bound_text (context, font_summary, summary.value, -1,
x + 14, y + 4, xend, yend, FALSE, NULL, NULL);
-
y += get_font_size (font_summary)-5;
cr = gtk_print_context_get_cairo_context (context);
cairo_move_to (cr, x, y);
@@ -2105,14 +2086,12 @@ print_day_view (GtkPrintContext *context, GnomeCalendar *gcal, time_t date)
l, 4, l + SMALL_MONTH_WIDTH, HEADER_HEIGHT + 4,
DATE_MONTH | DATE_YEAR, date, date, FALSE);
-
l += SMALL_MONTH_SPACING + SMALL_MONTH_WIDTH;
print_month_small (context, gcal,
time_add_month_with_zone (date, 1, zone),
l, 4, l + SMALL_MONTH_WIDTH, HEADER_HEIGHT + 4,
DATE_MONTH | DATE_YEAR, 0, 0, FALSE);
-
/* Print the date, e.g. '8th May, 2001'. */
format_date (date, DATE_DAY | DATE_MONTH | DATE_YEAR,
buf, 100);
@@ -2168,7 +2147,6 @@ print_week_view (GtkPrintContext *context, GnomeCalendar *gcal, time_t date)
0.0, width,
HEADER_HEIGHT + 20, height);
-
/* Print the border around the main view. */
print_border (context, 0.0, width, HEADER_HEIGHT ,
height, 1.0, -1.0);
@@ -2206,7 +2184,6 @@ print_week_view (GtkPrintContext *context, GnomeCalendar *gcal, time_t date)
24 + 3, 24 + 3 + 24);
}
-
static void
print_month_view (GtkPrintContext *context, GnomeCalendar *gcal, time_t date)
{
@@ -2623,7 +2600,6 @@ print_comp_draw_real (GtkPrintOperation *operation,
top += get_font_size (font) - 6;
}
-
/* URL */
e_cal_component_get_url (comp, &url);
if (url && url[0]) {
diff --git a/calendar/gui/tasks-component.h b/calendar/gui/tasks-component.h
index aae49fc287..851d3d0381 100644
--- a/calendar/gui/tasks-component.h
+++ b/calendar/gui/tasks-component.h
@@ -28,14 +28,12 @@
#include <misc/e-activity-handler.h>
#include "Evolution.h"
-
#define TASKS_TYPE_COMPONENT (tasks_component_get_type ())
#define TASKS_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TASKS_TYPE_COMPONENT, TasksComponent))
#define TASKS_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TASKS_TYPE_COMPONENT, TasksComponentClass))
#define TASKS_IS_COMPONENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TASKS_TYPE_COMPONENT))
#define TASKS_IS_COMPONENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), TASKS_TYPE_COMPONENT))
-
typedef struct _TasksComponent TasksComponent;
typedef struct _TasksComponentPrivate TasksComponentPrivate;
typedef struct _TasksComponentClass TasksComponentClass;
@@ -52,7 +50,6 @@ struct _TasksComponentClass {
POA_GNOME_Evolution_Component__epv epv;
};
-
GType tasks_component_get_type (void);
#endif /* _TASKS_COMPONENT_H_ */
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c
index 5fa7f7a541..61f7eb4848 100644
--- a/calendar/gui/tasks-control.c
+++ b/calendar/gui/tasks-control.c
@@ -49,7 +49,6 @@
#define FIXED_MARGIN .05
-
static void tasks_control_activate_cb (BonoboControl *control,
gboolean activate,
gpointer user_data);
@@ -246,7 +245,6 @@ tasks_control_activate (BonoboControl *control, ETasks *tasks)
bonobo_ui_component_set_prop(uic, "/commands/ViewPreview", "state", state?"1":"0", NULL);
}
-
void
tasks_control_deactivate (BonoboControl *control, ETasks *tasks)
{
diff --git a/calendar/gui/weekday-picker.c b/calendar/gui/weekday-picker.c
index 913144d4a7..12c09b43c5 100644
--- a/calendar/gui/weekday-picker.c
+++ b/calendar/gui/weekday-picker.c
@@ -201,7 +201,6 @@ day_event_cb (GnomeCanvasItem *item, GdkEvent *event, gpointer data)
return TRUE;
}
-
/* Creates the canvas items for the weekday picker. The items are empty until
* they are configured elsewhere.
*/