summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturezoom.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2020-07-24 22:32:16 +0200
committerBenjamin Otte <otte@redhat.com>2020-07-25 00:47:36 +0200
commit3078b180fe79efd0e58239dabb7098c40aced1a8 (patch)
treea4ce228bafd8df1eff46d2410554a2b2a3c0f12e /gtk/gtkgesturezoom.c
parent556997f9df3b771733fc49a02d5424aee276e29f (diff)
downloadgtk+-3078b180fe79efd0e58239dabb7098c40aced1a8.tar.gz
Replace "gdouble" with "double"
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r--gtk/gtkgesturezoom.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index d706b502f3..20b67c237b 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -45,7 +45,7 @@ enum {
struct _GtkGestureZoomPrivate
{
- gdouble initial_distance;
+ double initial_distance;
};
static guint signals[LAST_SIGNAL] = { 0 };
@@ -74,13 +74,13 @@ gtk_gesture_zoom_constructor (GType type,
static gboolean
_gtk_gesture_zoom_get_distance (GtkGestureZoom *zoom,
- gdouble *distance)
+ double *distance)
{
GdkEvent *last_event;
- gdouble x1, y1, x2, y2;
+ double x1, y1, x2, y2;
GtkGesture *gesture;
GList *sequences = NULL;
- gdouble dx, dy;
+ double dx, dy;
GdkTouchpadGesturePhase phase;
gboolean retval = FALSE;
@@ -131,7 +131,7 @@ static gboolean
_gtk_gesture_zoom_check_emit (GtkGestureZoom *gesture)
{
GtkGestureZoomPrivate *priv;
- gdouble distance, zoom;
+ double distance, zoom;
if (!_gtk_gesture_zoom_get_distance (gesture, &distance))
return FALSE;
@@ -241,11 +241,11 @@ gtk_gesture_zoom_new (void)
*
* Returns: the scale delta
**/
-gdouble
+double
gtk_gesture_zoom_get_scale_delta (GtkGestureZoom *gesture)
{
GtkGestureZoomPrivate *priv;
- gdouble distance;
+ double distance;
g_return_val_if_fail (GTK_IS_GESTURE_ZOOM (gesture), 1.0);