aboutsummaryrefslogtreecommitdiff
path: root/tests/planner-mock.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/planner-mock.c')
-rw-r--r--tests/planner-mock.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/planner-mock.c b/tests/planner-mock.c
index e67ad7e..df5413e 100644
--- a/tests/planner-mock.c
+++ b/tests/planner-mock.c
@@ -39,7 +39,7 @@ G_DEFINE_TYPE (IndicatorDatetimePlannerMock,
static void
my_get_appointments (IndicatorDatetimePlanner * planner,
GDateTime * begin_datetime,
- GDateTime * end_datetime G_GNUC_UNUSED,
+ GDateTime * /*end_datetime*/,
GAsyncReadyCallback callback,
gpointer user_data)
{
@@ -88,34 +88,34 @@ my_get_appointments (IndicatorDatetimePlanner * planner,
}
static GSList *
-my_get_appointments_finish (IndicatorDatetimePlanner * self G_GNUC_UNUSED,
- GAsyncResult * res,
- GError ** error)
+my_get_appointments_finish (IndicatorDatetimePlanner* /*self*/,
+ GAsyncResult* res,
+ GError** error)
{
- return g_task_propagate_pointer (G_TASK(res), error);
+ return g_task_propagate_pointer(G_TASK(res), error);
}
static gboolean
-my_is_configured (IndicatorDatetimePlanner * planner)
+my_is_configured(IndicatorDatetimePlanner* planner)
{
IndicatorDatetimePlannerMock * self;
- self = INDICATOR_DATETIME_PLANNER_MOCK (planner);
+ self = INDICATOR_DATETIME_PLANNER_MOCK(planner);
return self->priv->is_configured;
}
static void
-my_activate (IndicatorDatetimePlanner * self G_GNUC_UNUSED)
+my_activate(IndicatorDatetimePlanner* /*self*/)
{
- g_message ("%s %s", G_STRLOC, G_STRFUNC);
+ g_message("%s %s", G_STRLOC, G_STRFUNC);
}
static void
-my_activate_time (IndicatorDatetimePlanner * self G_GNUC_UNUSED,
- GDateTime * activate_time)
+my_activate_time(IndicatorDatetimePlanner* /*self*/,
+ GDateTime* activate_time)
{
- gchar * str = g_date_time_format (activate_time, "%F %T");
- g_message ("%s %s: %s", G_STRLOC, G_STRFUNC, str);
- g_free (str);
+ gchar * str = g_date_time_format(activate_time, "%F %T");
+ g_message("%s %s: %s", G_STRLOC, G_STRFUNC, str);
+ g_free(str);
}
/***
@@ -123,9 +123,9 @@ my_activate_time (IndicatorDatetimePlanner * self G_GNUC_UNUSED,
***/
static void
-my_dispose (GObject * o)
+my_dispose(GObject * o)
{
- G_OBJECT_CLASS (indicator_datetime_planner_mock_parent_class)->dispose (o);
+ G_OBJECT_CLASS(indicator_datetime_planner_mock_parent_class)->dispose(o);
}
/***
@@ -133,7 +133,7 @@ my_dispose (GObject * o)
***/
static void
-indicator_datetime_planner_mock_class_init (IndicatorDatetimePlannerMockClass * klass)
+indicator_datetime_planner_mock_class_init(IndicatorDatetimePlannerMockClass* klass)
{
GObjectClass * object_class;
IndicatorDatetimePlannerClass * planner_class;