diff options
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r-- | calendar/gui/e-meeting-time-sel.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index 1ea1c9082a..1f4f953c9c 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -82,7 +82,6 @@ enum { LAST_SIGNAL }; - static gint mts_signals [LAST_SIGNAL] = { 0 }; static void e_meeting_time_selector_destroy (GtkObject *object); @@ -163,7 +162,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, @@ -221,7 +219,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) { @@ -248,7 +245,6 @@ e_meeting_time_selector_init (EMeetingTimeSelector * mts) mts->style_change_idle_id = 0; } - void e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingStore *ems) { @@ -299,7 +295,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; @@ -318,7 +313,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); @@ -676,7 +670,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 @@ -740,7 +733,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) @@ -756,7 +748,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) @@ -772,7 +763,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) @@ -788,7 +778,6 @@ e_meeting_time_selector_autopick_menu_detacher (GtkWidget *widget, mts->autopick_menu = NULL; } - GtkWidget * e_meeting_time_selector_new (EMeetingStore *ems) { @@ -801,7 +790,6 @@ e_meeting_time_selector_new (EMeetingStore *ems) return mts; } - static void e_meeting_time_selector_destroy (GtkObject *object) { @@ -843,7 +831,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) { @@ -857,7 +844,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) { @@ -1002,7 +988,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, @@ -1017,7 +1002,6 @@ e_meeting_time_selector_hadjustment_changed (GtkAdjustment *adjustment, } } - static void e_meeting_time_selector_vadjustment_changed (GtkAdjustment *adjustment, EMeetingTimeSelector *mts) @@ -1057,7 +1041,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, @@ -1127,7 +1110,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) @@ -1150,7 +1132,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, @@ -1189,7 +1170,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) @@ -1286,7 +1266,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) @@ -1392,7 +1371,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 * @@ -1412,7 +1390,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 * @@ -1434,7 +1411,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) @@ -1444,7 +1420,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, @@ -1483,7 +1458,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) @@ -1493,7 +1467,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, @@ -1520,7 +1493,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) @@ -1531,7 +1503,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) @@ -1539,7 +1510,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) @@ -1547,7 +1517,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 @@ -1672,7 +1641,6 @@ e_meeting_time_selector_autopick (EMeetingTimeSelector *mts, } } - static void e_meeting_time_selector_calculate_time_difference (EMeetingTime*start, EMeetingTime*end, @@ -1693,7 +1661,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 @@ -1770,7 +1737,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 @@ -1855,7 +1821,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 @@ -1887,7 +1852,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 * @@ -1942,7 +1906,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) @@ -1956,7 +1919,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) @@ -1995,7 +1957,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, @@ -2008,7 +1969,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, @@ -2024,7 +1984,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 @@ -2060,7 +2019,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 @@ -2170,7 +2128,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 @@ -2181,7 +2138,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 @@ -2228,7 +2184,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 @@ -2278,7 +2233,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 @@ -2302,7 +2256,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, @@ -2343,7 +2296,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. @@ -2473,7 +2425,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; @@ -2496,7 +2447,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. */ @@ -2649,7 +2599,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) @@ -2660,7 +2609,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) @@ -2673,7 +2621,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) @@ -2692,7 +2639,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 @@ -2732,7 +2678,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 @@ -2747,7 +2692,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. */ @@ -2803,7 +2747,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 @@ -2820,7 +2763,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. @@ -2846,7 +2788,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. */ @@ -2916,7 +2857,6 @@ row_deleted_cb (GtkTreeModel *model, GtkTreePath *path, gpointer data) gtk_widget_queue_draw (mts->display_main); } - #define REFRESH_PAUSE 5 static gboolean |