Commit 71ee2075 authored by Jim Krehl's avatar Jim Krehl

not quite all overflow errors were fixed

svn path=/branches/SLED10-SP1/; revision=264
parent 8b68dae0
......@@ -21,6 +21,7 @@
#include "double-click-detector.h"
#include <gtk/gtksettings.h>
#include <glib/gstdio.h>
#include "libslab-utils.h"
......@@ -89,7 +90,7 @@ double_click_detector_dispose (GObject * obj)
}
gboolean
double_click_detector_is_double_click (DoubleClickDetector *this, guint32 event_time,
double_click_detector_is_double_click (DoubleClickDetector *this, guint64 event_time,
gboolean auto_update)
{
gint32 delta;
......@@ -113,7 +114,7 @@ double_click_detector_is_double_click (DoubleClickDetector *this, guint32 event_
}
void
double_click_detector_update_click_time (DoubleClickDetector *this, guint32 event_time)
double_click_detector_update_click_time (DoubleClickDetector *this, guint64 event_time)
{
if (event_time <= 0)
event_time = libslab_get_current_time_millis ();
......
......@@ -37,7 +37,7 @@ typedef struct
GObject parent_placeholder;
guint32 double_click_time;
guint32 last_click_time;
guint64 last_click_time;
} DoubleClickDetector;
typedef struct
......@@ -49,10 +49,11 @@ GType double_click_detector_get_type (void);
DoubleClickDetector *double_click_detector_new (void);
gboolean double_click_detector_is_double_click (DoubleClickDetector * detector, guint32 event_time,
gboolean double_click_detector_is_double_click (DoubleClickDetector * detector, guint64 event_time,
gboolean auto_update);
void double_click_detector_update_click_time (DoubleClickDetector * detector, guint32 event_time);
void double_click_detector_update_click_time (DoubleClickDetector * detector, guint64 event_time);
G_END_DECLS
#endif /* __DOUBLE_CLICK_DETECTOR_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment