[gnome-photos/wip/facebook] main-window: Use G_SOURCE_REMOVE, GDK_EVENT_PROPAGATE, etc..



commit ec71fa9a7c9501d7aef8059b38e1012b0b8f672c
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Aug 27 11:28:37 2013 +0200

    main-window: Use G_SOURCE_REMOVE, GDK_EVENT_PROPAGATE, etc..
    
    They are more readable.

 src/photos-main-window.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index e1a59a8..e58dca0 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -88,7 +88,7 @@ photos_main_window_configure_id_timeout (gpointer user_data)
   PhotosMainWindow *self = PHOTOS_MAIN_WINDOW (user_data);
 
   photos_main_window_save_geometry (self);
-  return FALSE;
+  return G_SOURCE_REMOVE;
 }
 
 
@@ -128,7 +128,7 @@ photos_main_window_delete_event (GtkWidget *widget, GdkEventAny *event)
     }
 
   photos_main_window_save_geometry (self);
-  return FALSE;
+  return GDK_EVENT_PROPAGATE;
 }
 
 
@@ -147,7 +147,7 @@ photos_main_window_fullscreen_changed (PhotosModeController *controller, gboolea
 static gboolean
 photos_main_window_handle_key_overview (PhotosMainWindow *self, GdkEventKey *event)
 {
-  return FALSE;
+  return GDK_EVENT_PROPAGATE;
 }
 
 
@@ -169,10 +169,10 @@ photos_main_window_handle_key_preview (PhotosMainWindow *self, GdkEventKey *even
       || event->keyval == GDK_KEY_Back)
     {
       photos_base_manager_set_active_object (priv->item_mngr, NULL);
-      return TRUE;
+      return GDK_EVENT_STOP;
     }
 
-  return FALSE;
+  return GDK_EVENT_PROPAGATE;
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]