[gnome-photos/wip/rishi/online-miners: 3/17] dlna-renderers-dialog: Style fixes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/online-miners: 3/17] dlna-renderers-dialog: Style fixes
- Date: Wed, 7 Apr 2021 23:48:29 +0000 (UTC)
commit 704a454ec841ebd3d14bcc236be77eb44fad83ee
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Apr 8 00:11:16 2021 +0200
dlna-renderers-dialog: Style fixes
https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/215
src/photos-dlna-renderers-dialog.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/photos-dlna-renderers-dialog.c b/src/photos-dlna-renderers-dialog.c
index dc7a4596..c690f720 100644
--- a/src/photos-dlna-renderers-dialog.c
+++ b/src/photos-dlna-renderers-dialog.c
@@ -145,8 +145,6 @@ photos_dlna_renderers_dialog_set_icon_cb (GObject *source_object,
out:
g_clear_object (&pixbuf);
-
- /* release the ref we took before the async call */
g_object_unref (image);
}
@@ -177,14 +175,13 @@ photos_dlna_renderers_dialog_add_renderer (PhotosDlnaRenderersDialog *self, Phot
icon = g_themed_icon_new_with_default_fallbacks ("video-display-symbolic");
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
- g_object_ref (image); /* keep a ref for the following async call and release it in the callback */
photos_dlna_renderer_get_icon (renderer,
"",
"",
GTK_ICON_SIZE_DIALOG,
NULL,
photos_dlna_renderers_dialog_set_icon_cb,
- image);
+ g_object_ref (image));
gtk_container_add (GTK_CONTAINER (row_grid), image);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]