utils: Remove more unused functions
This commit is contained in:
@@ -646,10 +646,13 @@ gcal_search_popover_class_init (GcalSearchPopoverClass *klass)
|
|||||||
* Emitted when an event is selected from the list.
|
* Emitted when an event is selected from the list.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
signals[EVENT_ACTIVATED] = g_signal_new ("event-activated", GCAL_TYPE_SEARCH_POPOVER, G_SIGNAL_RUN_LAST,
|
signals[EVENT_ACTIVATED] = g_signal_new ("event-activated",
|
||||||
|
GCAL_TYPE_SEARCH_POPOVER,
|
||||||
|
G_SIGNAL_RUN_LAST,
|
||||||
0,
|
0,
|
||||||
NULL, NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
G_TYPE_NONE, 1, ICAL_TIME_TYPE);
|
G_TYPE_NONE, 1,
|
||||||
|
G_TYPE_DATE_TIME);
|
||||||
|
|
||||||
/* properties */
|
/* properties */
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -100,22 +100,6 @@ month_item[12] =
|
|||||||
|
|
||||||
#define SCROLL_HARDNESS 10.0
|
#define SCROLL_HARDNESS 10.0
|
||||||
|
|
||||||
G_DEFINE_BOXED_TYPE (icaltimetype, icaltime, gcal_dup_icaltime, g_free)
|
|
||||||
|
|
||||||
/**
|
|
||||||
* gcal_dup_icaltime:
|
|
||||||
* @date: an #icaltimetype
|
|
||||||
*
|
|
||||||
* Creates an exact copy of @date.
|
|
||||||
*
|
|
||||||
* Returns: (transfer full): an #icaltimetype
|
|
||||||
*/
|
|
||||||
icaltimetype*
|
|
||||||
gcal_dup_icaltime (const icaltimetype *date)
|
|
||||||
{
|
|
||||||
return g_memdup (date, sizeof (icaltimetype));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gcal_get_weekday:
|
* gcal_get_weekday:
|
||||||
* @i: the weekday index
|
* @i: the weekday index
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
#include <libgweather/gweather.h>
|
#include <libgweather/gweather.h>
|
||||||
#include <libical/icaltime.h>
|
#include <libical/icaltime.h>
|
||||||
|
|
||||||
#define ICAL_TIME_TYPE (icaltime_get_type ())
|
|
||||||
|
|
||||||
#define ALIGNED(x) (round (x) + 0.5)
|
#define ALIGNED(x) (round (x) + 0.5)
|
||||||
#define MINUTES_PER_DAY 1440
|
#define MINUTES_PER_DAY 1440
|
||||||
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
|
#define MAX_MINUTES (7 * MINUTES_PER_DAY)
|
||||||
@@ -42,10 +40,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC (ESource, g_object_unref)
|
|||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponent, g_object_unref)
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (ECalComponent, g_object_unref)
|
||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GWeatherLocation, gweather_location_unref)
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GWeatherLocation, gweather_location_unref)
|
||||||
|
|
||||||
GType icaltime_get_type (void) G_GNUC_CONST;
|
|
||||||
|
|
||||||
icaltimetype* gcal_dup_icaltime (const icaltimetype *date);
|
|
||||||
|
|
||||||
gchar* gcal_get_weekday (gint i);
|
gchar* gcal_get_weekday (gint i);
|
||||||
|
|
||||||
gchar* gcal_get_month_name (gint i);
|
gchar* gcal_get_month_name (gint i);
|
||||||
|
|||||||
Reference in New Issue
Block a user