Commit 97e95379 authored by Zander Brown's avatar Zander Brown 👍 Committed by Guido Gunther

treewide: Use two empty lines between functions

We use two empty lines between functions without gtk-doc comments.
parent d6b76bba
......@@ -208,6 +208,7 @@ draw_cb (PhoshActivity *self, cairo_t *cairo, GtkDrawingArea *area)
return FALSE;
}
static void
phosh_activity_constructed (GObject *object)
{
......@@ -276,12 +277,14 @@ phosh_activity_finalize (GObject *object)
G_OBJECT_CLASS (phosh_activity_parent_class)->finalize (object);
}
static GtkSizeRequestMode
phosh_activity_get_request_mode (GtkWidget *widgte)
{
return GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT;
}
static void
phosh_activity_get_preferred_height (GtkWidget *widget,
int *min,
......@@ -308,6 +311,7 @@ phosh_activity_get_preferred_height (GtkWidget *widget,
*nat = smallest;
}
static void
phosh_activity_get_preferred_width_for_height (GtkWidget *widget,
int height,
......@@ -341,6 +345,7 @@ phosh_activity_get_preferred_width_for_height (GtkWidget *widget,
*nat = size;
}
static void
phosh_activity_get_preferred_height_for_width (GtkWidget *widget,
int width,
......@@ -466,6 +471,7 @@ phosh_activity_get_app_id (PhoshActivity *self)
return priv->app_id;
}
void
phosh_activity_set_title (PhoshActivity *self, const char *title)
{
......@@ -483,6 +489,7 @@ phosh_activity_set_title (PhoshActivity *self, const char *title)
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_TITLE]);
}
const char *
phosh_activity_get_title (PhoshActivity *self)
{
......@@ -494,6 +501,7 @@ phosh_activity_get_title (PhoshActivity *self)
return priv->title;
}
void
phosh_activity_set_thumbnail (PhoshActivity *self, PhoshThumbnail *thumbnail)
{
......
......@@ -72,6 +72,7 @@ phosh_app_grid_button_set_property (GObject *object,
}
}
static void
phosh_app_grid_button_get_property (GObject *object,
guint property_id,
......@@ -96,6 +97,7 @@ phosh_app_grid_button_get_property (GObject *object,
}
}
static void
phosh_app_grid_button_dispose (GObject *object)
{
......@@ -107,6 +109,7 @@ phosh_app_grid_button_dispose (GObject *object)
G_OBJECT_CLASS (phosh_app_grid_button_parent_class)->dispose (object);
}
static void
phosh_app_grid_button_finalize (GObject *object)
{
......@@ -280,6 +283,7 @@ phosh_app_grid_button_class_init (PhoshAppGridButtonClass *klass)
gtk_widget_class_set_css_name (widget_class, "phosh-app-grid-button");
}
static void
action_activated (GSimpleAction *action,
GVariant *parameter,
......
......@@ -74,6 +74,7 @@ static const gchar *(*desktop_attr[]) (GDesktopAppInfo *info) = {
g_desktop_app_info_get_categories,
};
static gboolean
search_apps (gpointer item, gpointer data)
{
......@@ -235,6 +236,7 @@ phosh_app_grid_finalize (GObject *object)
G_OBJECT_CLASS (phosh_app_grid_parent_class)->finalize (object);
}
static gboolean
phosh_app_grid_key_press_event (GtkWidget *widget,
GdkEventKey *event)
......@@ -246,6 +248,7 @@ phosh_app_grid_key_press_event (GtkWidget *widget,
(GdkEvent *) event);
}
static void
do_search (PhoshAppGrid *self)
{
......@@ -267,6 +270,7 @@ do_search (PhoshAppGrid *self)
gtk_filter_list_model_refilter (priv->model);
}
static void
search_changed (GtkSearchEntry *entry,
PhoshAppGrid *self)
......@@ -297,6 +301,7 @@ search_preedit_changed (GtkSearchEntry *entry,
do_search (self);
}
static void
search_activated (GtkSearchEntry *entry,
PhoshAppGrid *self)
......@@ -327,6 +332,7 @@ search_activated (GtkSearchEntry *entry,
}
}
static gboolean
search_lost_focus (GtkWidget *widget,
GdkEvent *event,
......@@ -340,6 +346,7 @@ search_lost_focus (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}
static gboolean
search_gained_focus (GtkWidget *widget,
GdkEvent *event,
......@@ -355,6 +362,7 @@ search_gained_focus (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}
static void
phosh_app_grid_class_init (PhoshAppGridClass *klass)
{
......@@ -388,6 +396,7 @@ phosh_app_grid_class_init (PhoshAppGridClass *klass)
gtk_widget_class_set_css_name (widget_class, "phosh-app-grid");
}
void
phosh_app_grid_reset (PhoshAppGrid *self)
{
......@@ -405,6 +414,7 @@ phosh_app_grid_reset (PhoshAppGrid *self)
g_clear_pointer (&priv->search_string, g_free);
}
GtkWidget *
phosh_app_grid_new (void)
{
......
......@@ -38,6 +38,7 @@ G_DEFINE_TYPE_WITH_CODE (PhoshAppListModel, phosh_app_list_model, G_TYPE_OBJECT,
G_ADD_PRIVATE (PhoshAppListModel)
G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL, list_iface_init))
static void
phosh_app_list_model_finalize (GObject *object)
{
......@@ -51,6 +52,7 @@ phosh_app_list_model_finalize (GObject *object)
G_OBJECT_CLASS (phosh_app_list_model_parent_class)->finalize (object);
}
static void
phosh_app_list_model_class_init (PhoshAppListModelClass *klass)
{
......@@ -59,12 +61,14 @@ phosh_app_list_model_class_init (PhoshAppListModelClass *klass)
gobject_class->finalize = phosh_app_list_model_finalize;
}
static GType
list_get_item_type (GListModel *list)
{
return G_TYPE_APP_INFO;
}
static gpointer
list_get_item (GListModel *list, guint position)
{
......@@ -96,6 +100,7 @@ list_get_item (GListModel *list, guint position)
}
static unsigned int
list_get_n_items (GListModel *list)
{
......@@ -105,6 +110,7 @@ list_get_n_items (GListModel *list)
return g_sequence_get_length (priv->items);
}
static void
list_iface_init (GListModelInterface *iface)
{
......@@ -113,6 +119,7 @@ list_iface_init (GListModelInterface *iface)
iface->get_n_items = list_get_n_items;
}
static gboolean
items_changed (gpointer data)
{
......@@ -150,6 +157,7 @@ items_changed (gpointer data)
return G_SOURCE_REMOVE;
}
static void
on_monitor_changed_cb (GAppInfoMonitor *monitor,
gpointer data)
......@@ -164,6 +172,7 @@ on_monitor_changed_cb (GAppInfoMonitor *monitor,
g_source_set_name_by_id (priv->debounce, "debounce app changes");
}
static void
phosh_app_list_model_init (PhoshAppListModel *self)
{
......@@ -180,6 +189,7 @@ phosh_app_list_model_init (PhoshAppListModel *self)
on_monitor_changed_cb (priv->monitor, self);
}
/**
* phosh_app_list_model_get_default:
*
......
......@@ -85,6 +85,7 @@ phosh_arrow_draw (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}
static void
phosh_arrow_get_property (GObject *object,
guint prop_id,
......@@ -102,6 +103,7 @@ phosh_arrow_get_property (GObject *object,
}
}
static void
phosh_arrow_set_property (GObject *object,
guint prop_id,
......@@ -119,6 +121,7 @@ phosh_arrow_set_property (GObject *object,
}
}
static void
phosh_arrow_class_init (PhoshArrowClass *klass)
{
......@@ -139,6 +142,7 @@ phosh_arrow_class_init (PhoshArrowClass *klass)
g_object_class_install_properties(object_class, N_PROPS, properties);
}
static void
phosh_arrow_init (PhoshArrow *self)
{
......@@ -149,12 +153,14 @@ phosh_arrow_init (PhoshArrow *self)
NULL);
}
PhoshArrow *
phosh_arrow_new (void)
{
return g_object_new (PHOSH_TYPE_ARROW, NULL);
}
double
phosh_arrow_get_progress (PhoshArrow *self)
{
......@@ -163,6 +169,7 @@ phosh_arrow_get_progress (PhoshArrow *self)
return self->progress;
}
void
phosh_arrow_set_progress (PhoshArrow *self,
double progress)
......
......@@ -31,6 +31,7 @@ struct _PhoshBackgroundManager {
GHashTable *backgrounds;
};
G_DEFINE_TYPE (PhoshBackgroundManager, phosh_background_manager, G_TYPE_OBJECT);
......@@ -81,6 +82,7 @@ on_monitor_configured (PhoshBackgroundManager *self,
gtk_widget_show (GTK_WIDGET (background));
}
static void
on_monitor_added (PhoshBackgroundManager *self,
PhoshMonitor *monitor,
......
......@@ -214,6 +214,7 @@ pb_scale_to_fit (GdkPixbuf *src, int width, int height, GdkRGBA *color)
return bg;
}
static GdkPixbuf *
image_background (GdkPixbuf *image,
guint width,
......@@ -273,6 +274,7 @@ background_update (PhoshBackground *self, GdkPixbuf *pixbuf, GDesktopBackgroundS
g_signal_emit(self, signals[BACKGROUND_LOADED], 0);
}
/**
* background_fallback:
* @self: A #PhoshBackground
......@@ -547,6 +549,7 @@ phosh_background_set_primary (PhoshBackground *self, gboolean primary)
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_PRIMARY]);
}
void
phosh_background_set_scale (PhoshBackground *self, guint scale)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment