* hildon-widgets/hildon-seekbar.c (hildon_seekbar_button_press_event): use if stateme...
authorLuc Pionchon <luc.pionchon@nokia.com>
Sat, 25 Mar 2006 23:58:42 +0000 (23:58 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Sat, 25 Mar 2006 23:58:42 +0000 (23:58 +0000)
ChangeLog
hildon-widgets/hildon-seekbar.c

index e6c920c..ecdf3ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-26  Luc Pionchon  <luc.pionchon@nokia.com>
+
+       * hildon-widgets/hildon-seekbar.c
+       (hildon_seekbar_button_press_event): use if statement instead of 's?a:b'
+
 2006-03-24  Luc Pionchon  <luc.pionchon@nokia.com>
 
        * configure.ac: 0.12.6
index ffb5bc3..17fe743 100644 (file)
@@ -570,7 +570,7 @@ hildon_seekbar_button_press_event(GtkWidget * widget,
     /* We change here the button id because we want to use button2
      * functionality for button1: jump to mouse position
      * instead of slowly incrementing to it */
-    event->button = (event->button == 1) ? 2 : event->button;
+    if (event->button == 1) event->button = 2;
 
     /* call the parent handler */
     if (GTK_WIDGET_CLASS(parent_class)->button_press_event)