build: removed unused code from gcal-utils
Removed enums and one function
This commit is contained in:
@@ -5,7 +5,6 @@ TODO
|
|||||||
- Rework internal GcalWindow working
|
- Rework internal GcalWindow working
|
||||||
- Clean GcalWindow compilation, no warnings
|
- Clean GcalWindow compilation, no warnings
|
||||||
|
|
||||||
- Clean gcal-enums for removing toolbar related enums
|
|
||||||
- Add scroll_to_unit in day-view and week-view. Meaning, scroll to the actual
|
- Add scroll_to_unit in day-view and week-view. Meaning, scroll to the actual
|
||||||
hour.
|
hour.
|
||||||
- Add disable/enable of views
|
- Add disable/enable of views
|
||||||
|
|||||||
@@ -279,16 +279,6 @@ gcal_compare_event_widget_by_date (gconstpointer a,
|
|||||||
return icaltime_compare (*a_date, *b_date);
|
return icaltime_compare (*a_date, *b_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
|
||||||
get_icon_margin (void)
|
|
||||||
{
|
|
||||||
gint toolbar_size, menu_size;
|
|
||||||
|
|
||||||
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &menu_size, NULL);
|
|
||||||
gtk_icon_size_lookup (GTK_ICON_SIZE_LARGE_TOOLBAR, &toolbar_size, NULL);
|
|
||||||
return (gint) floor ((toolbar_size - menu_size) / 2.0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Function to do a last minute fixup of the AM/PM stuff if the locale
|
/* Function to do a last minute fixup of the AM/PM stuff if the locale
|
||||||
* and gettext haven't done it right. Most English speaking countries
|
* and gettext haven't done it right. Most English speaking countries
|
||||||
* except the USA use the 24 hour clock (UK, Australia etc). However
|
* except the USA use the 24 hour clock (UK, Australia etc). However
|
||||||
|
|||||||
@@ -34,18 +34,6 @@ typedef enum
|
|||||||
GCAL_WINDOW_VIEW_LIST,
|
GCAL_WINDOW_VIEW_LIST,
|
||||||
} GcalWindowViewType;
|
} GcalWindowViewType;
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
GCAL_TOOLBAR_OVERVIEW = 0,
|
|
||||||
GCAL_TOOLBAR_VIEW_EVENT
|
|
||||||
} GcalToolbarMode;
|
|
||||||
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
GCAL_EDIT_MODE = 0,
|
|
||||||
GCAL_VIEW_MODE,
|
|
||||||
} GcalEditableMode;
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
EVENT_SUMMARY = 0,
|
EVENT_SUMMARY = 0,
|
||||||
@@ -84,8 +72,6 @@ GdkPixbuf* gcal_get_pixbuf_from_color (GdkColor
|
|||||||
gint gcal_compare_event_widget_by_date (gconstpointer a,
|
gint gcal_compare_event_widget_by_date (gconstpointer a,
|
||||||
gconstpointer b);
|
gconstpointer b);
|
||||||
|
|
||||||
gint get_icon_margin (void);
|
|
||||||
|
|
||||||
/* code brought from evolution */
|
/* code brought from evolution */
|
||||||
gsize e_strftime_fix_am_pm (gchar *str,
|
gsize e_strftime_fix_am_pm (gchar *str,
|
||||||
gsize max,
|
gsize max,
|
||||||
|
|||||||
Reference in New Issue
Block a user