[gnome-control-center/wip/jsparber/background: 9/12] background: fix code style and spaces
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/jsparber/background: 9/12] background: fix code style and spaces
- Date: Wed, 7 Feb 2018 11:40:23 +0000 (UTC)
commit 51e482beac44330758eb993f3cf4aea9ed2d0e65
Author: Julian Sparber <julian sparber net>
Date: Tue Feb 6 23:04:11 2018 +0100
background: fix code style and spaces
https://bugzilla.gnome.org/show_bug.cgi?id=788515<Paste>
panels/background/cc-background-grid-item.c | 11 ++++++-----
panels/background/cc-background-item.c | 8 +++++---
panels/background/cc-background-panel.c | 8 ++++----
panels/background/cc-background-store.c | 20 ++++++++++----------
panels/background/cc-background-xml.h | 22 +++++++++++-----------
5 files changed, 36 insertions(+), 33 deletions(-)
---
diff --git a/panels/background/cc-background-grid-item.c b/panels/background/cc-background-grid-item.c
index 33ea52d..e219ed3 100644
--- a/panels/background/cc-background-grid-item.c
+++ b/panels/background/cc-background-grid-item.c
@@ -46,7 +46,8 @@ G_DEFINE_TYPE (CcBackgroundGridItem, cc_background_grid_item, GTK_TYPE_DRAWING_A
};
static GdkPixbuf *
-load_slideshow_emblem (CcBackgroundGridItem *item, gint scale_factor)
+load_slideshow_emblem (CcBackgroundGridItem *item,
+ gint scale_factor)
{
GdkPixbuf *slideshow_emblem;
GIcon *icon = NULL;
@@ -113,9 +114,9 @@ add_slideshow_emblem (CcBackgroundGridItem *item,
}
static void
-on_gallery_item_size_allocate (GtkWidget *widget,
+on_gallery_item_size_allocate (GtkWidget *widget,
GdkRectangle *allocation,
- gpointer *pointer)
+ gpointer pointer)
{
CcBackgroundGridItem *item = (CcBackgroundGridItem *) widget;
GdkPixbuf *resized_pixbuf;
@@ -206,7 +207,7 @@ cc_background_grid_item_dispose (GObject *object)
static void
cc_background_grid_item_set_property (GObject *object,
- guint prop_id,
+ guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
@@ -228,7 +229,7 @@ cc_background_grid_item_set_property (GObject *object,
static void
cc_background_grid_item_get_property (GObject *object,
- guint prop_id,
+ guint prop_id,
GValue *value,
GParamSpec *pspec)
{
diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c
index c547cb1..db1d469 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -83,7 +83,9 @@ G_DEFINE_TYPE (CcBackgroundItem, cc_background_item, G_TYPE_OBJECT)
static GdkPixbuf *slideshow_emblem = NULL;
static GdkPixbuf *
-get_emblemed_pixbuf (CcBackgroundItem *item, GdkPixbuf *pixbuf, gint scale_factor)
+get_emblemed_pixbuf (CcBackgroundItem *item,
+ GdkPixbuf *pixbuf,
+ gint scale_factor)
{
int eh;
int ew;
@@ -201,8 +203,8 @@ update_size (CcBackgroundItem *item)
static GdkPixbuf *
render_at_size (GnomeBG *bg,
- gint width,
- gint height)
+ gint width,
+ gint height)
{
GdkPixbuf *pixbuf;
diff --git a/panels/background/cc-background-panel.c b/panels/background/cc-background-panel.c
index 88955cd..0e54f35 100644
--- a/panels/background/cc-background-panel.c
+++ b/panels/background/cc-background-panel.c
@@ -208,7 +208,7 @@ on_preview_draw (GtkWidget *widget,
}
static void
-on_panel_resize (GtkWidget *widget,
+on_panel_resize (GtkWidget *widget,
GdkRectangle *allocation,
gpointer user_data)
{
@@ -226,7 +226,7 @@ on_panel_resize (GtkWidget *widget,
static void
reload_current_bg (CcBackgroundPanel *panel,
- GSettings *settings)
+ GSettings *settings)
{
g_autoptr(CcBackgroundItem) saved = NULL;
CcBackgroundItem *configured;
@@ -390,7 +390,7 @@ on_background_select (GtkFlowBox *box,
static void
on_open_gnome_photos (GtkWidget *widget,
- gpointer user_data)
+ gpointer user_data)
{
g_autoptr(GAppLaunchContext) context = NULL;
g_autoptr(GDesktopAppInfo) appInfo = NULL;
@@ -410,7 +410,7 @@ on_open_gnome_photos (GtkWidget *widget,
static void
on_open_picture_folder (GtkWidget *widget,
- gpointer user_data)
+ gpointer user_data)
{
g_autoptr(GDBusProxy) proxy = NULL;
g_autoptr(GVariant) retval = NULL;
diff --git a/panels/background/cc-background-store.c b/panels/background/cc-background-store.c
index 1d11d89..46c61b6 100644
--- a/panels/background/cc-background-store.c
+++ b/panels/background/cc-background-store.c
@@ -54,19 +54,18 @@ cc_background_store_finalize (GObject *gobject)
G_OBJECT_CLASS (cc_background_store_parent_class)->finalize (gobject);
}
-
static void
item_added (CcBackgroundXml *xml,
CcBackgroundItem *item,
- CcBackgroundStore *self)
+ CcBackgroundStore *self)
{
g_list_store_append (self->model, item);
}
static void
-list_load_cb (GObject *source_object,
- GAsyncResult *res,
- gpointer user_data)
+list_load_cb (GObject *source_object,
+ GAsyncResult *res,
+ gpointer user_data)
{
cc_background_xml_load_list_finish (res);
}
@@ -96,12 +95,13 @@ cc_background_store_init (CcBackgroundStore *self)
}
void
-cc_background_store_bind_flow_box (CcBackgroundStore *self,
- gpointer panel,
- GtkWidget *widget,
- GtkFlowBoxCreateWidgetFunc create_widget_fun) {
+cc_background_store_bind_flow_box (CcBackgroundStore *self,
+ gpointer panel,
+ GtkWidget *widget,
+ GtkFlowBoxCreateWidgetFunc create_widget_fun)
+{
gtk_flow_box_bind_model (GTK_FLOW_BOX (widget),
- G_LIST_MODEL(self->model),
+ G_LIST_MODEL (self->model),
create_widget_fun,
panel,
NULL);
diff --git a/panels/background/cc-background-xml.h b/panels/background/cc-background-xml.h
index bf0687f..ccaada4 100644
--- a/panels/background/cc-background-xml.h
+++ b/panels/background/cc-background-xml.h
@@ -31,17 +31,17 @@ G_DECLARE_FINAL_TYPE (CcBackgroundXml, cc_background_xml, CC, BACKGROUND_XML, GO
CcBackgroundXml *cc_background_xml_new (void);
-void cc_background_xml_save (CcBackgroundItem *item,
- const char *filename);
-
-CcBackgroundItem *cc_background_xml_get_item (const char *filename);
-gboolean cc_background_xml_load_xml (CcBackgroundXml *data,
- const char *filename);
-void cc_background_xml_load_list_async (CcBackgroundXml *data,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-const GHashTable *cc_background_xml_load_list_finish (GAsyncResult *async_result);
+void cc_background_xml_save (CcBackgroundItem *item,
+ const char *filename);
+
+CcBackgroundItem *cc_background_xml_get_item (const char *filename);
+gboolean cc_background_xml_load_xml (CcBackgroundXml *data,
+ const char *filename);
+void cc_background_xml_load_list_async (CcBackgroundXml *data,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+const GHashTable *cc_background_xml_load_list_finish (GAsyncResult *async_result);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]