Whitespace changes

This commit is contained in:
Florian Brosch
2017-12-11 22:13:16 -02:00
committed by Georges Basile Stavracas Neto
parent d51d1ea2cd
commit eceb826e77
14 changed files with 1275 additions and 1370 deletions
-23
View File
@@ -69,7 +69,6 @@ static void timer_source_finalize (GcalTimer *self);
/*< private >*/
static void
timer_func_destroy_notify_wrapper (CbWrapperData *wrapper)
@@ -82,8 +81,6 @@ timer_func_destroy_notify_wrapper (CbWrapperData *wrapper)
g_free (wrapper);
}
static gboolean
timer_func_wrapper (CbWrapperData *wrapper)
{
@@ -95,8 +92,6 @@ timer_func_wrapper (CbWrapperData *wrapper)
return G_SOURCE_CONTINUE;
}
static gboolean
timer_source_dispatch (GcalTimer *self,
GSourceFunc user_callback,
@@ -115,8 +110,6 @@ timer_source_dispatch (GcalTimer *self,
return result;
}
static void
schedule_next (GcalTimer *self)
{
@@ -135,8 +128,6 @@ schedule_next (GcalTimer *self)
g_source_set_ready_time ((GSource*) self, 0);
}
static void
timer_source_finalize (GcalTimer *self)
{
@@ -182,8 +173,6 @@ gcal_timer_new (gint64 default_duration)
return g_steal_pointer (&self);
}
/**
* gcal_timer_set_start:
* @self: The #GcalTimer.
@@ -200,8 +189,6 @@ gcal_timer_start (GcalTimer *self)
schedule_next (self);
}
/**
* gcal_timer_set_reset:
* @self: The #GcalTimer.
@@ -218,8 +205,6 @@ gcal_timer_reset (GcalTimer *self)
schedule_next (self);
}
/**
* gcal_timer_set_stop:
* @self: The #GcalTimer.
@@ -235,8 +220,6 @@ gcal_timer_stop (GcalTimer *self)
g_source_set_ready_time ((GSource*) self, -1);
}
/**
* gcal_timer_is_running
* @self: The #GcalTimer.
@@ -251,8 +234,6 @@ gcal_timer_is_running (GcalTimer *self)
return g_source_get_ready_time ((GSource*) self) >= 0;
}
/**
* gcal_timer_set_duration:
* @self: The #GcalTimer.
@@ -280,8 +261,6 @@ gcal_timer_set_default_duration (GcalTimer *self,
schedule_next (self);
}
/**
* gcal_timer_get_default_duration:
* @self: The #GcalTimer.
@@ -296,7 +275,6 @@ gcal_timer_get_default_duration (GcalTimer *self)
return self->default_duration;
}
/**
* gcal_timer_set_callback:
* @self: The #GcalTimer.
@@ -330,7 +308,6 @@ gcal_timer_set_callback (GcalTimer *self,
(GDestroyNotify) timer_func_destroy_notify_wrapper);
}
/**
* gcal_timer_free:
* @self: The #GcalTimer.
+2 -1
View File
@@ -126,14 +126,15 @@ gsize e_strftime_fix_am_pm (gchar
gsize max,
const gchar *fmt,
const struct tm *tm);
gsize e_utf8_strftime_fix_am_pm (gchar *str,
gsize e_utf8_strftime_fix_am_pm (gchar *str,
gsize max,
const gchar *fmt,
const struct tm *tm);
void fix_popover_menu_icons (GtkPopover *popover);
void get_source_parent_name_color (GcalManager *manager,
ESource *source,
gchar **name,
+10 -27
View File
@@ -21,15 +21,6 @@
#include <string.h>
#include "gcal-weather-info.h"
static void gcal_weather_info_set_date (GcalWeatherInfo *self,
GDate *date);
static void gcal_weather_info_set_temperature (GcalWeatherInfo *self,
const gchar *temperature);
static void gcal_weather_info_set_icon_name (GcalWeatherInfo *self,
const gchar *icon_name);
/* _GcalWeatherInfo:
* @date: (not nullable): The day this information belongs to.
@@ -51,6 +42,15 @@ struct _GcalWeatherInfo {
};
static void gcal_weather_info_set_date (GcalWeatherInfo *self,
GDate *date);
static void gcal_weather_info_set_temperature (GcalWeatherInfo *self,
const gchar *temperature);
static void gcal_weather_info_set_icon_name (GcalWeatherInfo *self,
const gchar *icon_name);
G_DEFINE_TYPE (GcalWeatherInfo, gcal_weather_info, G_TYPE_OBJECT)
enum {
@@ -79,8 +79,6 @@ gcal_weather_info_finalize (GObject *object)
G_OBJECT_CLASS (gcal_weather_info_parent_class)->finalize (object);
}
static void
gcal_weather_info_get_property (GObject *object,
guint property_id,
@@ -107,8 +105,6 @@ gcal_weather_info_get_property (GObject *object,
}
}
static void
gcal_weather_info_set_property (GObject *object,
guint property_id,
@@ -138,8 +134,6 @@ gcal_weather_info_set_property (GObject *object,
}
}
static void
gcal_weather_info_class_init (GcalWeatherInfoClass *klass)
{
@@ -185,8 +179,6 @@ gcal_weather_info_class_init (GcalWeatherInfoClass *klass)
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}
static void
gcal_weather_info_init (GcalWeatherInfo *self)
{
@@ -215,8 +207,6 @@ gcal_weather_info_set_date (GcalWeatherInfo *self,
self->date = *date;
}
/* gcal_weather_info_set_temperature:
* @self: A #GcalWeatherInfo instance.
* @temperature: A weather string.
@@ -238,8 +228,6 @@ gcal_weather_info_set_temperature (GcalWeatherInfo *self,
}
}
/* gcal_weather_info_set_icon_name:
* @self: A #GcalWeatherInfo instance.
* @icon_name: The name of the icon to display.
@@ -262,6 +250,7 @@ gcal_weather_info_set_icon_name (GcalWeatherInfo *self,
}
/* < public > */
/**
@@ -293,8 +282,6 @@ gcal_weather_info_new (GDate *date,
return info;
}
/**
* gcal_weather_info_get_date:
* @self: A #GcalWeatherInfo instance.
@@ -311,8 +298,6 @@ gcal_weather_info_get_date (GcalWeatherInfo *self,
*date = self->date;
}
/**
* gcal_weather_info_get_icon_name:
* @self: A #GcalWeatherInfo instance.
@@ -327,8 +312,6 @@ gcal_weather_info_get_icon_name (GcalWeatherInfo *self)
return self->icon_name;
}
/**
* gcal_weather_info_get_temperature:
* @self: A #GcalWeatherInfo instance.
+897 -954
View File
File diff suppressed because it is too large Load Diff
+7 -9
View File
@@ -48,20 +48,13 @@ GTimeZone* gcal_weather_service_get_time_zone (GcalWeatherService
void gcal_weather_service_set_time_zone (GcalWeatherService *self,
GTimeZone *value);
void gcal_weather_service_run (GcalWeatherService *self,
GWeatherLocation *location);
void gcal_weather_service_stop (GcalWeatherService *self);
guint gcal_weather_service_get_max_days (GcalWeatherService *self);
gint64 gcal_weather_service_get_valid_timespan (GcalWeatherService *self);
guint gcal_weather_service_get_check_interval_new
(GcalWeatherService *self);
guint gcal_weather_service_get_check_interval_new (GcalWeatherService *self);
guint gcal_weather_service_get_check_interval_renew
(GcalWeatherService *self);
guint gcal_weather_service_get_check_interval_renew (GcalWeatherService *self);
GSList* gcal_weather_service_get_weather_infos (GcalWeatherService *self);
@@ -69,6 +62,11 @@ const gchar* gcal_weather_service_get_attribution (GcalWeatherService
void gcal_weather_service_update (GcalWeatherService *self);
void gcal_weather_service_run (GcalWeatherService *self,
GWeatherLocation *location);
void gcal_weather_service_stop (GcalWeatherService *self);
G_END_DECLS
#endif /* GCAL_WEATHER_SERVICE_H */
+5 -5
View File
@@ -226,13 +226,13 @@ static void on_view_action_activated (GSimpleAction *a
GVariant *param,
gpointer user_data);
static void on_menu_button_clicked (GtkMenuButton *menu,
GtkStack *stack);
static void on_toggle_search_bar_activated (GSimpleAction *action,
GVariant *param,
gpointer user_data);
static void on_menu_button_clicked (GtkMenuButton *menu,
GtkStack *stack);
static void on_view_menu_open_sub (GtkModelButton *button,
GtkStack *stack);
@@ -250,8 +250,7 @@ static void on_auto_location_change (GtkSwitch *l
GParamSpec *pspec,
GcalWindow *self);
static gboolean on_weather_location_searchbox_match_selected
(GtkEntryCompletion *sender,
static gboolean on_weather_location_searchbox_match_selected (GtkEntryCompletion *sender,
GtkTreeModel *model,
GtkTreeIter *iter,
GcalWindow *self);
@@ -260,6 +259,7 @@ static void set_model_button_animation (GtkBuilder *b
GtkStack *stack,
const char *id,
gboolean go_back);
static void update_menu_weather_sensitivity (GcalWindow *self);
+1
View File
@@ -143,6 +143,7 @@ static void gcal_view_interface_init (GcalViewInterface *iface);
static void gcal_data_model_subscriber_interface_init (ECalDataModelSubscriberInterface *iface);
static void update_weather (GcalYearView *self);
G_DEFINE_TYPE_WITH_CODE (GcalYearView, gcal_year_view, GTK_TYPE_BOX,
G_IMPLEMENT_INTERFACE (GCAL_TYPE_VIEW, gcal_view_interface_init)
G_IMPLEMENT_INTERFACE (E_TYPE_CAL_DATA_MODEL_SUBSCRIBER,
+2
View File
@@ -33,8 +33,10 @@ G_DECLARE_FINAL_TYPE (GcalYearView, gcal_year_view, GCAL, YEAR_VIEW, GtkBox)
void gcal_year_view_set_first_weekday (GcalYearView *year_view,
gint nr_day);
void gcal_year_view_set_use_24h_format (GcalYearView *year_view,
gboolean use_24h_format);
void gcal_year_view_set_current_date (GcalYearView *year_view,
icaltimetype *current_date);