[gnome-photos] base-item: Style fix
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] base-item: Style fix
- Date: Tue, 5 Apr 2016 09:47:37 +0000 (UTC)
commit f7b3c90f25ca310d5cf0e499416c3d9235212c55
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Apr 5 11:04:23 2016 +0200
base-item: Style fix
src/photos-base-item.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index d649565..bcb1120 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -2053,8 +2053,8 @@ photos_base_item_get_name_with_fallback (PhotosBaseItem *self)
const gchar *name;
g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (self), NULL);
-
priv = self->priv;
+
name = priv->name;
if (name == NULL || name[0] == '\0')
name = priv->name_fallback;
@@ -2118,8 +2118,8 @@ photos_base_item_get_where (PhotosBaseItem *self)
gchar *ret_val;
g_return_val_if_fail (PHOTOS_IS_BASE_ITEM (self), NULL);
-
priv = self->priv;
+
if (priv->collection)
ret_val = g_strconcat ("{ ?urn nie:isPartOf <", priv->id, "> }", NULL);
else
@@ -2565,7 +2565,6 @@ photos_base_item_set_default_app (PhotosBaseItem *self, GAppInfo *default_app)
const gchar *default_app_name;
g_return_if_fail (PHOTOS_IS_BASE_ITEM (self));
-
priv = self->priv;
if (priv->default_app == NULL && default_app == NULL)
@@ -2593,8 +2592,8 @@ photos_base_item_set_default_app_name (PhotosBaseItem *self, const gchar *defaul
PhotosBaseItemPrivate *priv;
g_return_if_fail (PHOTOS_IS_BASE_ITEM (self));
-
priv = self->priv;
+
g_clear_object (&priv->default_app);
g_free (priv->default_app_name);
priv->default_app_name = g_strdup (default_app_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]