[gtk: 33/40] indentation: fix various alignment issues
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 33/40] indentation: fix various alignment issues
- Date: Thu, 30 Jan 2020 17:33:55 +0000 (UTC)
commit 5f8c2b52c6595da2505d8a432765e8aa14a85196
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 30 12:27:15 2020 +0100
indentation: fix various alignment issues
Most of these stem from the GtkIconInfo -> GtkIcon rename
demos/icon-browser/iconbrowserwin.c | 2 +-
gdk/gdkcairo.c | 4 +-
gdk/gdkcairo.h | 4 +-
gtk/gtkapplication-quartz-menu.c | 2 +-
gtk/gtkbuiltinicon.c | 2 +-
gtk/gtkbuiltiniconprivate.h | 6 +--
gtk/gtkicontheme.c | 89 +++++++++++++++++++------------------
7 files changed, 56 insertions(+), 53 deletions(-)
---
diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c
index a0e61f34a2..793f7cf199 100644
--- a/demos/icon-browser/iconbrowserwin.c
+++ b/demos/icon-browser/iconbrowserwin.c
@@ -360,7 +360,7 @@ get_image_paintable (GtkImage *image)
size = gtk_image_get_pixel_size (image);
icon_theme = gtk_icon_theme_get_for_display (gtk_widget_get_display (GTK_WIDGET (image)));
icon = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, 1,
- GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_GENERIC_FALLBACK);
+ GTK_ICON_LOOKUP_FORCE_SIZE | GTK_ICON_LOOKUP_GENERIC_FALLBACK);
if (icon == NULL)
return NULL;
return GDK_PAINTABLE (icon);
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 2b2996f8b9..68d46aa4ae 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -470,9 +470,9 @@ gdk_cairo_region_from_clip (cairo_t *cr)
* always done on the cpu.
*/
void
-gdk_cairo_image_surface_recolor (cairo_surface_t *image_surface,
+gdk_cairo_image_surface_recolor (cairo_surface_t *image_surface,
const graphene_matrix_t *color_matrix,
- const graphene_vec4_t *color_offset)
+ const graphene_vec4_t *color_offset)
{
graphene_vec4_t pixel;
guint32* pixel_data;
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h
index 52a6abdef3..934b5d17ed 100644
--- a/gdk/gdkcairo.h
+++ b/gdk/gdkcairo.h
@@ -74,9 +74,9 @@ void gdk_cairo_surface_upload_to_gl (cairo_surface_t *surface,
GdkGLContext *context);
GDK_AVAILABLE_IN_ALL
-void gdk_cairo_image_surface_recolor (cairo_surface_t *image_surface,
+void gdk_cairo_image_surface_recolor (cairo_surface_t *image_surface,
const graphene_matrix_t *color_matrix,
- const graphene_vec4_t *color_offset);
+ const graphene_vec4_t *color_offset);
G_END_DECLS
diff --git a/gtk/gtkapplication-quartz-menu.c b/gtk/gtkapplication-quartz-menu.c
index 1ed137c41c..751b90bc18 100644
--- a/gtk/gtkapplication-quartz-menu.c
+++ b/gtk/gtkapplication-quartz-menu.c
@@ -306,7 +306,7 @@ icon_loaded (GObject *object,
{
cancellable = g_cancellable_new ();
gtk_icon_load_symbolic_async (icon, &foreground, &success, &warning, &error,
- cancellable, icon_loaded, self);
+ cancellable, icon_loaded, self);
g_object_unref (icon);
return;
}
diff --git a/gtk/gtkbuiltinicon.c b/gtk/gtkbuiltinicon.c
index 26f81a0838..f6a819159c 100644
--- a/gtk/gtkbuiltinicon.c
+++ b/gtk/gtkbuiltinicon.c
@@ -117,7 +117,7 @@ gtk_builtin_icon_new (const char *css_name)
void
gtk_builtin_icon_set_css_name (GtkBuiltinIcon *self,
- const char *css_name)
+ const char *css_name)
{
gtk_css_node_set_name (gtk_widget_get_css_node (GTK_WIDGET (self)),
g_quark_from_string (css_name));
diff --git a/gtk/gtkbuiltiniconprivate.h b/gtk/gtkbuiltiniconprivate.h
index ba8accd2a9..46fa8df15f 100644
--- a/gtk/gtkbuiltiniconprivate.h
+++ b/gtk/gtkbuiltiniconprivate.h
@@ -29,9 +29,9 @@ G_BEGIN_DECLS
G_DECLARE_FINAL_TYPE (GtkBuiltinIcon, gtk_builtin_icon, GTK, BUILTIN_ICON, GtkWidget)
-GtkWidget * gtk_builtin_icon_new (const char *css_name);
-void gtk_builtin_icon_set_css_name (GtkBuiltinIcon *self,
- const char *css_name);
+GtkWidget * gtk_builtin_icon_new (const char *css_name);
+void gtk_builtin_icon_set_css_name (GtkBuiltinIcon *self,
+ const char *css_name);
G_END_DECLS
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index d558a5fc89..104a95e332 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -557,7 +557,8 @@ _icon_cache_should_lru_cache (GtkIcon *icon)
/* This returns the old lru element because we can't unref it with
* the lock held */
static GtkIcon *
-_icon_cache_add_to_lru_cache (GtkIconTheme *theme, GtkIcon *icon)
+_icon_cache_add_to_lru_cache (GtkIconTheme *theme,
+ GtkIcon *icon)
{
GtkIcon *old_icon = NULL;
@@ -573,7 +574,8 @@ _icon_cache_add_to_lru_cache (GtkIconTheme *theme, GtkIcon *icon)
}
static GtkIcon *
-icon_cache_lookup (GtkIconTheme *theme, IconKey *key)
+icon_cache_lookup (GtkIconTheme *theme,
+ IconKey *key)
{
GtkIcon *old_icon = NULL;
GtkIcon *icon;
@@ -640,7 +642,8 @@ icon_cache_mark_used_if_cached (GtkIcon *icon)
}
static void
-icon_cache_add (GtkIconTheme *theme, GtkIcon *icon)
+icon_cache_add (GtkIconTheme *theme,
+ GtkIcon *icon)
{
GtkIcon *old_icon = NULL;
@@ -892,8 +895,8 @@ update_current_theme__mainthread (GtkIconTheme *self)
/* Callback when the icon theme GtkSetting changes
*/
static void
-theme_changed__mainthread_unlocked (GtkSettings *settings,
- GParamSpec *pspec,
+theme_changed__mainthread_unlocked (GtkSettings *settings,
+ GParamSpec *pspec,
GtkIconThemeRef *ref)
{
GtkIconTheme *self = gtk_icon_theme_ref_aquire (ref);
@@ -1762,7 +1765,7 @@ load_themes (GtkIconTheme *self)
static gboolean
ensure_valid_themes (GtkIconTheme *self,
- gboolean non_blocking)
+ gboolean non_blocking)
{
GTimeVal tv;
gboolean was_valid = self->themes_valid;
@@ -1853,13 +1856,13 @@ icon_uri_is_symbolic (const gchar *icon_name,
}
static GtkIcon *
-real_choose_icon (GtkIconTheme *self,
- const gchar *icon_names[],
- gint size,
- gint scale,
- GtkIconLookupFlags flags,
- gboolean non_blocking,
- gboolean *would_block)
+real_choose_icon (GtkIconTheme *self,
+ const gchar *icon_names[],
+ gint size,
+ gint scale,
+ GtkIconLookupFlags flags,
+ gboolean non_blocking,
+ gboolean *would_block)
{
GList *l;
GtkIcon *icon = NULL;
@@ -2072,13 +2075,13 @@ icon_name_list_add_icon (GPtrArray *icons,
}
static GtkIcon *
-choose_icon (GtkIconTheme *self,
- const gchar *icon_names[],
- gint size,
- gint scale,
- GtkIconLookupFlags flags,
- gboolean non_blocking,
- gboolean *would_block)
+choose_icon (GtkIconTheme *self,
+ const gchar *icon_names[],
+ gint size,
+ gint scale,
+ GtkIconLookupFlags flags,
+ gboolean non_blocking,
+ gboolean *would_block)
{
gboolean has_regular = FALSE, has_symbolic = FALSE;
GtkIcon *icon;
@@ -2119,11 +2122,11 @@ choose_icon (GtkIconTheme *self,
g_ptr_array_add (new_names, NULL);
icon = real_choose_icon (self,
- (const gchar **) new_names->pdata,
- size,
- scale,
- flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR |
GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
- non_blocking, would_block);
+ (const gchar **) new_names->pdata,
+ size,
+ scale,
+ flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR | GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
+ non_blocking, would_block);
g_ptr_array_free (new_names, TRUE);
}
@@ -2145,11 +2148,11 @@ choose_icon (GtkIconTheme *self,
g_ptr_array_add (new_names, NULL);
icon = real_choose_icon (self,
- (const gchar **) new_names->pdata,
- size,
- scale,
- flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR |
GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
- non_blocking, would_block);
+ (const gchar **) new_names->pdata,
+ size,
+ scale,
+ flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR | GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
+ non_blocking, would_block);
g_ptr_array_free (new_names, TRUE);
}
@@ -2163,22 +2166,22 @@ choose_icon (GtkIconTheme *self,
g_ptr_array_add (new_names, NULL);
icon = real_choose_icon (self,
- (const gchar **) new_names->pdata,
- size,
- scale,
- flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR |
GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
- non_blocking, would_block);
+ (const gchar **) new_names->pdata,
+ size,
+ scale,
+ flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR | GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
+ non_blocking, would_block);
g_ptr_array_free (new_names, TRUE);
}
else
{
icon = real_choose_icon (self,
- icon_names,
- size,
- scale,
- flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR |
GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
- non_blocking, would_block);
+ icon_names,
+ size,
+ scale,
+ flags & ~(GTK_ICON_LOOKUP_FORCE_REGULAR | GTK_ICON_LOOKUP_FORCE_SYMBOLIC),
+ non_blocking, would_block);
}
return icon;
@@ -3191,7 +3194,7 @@ theme_lookup_icon (IconTheme *theme,
if (min_dir->cache)
{
icon->cache_pixbuf = gtk_icon_cache_get_icon (min_dir->cache, icon_name,
- min_dir->subdir_index);
+ min_dir->subdir_index);
}
return icon;
@@ -4178,8 +4181,8 @@ icon_paintable_init (GdkPaintableInterface *iface)
static GtkIcon *
gtk_icon_new_for_file (GFile *file,
- gint size,
- gint scale)
+ gint size,
+ gint scale)
{
GtkIcon *icon;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]