[gnome-photos] view-container: Clean up
- From: Pranav Kant <pranavk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] view-container: Clean up
- Date: Tue, 6 Jan 2015 18:28:43 +0000 (UTC)
commit 63ba642f59ca75372b5bd94b2bad16514220d9d7
Author: Pranav Kant <pranavk src gnome org>
Date: Tue Jan 6 17:56:13 2015 +0530
view-container: Clean up
We use g_signal_connect_object only when the object emitting the signal
can out live the user_data. In this case, self->priv->view will not out
live self, hence g_signal_connect_swapped should be enough.
https://bugzilla.gnome.org/show_bug.cgi?id=688566
src/photos-view-container.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index cc3ea4e..a5c4832 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -86,11 +86,10 @@ photos_view_container_view_changed (PhotosViewContainer *self, GtkPositionType p
static void
photos_view_container_connect_view (PhotosViewContainer *self)
{
- g_signal_connect_object (self->priv->view,
- "edge-overshot",
- G_CALLBACK (photos_view_container_view_changed),
- self,
- G_CONNECT_SWAPPED);
+ g_signal_connect_swapped (self->priv->view,
+ "edge-overshot",
+ G_CALLBACK (photos_view_container_view_changed),
+ self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]