[gnome-photos] preview-nav-buttons: Remove redundant type casts



commit 2402d2a4f848a1d00dd044b35898f347631bb900
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Oct 14 08:50:04 2017 +0200

    preview-nav-buttons: Remove redundant type casts

 src/photos-preview-nav-buttons.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-preview-nav-buttons.c b/src/photos-preview-nav-buttons.c
index e43fef6..09fd84e 100644
--- a/src/photos-preview-nav-buttons.c
+++ b/src/photos-preview-nav-buttons.c
@@ -337,7 +337,7 @@ photos_preview_nav_buttons_motion_notify (PhotosPreviewNavButtons *self, GdkEven
 static void
 photos_preview_nav_buttons_long_press_pressed (PhotosPreviewNavButtons *self)
 {
-  gtk_gesture_set_state (GTK_GESTURE (self->long_press_gesture), GTK_EVENT_SEQUENCE_DENIED);
+  gtk_gesture_set_state (self->long_press_gesture, GTK_EVENT_SEQUENCE_DENIED);
 }
 
 
@@ -350,7 +350,7 @@ photos_preview_nav_buttons_multi_press_end (PhotosPreviewNavButtons *self, GdkEv
   if (state == GTK_EVENT_SEQUENCE_DENIED)
     return;
 
-  gtk_gesture_set_state (GTK_GESTURE (self->tap_gesture), GTK_EVENT_SEQUENCE_CLAIMED);
+  gtk_gesture_set_state (self->tap_gesture, GTK_EVENT_SEQUENCE_CLAIMED);
 
   if (self->auto_hide)
     {


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