[gnome-photos/wip/rishi/base-item-g_auto] base-item: Rename variables for clarity and consistency
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/base-item-g_auto] base-item: Rename variables for clarity and consistency
- Date: Wed, 7 Apr 2021 21:47:06 +0000 (UTC)
commit 200f3a2a97c863938d57cdadfeffdb7b9e85f1a9
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Apr 7 23:44:54 2021 +0200
base-item: Rename variables for clarity and consistency
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/214
src/photos-base-item.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 124c5f39..3b20bc2e 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -403,17 +403,17 @@ photos_base_item_check_effects_and_update_info (PhotosBaseItem *self)
if (priv->favorite)
{
- g_autoptr (GIcon) pix = NULL;
+ g_autoptr (GIcon) emblem_icon = NULL;
- pix = photos_base_item_create_symbolic_emblem ("starred", scale);
- emblem_icons = g_list_prepend (emblem_icons, g_object_ref (pix));
+ emblem_icon = photos_base_item_create_symbolic_emblem ("starred", scale);
+ emblem_icons = g_list_prepend (emblem_icons, g_object_ref (emblem_icon));
}
if (emblem_icons != NULL)
{
g_autoptr (GIcon) emblemed_icon = NULL;
GList *l;
- g_autoptr (GtkIconInfo) icon_info = NULL;
+ g_autoptr (GtkIconInfo) emblemed_icon_info = NULL;
GtkIconTheme *theme;
gint height;
gint size;
@@ -436,18 +436,18 @@ photos_base_item_check_effects_and_update_info (PhotosBaseItem *self)
height = gdk_pixbuf_get_height (priv->original_icon);
size = (width > height) ? width : height;
- icon_info = gtk_icon_theme_lookup_by_gicon (theme, emblemed_icon, size, GTK_ICON_LOOKUP_FORCE_SIZE);
+ emblemed_icon_info = gtk_icon_theme_lookup_by_gicon (theme, emblemed_icon, size,
GTK_ICON_LOOKUP_FORCE_SIZE);
- if (icon_info != NULL)
+ if (emblemed_icon_info != NULL)
{
g_autoptr (GError) error = NULL;
- g_autoptr (GdkPixbuf) tmp = NULL;
+ g_autoptr (GdkPixbuf) emblemed_icon_pixbuf = NULL;
- tmp = gtk_icon_info_load_icon (icon_info, &error);
+ emblemed_icon_pixbuf = gtk_icon_info_load_icon (emblemed_icon_info, &error);
if (error != NULL)
g_warning ("Unable to render the emblem: %s", error->message);
else
- g_set_object (&emblemed_pixbuf, tmp);
+ g_set_object (&emblemed_pixbuf, emblemed_icon_pixbuf);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]