[gnome-photos] main-window: Fix a GLib warning
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-window: Fix a GLib warning
- Date: Thu, 9 Jan 2014 10:27:39 +0000 (UTC)
commit 17a2cfb1f0e26791ffbf9c84f9c6fe29121316d4
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Jan 9 11:25:48 2014 +0100
main-window: Fix a GLib warning
We forgot to clear the timeout ID when the handler was fired, which
would lead us to remove a source that does not exist anymore.
Original patch from Cosimo Cecchi for gnome-documents.
src/photos-main-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index e58dca0..d8417f8 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -87,7 +87,9 @@ photos_main_window_configure_id_timeout (gpointer user_data)
{
PhotosMainWindow *self = PHOTOS_MAIN_WINDOW (user_data);
+ self->priv->configure_id = 0;
photos_main_window_save_geometry (self);
+
return G_SOURCE_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]