forked from AuroraMiddleware/gtk
Replace "gdouble" with "double"
This commit is contained in:
parent
556997f9df
commit
3078b180fe
@ -12,7 +12,7 @@ static GtkWidget *progress_bar = NULL;
|
||||
static gboolean
|
||||
apply_changes_gradually (gpointer data)
|
||||
{
|
||||
gdouble fraction;
|
||||
double fraction;
|
||||
|
||||
/* Work, work, work... */
|
||||
fraction = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (progress_bar));
|
||||
|
@ -64,8 +64,8 @@ scribble_draw (GtkDrawingArea *da,
|
||||
/* Draw a rectangle on the screen */
|
||||
static void
|
||||
draw_brush (GtkWidget *widget,
|
||||
gdouble x,
|
||||
gdouble y)
|
||||
double x,
|
||||
double y)
|
||||
{
|
||||
GdkRectangle update_rect;
|
||||
cairo_t *cr;
|
||||
|
@ -728,7 +728,7 @@ static void
|
||||
entry_activated (GtkEntry *entry,
|
||||
GtkAdjustment *adjustment)
|
||||
{
|
||||
gdouble value;
|
||||
double value;
|
||||
char *err = NULL;
|
||||
|
||||
value = g_strtod (gtk_editable_get_text (GTK_EDITABLE (entry)), &err);
|
||||
@ -939,7 +939,7 @@ instance_changed (GtkComboBox *combo)
|
||||
{
|
||||
Axis *axis;
|
||||
Axis akey;
|
||||
gdouble value;
|
||||
double value;
|
||||
|
||||
value = coords[ai[i].axis_index];
|
||||
|
||||
|
@ -39,7 +39,7 @@ val_to_xy (GtkFontPlane *plane,
|
||||
int *x,
|
||||
int *y)
|
||||
{
|
||||
gdouble u, v;
|
||||
double u, v;
|
||||
int width, height;
|
||||
|
||||
width = gtk_widget_get_allocated_width (GTK_WIDGET (plane));
|
||||
@ -129,7 +129,7 @@ update_value (GtkFontPlane *plane,
|
||||
int y)
|
||||
{
|
||||
GtkWidget *widget = GTK_WIDGET (plane);
|
||||
gdouble u, v;
|
||||
double u, v;
|
||||
|
||||
u = CLAMP (x * (1.0 / gtk_widget_get_allocated_width (widget)), 0, 1);
|
||||
v = CLAMP (1 - y * (1.0 / gtk_widget_get_allocated_height (widget)), 0, 1);
|
||||
@ -142,8 +142,8 @@ update_value (GtkFontPlane *plane,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
gdouble start_x,
|
||||
gdouble start_y,
|
||||
double start_x,
|
||||
double start_y,
|
||||
GtkFontPlane *plane)
|
||||
{
|
||||
guint button;
|
||||
@ -164,11 +164,11 @@ plane_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkFontPlane *plane)
|
||||
{
|
||||
gdouble start_x, start_y;
|
||||
double start_x, start_y;
|
||||
|
||||
gtk_gesture_drag_get_start_point (GTK_GESTURE_DRAG (gesture),
|
||||
&start_x, &start_y);
|
||||
@ -177,8 +177,8 @@ plane_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_end (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkFontPlane *plane)
|
||||
{
|
||||
set_cross_cursor (GTK_WIDGET (plane), FALSE);
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
static GtkGesture *rotate = NULL;
|
||||
static GtkGesture *zoom = NULL;
|
||||
static gdouble swipe_x = 0;
|
||||
static gdouble swipe_y = 0;
|
||||
static double swipe_x = 0;
|
||||
static double swipe_y = 0;
|
||||
static gboolean long_pressed = FALSE;
|
||||
|
||||
static gboolean
|
||||
@ -26,8 +26,8 @@ touchpad_swipe_gesture_begin (GtkGesture *gesture,
|
||||
|
||||
static void
|
||||
swipe_gesture_swept (GtkGestureSwipe *gesture,
|
||||
gdouble velocity_x,
|
||||
gdouble velocity_y,
|
||||
double velocity_x,
|
||||
double velocity_y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
swipe_x = velocity_x / 10;
|
||||
@ -37,8 +37,8 @@ swipe_gesture_swept (GtkGestureSwipe *gesture,
|
||||
|
||||
static void
|
||||
long_press_gesture_pressed (GtkGestureLongPress *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
long_pressed = TRUE;
|
||||
@ -56,8 +56,8 @@ long_press_gesture_end (GtkGesture *gesture,
|
||||
|
||||
static void
|
||||
rotation_angle_changed (GtkGestureRotate *gesture,
|
||||
gdouble angle,
|
||||
gdouble delta,
|
||||
double angle,
|
||||
double delta,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
gtk_widget_queue_draw (widget);
|
||||
@ -65,7 +65,7 @@ rotation_angle_changed (GtkGestureRotate *gesture,
|
||||
|
||||
static void
|
||||
zoom_scale_changed (GtkGestureZoom *gesture,
|
||||
gdouble scale,
|
||||
double scale,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
gtk_widget_queue_draw (widget);
|
||||
@ -93,8 +93,8 @@ drawing_area_draw (GtkDrawingArea *area,
|
||||
{
|
||||
cairo_pattern_t *pat;
|
||||
cairo_matrix_t matrix;
|
||||
gdouble angle, scale;
|
||||
gdouble x_center, y_center;
|
||||
double angle, scale;
|
||||
double x_center, y_center;
|
||||
|
||||
gtk_gesture_get_bounding_box_center (GTK_GESTURE (zoom), &x_center, &y_center);
|
||||
|
||||
|
@ -140,8 +140,8 @@ static void set_cursor_if_appropriate (GtkTextView *text_view,
|
||||
static void
|
||||
released_cb (GtkGestureClick *gesture,
|
||||
guint n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *text_view)
|
||||
{
|
||||
GtkTextIter start, end, iter;
|
||||
@ -168,8 +168,8 @@ released_cb (GtkGestureClick *gesture,
|
||||
|
||||
static void
|
||||
motion_cb (GtkEventControllerMotion *controller,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkTextView *text_view)
|
||||
{
|
||||
set_cursor_if_appropriate (text_view, x, y);
|
||||
|
@ -89,14 +89,14 @@ static GParamSpec *color_properties[N_COLOR_PROPS] = { NULL, };
|
||||
|
||||
static void
|
||||
rgb_to_hsv (GdkRGBA *rgba,
|
||||
gdouble *h_out,
|
||||
gdouble *s_out,
|
||||
gdouble *v_out)
|
||||
double *h_out,
|
||||
double *s_out,
|
||||
double *v_out)
|
||||
{
|
||||
gdouble red, green, blue;
|
||||
gdouble h, s, v;
|
||||
gdouble min, max;
|
||||
gdouble delta;
|
||||
double red, green, blue;
|
||||
double h, s, v;
|
||||
double min, max;
|
||||
double delta;
|
||||
|
||||
red = rgba->red;
|
||||
green = rgba->green;
|
||||
|
@ -270,8 +270,6 @@ static const char *types[] =
|
||||
"gshort",
|
||||
"gushort",
|
||||
"gulong",
|
||||
"gdouble",
|
||||
"gldouble",
|
||||
"gpointer",
|
||||
"NULL",
|
||||
"GList",
|
||||
|
@ -20,7 +20,7 @@ typedef struct
|
||||
cairo_t *cr;
|
||||
GdkRGBA draw_color;
|
||||
GtkPadController *pad_controller;
|
||||
gdouble brush_size;
|
||||
double brush_size;
|
||||
} DrawingArea;
|
||||
|
||||
typedef struct
|
||||
@ -166,7 +166,7 @@ on_pad_knob_change (GSimpleAction *action,
|
||||
GVariant *parameter,
|
||||
DrawingArea *area)
|
||||
{
|
||||
gdouble value = g_variant_get_double (parameter);
|
||||
double value = g_variant_get_double (parameter);
|
||||
|
||||
area->brush_size = value;
|
||||
}
|
||||
@ -255,9 +255,9 @@ drawing_area_class_init (DrawingAreaClass *klass)
|
||||
static void
|
||||
drawing_area_apply_stroke (DrawingArea *area,
|
||||
GdkDeviceTool *tool,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble pressure)
|
||||
double x,
|
||||
double y,
|
||||
double pressure)
|
||||
{
|
||||
if (gdk_device_tool_get_tool_type (tool) == GDK_DEVICE_TOOL_TYPE_ERASER)
|
||||
{
|
||||
@ -281,8 +281,8 @@ drawing_area_apply_stroke (DrawingArea *area,
|
||||
|
||||
static void
|
||||
stylus_gesture_down (GtkGestureStylus *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
DrawingArea *area)
|
||||
{
|
||||
cairo_new_path (area->cr);
|
||||
@ -290,13 +290,13 @@ stylus_gesture_down (GtkGestureStylus *gesture,
|
||||
|
||||
static void
|
||||
stylus_gesture_motion (GtkGestureStylus *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
DrawingArea *area)
|
||||
{
|
||||
GdkTimeCoord *backlog;
|
||||
GdkDeviceTool *tool;
|
||||
gdouble pressure;
|
||||
double pressure;
|
||||
guint n_items;
|
||||
|
||||
tool = gtk_gesture_stylus_get_device_tool (gesture);
|
||||
|
@ -15,7 +15,7 @@
|
||||
typedef struct
|
||||
{
|
||||
char *resourcename;
|
||||
gdouble font_size;
|
||||
double font_size;
|
||||
|
||||
int lines_per_page;
|
||||
char **lines;
|
||||
@ -62,7 +62,7 @@ draw_page (GtkPrintOperation *operation,
|
||||
cairo_t *cr;
|
||||
PangoLayout *layout;
|
||||
int text_width, text_height;
|
||||
gdouble width;
|
||||
double width;
|
||||
int line, i;
|
||||
PangoFontDescription *desc;
|
||||
char *page_str;
|
||||
|
@ -13,11 +13,11 @@
|
||||
|
||||
int
|
||||
spinbutton_hex_spin_input (GtkSpinButton *spin_button,
|
||||
gdouble *new_val)
|
||||
double *new_val)
|
||||
{
|
||||
const char *buf;
|
||||
char *err;
|
||||
gdouble res;
|
||||
double res;
|
||||
|
||||
buf = gtk_editable_get_text (GTK_EDITABLE (spin_button));
|
||||
res = strtol (buf, &err, 16);
|
||||
@ -33,7 +33,7 @@ spinbutton_hex_spin_output (GtkSpinButton *spin_button)
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
char *buf;
|
||||
gdouble val;
|
||||
double val;
|
||||
|
||||
adjustment = gtk_spin_button_get_adjustment (spin_button);
|
||||
val = gtk_adjustment_get_value (adjustment);
|
||||
@ -50,7 +50,7 @@ spinbutton_hex_spin_output (GtkSpinButton *spin_button)
|
||||
|
||||
int
|
||||
spinbutton_time_spin_input (GtkSpinButton *spin_button,
|
||||
gdouble *new_val)
|
||||
double *new_val)
|
||||
{
|
||||
const char *text;
|
||||
char **str;
|
||||
@ -92,8 +92,8 @@ spinbutton_time_spin_output (GtkSpinButton *spin_button)
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
char *buf;
|
||||
gdouble hours;
|
||||
gdouble minutes;
|
||||
double hours;
|
||||
double minutes;
|
||||
|
||||
adjustment = gtk_spin_button_get_adjustment (spin_button);
|
||||
hours = gtk_adjustment_get_value (adjustment) / 60.0;
|
||||
@ -123,7 +123,7 @@ static const char *month[12] = {
|
||||
|
||||
int
|
||||
spinbutton_month_spin_input (GtkSpinButton *spin_button,
|
||||
gdouble *new_val)
|
||||
double *new_val)
|
||||
{
|
||||
int i;
|
||||
char *tmp1, *tmp2;
|
||||
@ -145,7 +145,7 @@ spinbutton_month_spin_input (GtkSpinButton *spin_button,
|
||||
*new_val = 0.0;
|
||||
return GTK_INPUT_ERROR;
|
||||
}
|
||||
*new_val = (gdouble) i;
|
||||
*new_val = (double) i;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@ -154,7 +154,7 @@ int
|
||||
spinbutton_month_spin_output (GtkSpinButton *spin_button)
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble value;
|
||||
double value;
|
||||
int i;
|
||||
|
||||
adjustment = gtk_spin_button_get_adjustment (spin_button);
|
||||
|
@ -482,7 +482,7 @@ pulse_it (GtkWidget *widget)
|
||||
static void
|
||||
update_pulse_time (GtkAdjustment *adjustment, GtkWidget *widget)
|
||||
{
|
||||
gdouble value;
|
||||
double value;
|
||||
guint pulse_id;
|
||||
|
||||
value = gtk_adjustment_get_value (adjustment);
|
||||
@ -537,11 +537,11 @@ on_entry_icon_release (GtkEntry *entry,
|
||||
|
||||
static void
|
||||
on_scale_button_value_changed (GtkScaleButton *button,
|
||||
gdouble value,
|
||||
double value,
|
||||
gpointer user_data)
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble val;
|
||||
double val;
|
||||
char *str;
|
||||
|
||||
adjustment = gtk_scale_button_get_adjustment (button);
|
||||
|
@ -426,8 +426,8 @@ draw_cb (GtkDrawingArea *drawing_area,
|
||||
/* Draw a rectangle on the surface at the given position */
|
||||
static void
|
||||
draw_brush (GtkWidget *widget,
|
||||
gdouble x,
|
||||
gdouble y)
|
||||
double x,
|
||||
double y)
|
||||
{
|
||||
cairo_t *cr;
|
||||
|
||||
|
@ -59,8 +59,8 @@ draw_cb (GtkDrawingArea *drawing_area,
|
||||
/* Draw a rectangle on the surface at the given position */
|
||||
static void
|
||||
draw_brush (GtkWidget *widget,
|
||||
gdouble x,
|
||||
gdouble y)
|
||||
double x,
|
||||
double y)
|
||||
{
|
||||
cairo_t *cr;
|
||||
|
||||
|
@ -24,8 +24,8 @@
|
||||
#include "gdkprivate-broadway.h"
|
||||
|
||||
static void gdk_broadway_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
GdkSurface *surface,
|
||||
double *axes,
|
||||
GdkModifierType *mask);
|
||||
static void gdk_broadway_device_set_surface_cursor (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
@ -46,8 +46,8 @@ static GdkGrabStatus gdk_broadway_device_grab (GdkDevice *device,
|
||||
static void gdk_broadway_device_ungrab (GdkDevice *device,
|
||||
guint32 time_);
|
||||
static GdkSurface * gdk_broadway_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
|
||||
@ -79,11 +79,11 @@ gdk_broadway_device_init (GdkBroadwayDevice *device_core)
|
||||
|
||||
static void
|
||||
gdk_broadway_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
GdkSurface *surface,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
gdk_surface_get_device_position (surface, device, &x, &y, mask);
|
||||
|
||||
@ -271,8 +271,8 @@ gdk_broadway_device_ungrab (GdkDevice *device,
|
||||
|
||||
static GdkSurface *
|
||||
gdk_broadway_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *surface = NULL;
|
||||
|
@ -736,8 +736,8 @@ gdk_broadway_surface_get_root_coords (GdkSurface *surface,
|
||||
static gboolean
|
||||
gdk_broadway_surface_get_device_state (GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *child;
|
||||
|
@ -213,8 +213,8 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
|
||||
void
|
||||
gdk_cairo_set_source_pixbuf (cairo_t *cr,
|
||||
const GdkPixbuf *pixbuf,
|
||||
gdouble pixbuf_x,
|
||||
gdouble pixbuf_y)
|
||||
double pixbuf_x,
|
||||
double pixbuf_y)
|
||||
{
|
||||
cairo_format_t format;
|
||||
cairo_surface_t *surface;
|
||||
|
@ -35,8 +35,8 @@ void gdk_cairo_set_source_rgba (cairo_t *cr,
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gdk_cairo_set_source_pixbuf (cairo_t *cr,
|
||||
const GdkPixbuf *pixbuf,
|
||||
gdouble pixbuf_x,
|
||||
gdouble pixbuf_y);
|
||||
double pixbuf_x,
|
||||
double pixbuf_y);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gdk_cairo_rectangle (cairo_t *cr,
|
||||
|
@ -52,11 +52,11 @@ typedef struct _GdkAxisInfo GdkAxisInfo;
|
||||
struct _GdkAxisInfo
|
||||
{
|
||||
GdkAxisUse use;
|
||||
gdouble min_axis;
|
||||
gdouble max_axis;
|
||||
gdouble min_value;
|
||||
gdouble max_value;
|
||||
gdouble resolution;
|
||||
double min_axis;
|
||||
double max_axis;
|
||||
double min_value;
|
||||
double max_value;
|
||||
double resolution;
|
||||
};
|
||||
|
||||
enum {
|
||||
@ -550,7 +550,7 @@ gdk_device_get_property (GObject *object,
|
||||
void
|
||||
gdk_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
g_return_if_fail (GDK_IS_DEVICE (device));
|
||||
@ -608,7 +608,7 @@ gdk_device_get_surface_at_position (GdkDevice *device,
|
||||
double *win_x,
|
||||
double *win_y)
|
||||
{
|
||||
gdouble tmp_x, tmp_y;
|
||||
double tmp_x, tmp_y;
|
||||
GdkSurface *surface;
|
||||
|
||||
g_return_val_if_fail (GDK_IS_DEVICE (device), NULL);
|
||||
@ -873,9 +873,9 @@ gdk_device_get_n_axes (GdkDevice *device)
|
||||
**/
|
||||
gboolean
|
||||
gdk_device_get_axis (GdkDevice *device,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkAxisUse use,
|
||||
gdouble *value)
|
||||
double *value)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -994,9 +994,9 @@ _gdk_device_reset_axes (GdkDevice *device)
|
||||
guint
|
||||
_gdk_device_add_axis (GdkDevice *device,
|
||||
GdkAxisUse use,
|
||||
gdouble min_value,
|
||||
gdouble max_value,
|
||||
gdouble resolution)
|
||||
double min_value,
|
||||
double max_value,
|
||||
double resolution)
|
||||
{
|
||||
GdkAxisInfo axis_info;
|
||||
guint pos;
|
||||
@ -1039,9 +1039,9 @@ void
|
||||
_gdk_device_get_axis_info (GdkDevice *device,
|
||||
guint index_,
|
||||
GdkAxisUse *use,
|
||||
gdouble *min_value,
|
||||
gdouble *max_value,
|
||||
gdouble *resolution)
|
||||
double *min_value,
|
||||
double *max_value,
|
||||
double *resolution)
|
||||
{
|
||||
GdkAxisInfo *info;
|
||||
|
||||
@ -1078,17 +1078,17 @@ gboolean
|
||||
_gdk_device_translate_surface_coord (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
guint index_,
|
||||
gdouble value,
|
||||
gdouble *axis_value)
|
||||
double value,
|
||||
double *axis_value)
|
||||
{
|
||||
GdkAxisInfo axis_info;
|
||||
GdkAxisInfo *axis_info_x, *axis_info_y;
|
||||
gdouble device_width, device_height;
|
||||
gdouble x_offset, y_offset;
|
||||
gdouble x_scale, y_scale;
|
||||
gdouble x_min, y_min;
|
||||
gdouble x_resolution, y_resolution;
|
||||
gdouble device_aspect;
|
||||
double device_width, device_height;
|
||||
double x_offset, y_offset;
|
||||
double x_scale, y_scale;
|
||||
double x_min, y_min;
|
||||
double x_resolution, y_resolution;
|
||||
double device_aspect;
|
||||
int surface_width, surface_height;
|
||||
|
||||
if (index_ >= device->axes->len)
|
||||
@ -1179,16 +1179,16 @@ _gdk_device_translate_surface_coord (GdkDevice *device,
|
||||
gboolean
|
||||
_gdk_device_translate_screen_coord (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble surface_root_x,
|
||||
gdouble surface_root_y,
|
||||
gdouble screen_width,
|
||||
gdouble screen_height,
|
||||
double surface_root_x,
|
||||
double surface_root_y,
|
||||
double screen_width,
|
||||
double screen_height,
|
||||
guint index_,
|
||||
gdouble value,
|
||||
gdouble *axis_value)
|
||||
double value,
|
||||
double *axis_value)
|
||||
{
|
||||
GdkAxisInfo axis_info;
|
||||
gdouble axis_width, scale, offset;
|
||||
double axis_width, scale, offset;
|
||||
|
||||
if (index_ >= device->axes->len)
|
||||
return FALSE;
|
||||
@ -1229,11 +1229,11 @@ _gdk_device_translate_screen_coord (GdkDevice *device,
|
||||
gboolean
|
||||
_gdk_device_translate_axis (GdkDevice *device,
|
||||
guint index_,
|
||||
gdouble value,
|
||||
gdouble *axis_value)
|
||||
double value,
|
||||
double *axis_value)
|
||||
{
|
||||
GdkAxisInfo axis_info;
|
||||
gdouble axis_width, out;
|
||||
double axis_width, out;
|
||||
|
||||
if (index_ >= device->axes->len)
|
||||
return FALSE;
|
||||
@ -1258,8 +1258,8 @@ void
|
||||
_gdk_device_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GDK_DEVICE_GET_CLASS (device)->query_state (device,
|
||||
@ -1272,8 +1272,8 @@ _gdk_device_query_state (GdkDevice *device,
|
||||
|
||||
GdkSurface *
|
||||
_gdk_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
return GDK_DEVICE_GET_CLASS (device)->surface_at_position (device,
|
||||
|
@ -116,7 +116,7 @@ GdkAxisUse gdk_device_get_axis_use (GdkDevice *device,
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gdk_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkSurface * gdk_device_get_surface_at_position (GdkDevice *device,
|
||||
@ -127,9 +127,9 @@ GDK_AVAILABLE_IN_ALL
|
||||
int gdk_device_get_n_axes (GdkDevice *device);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gdk_device_get_axis (GdkDevice *device,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkAxisUse use,
|
||||
gdouble *value);
|
||||
double *value);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkDisplay * gdk_device_get_display (GdkDevice *device);
|
||||
|
||||
|
@ -63,7 +63,7 @@ struct _GdkDeviceClass
|
||||
|
||||
void (* get_state) (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask);
|
||||
|
||||
void (* set_surface_cursor)(GdkDevice *device,
|
||||
@ -73,8 +73,8 @@ struct _GdkDeviceClass
|
||||
void (* query_state) (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
GdkGrabStatus (* grab) (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
@ -98,36 +98,36 @@ void _gdk_device_set_associated_device (GdkDevice *device,
|
||||
void _gdk_device_reset_axes (GdkDevice *device);
|
||||
guint _gdk_device_add_axis (GdkDevice *device,
|
||||
GdkAxisUse use,
|
||||
gdouble min_value,
|
||||
gdouble max_value,
|
||||
gdouble resolution);
|
||||
double min_value,
|
||||
double max_value,
|
||||
double resolution);
|
||||
void _gdk_device_get_axis_info (GdkDevice *device,
|
||||
guint index,
|
||||
GdkAxisUse *use,
|
||||
gdouble *min_value,
|
||||
gdouble *max_value,
|
||||
gdouble *resolution);
|
||||
double *min_value,
|
||||
double *max_value,
|
||||
double *resolution);
|
||||
|
||||
gboolean _gdk_device_translate_surface_coord (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
guint index,
|
||||
gdouble value,
|
||||
gdouble *axis_value);
|
||||
double value,
|
||||
double *axis_value);
|
||||
|
||||
gboolean _gdk_device_translate_screen_coord (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble surface_root_x,
|
||||
gdouble surface_root_y,
|
||||
gdouble screen_width,
|
||||
gdouble screen_height,
|
||||
double surface_root_x,
|
||||
double surface_root_y,
|
||||
double screen_width,
|
||||
double screen_height,
|
||||
guint index,
|
||||
gdouble value,
|
||||
gdouble *axis_value);
|
||||
double value,
|
||||
double *axis_value);
|
||||
|
||||
gboolean _gdk_device_translate_axis (GdkDevice *device,
|
||||
guint index,
|
||||
gdouble value,
|
||||
gdouble *axis_value);
|
||||
double value,
|
||||
double *axis_value);
|
||||
|
||||
GdkTimeCoord ** _gdk_device_allocate_history (GdkDevice *device,
|
||||
int n_events);
|
||||
@ -140,12 +140,12 @@ void _gdk_device_remove_physical_device (GdkDevice *device,
|
||||
void _gdk_device_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
GdkSurface * _gdk_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
void gdk_device_set_seat (GdkDevice *device,
|
||||
|
@ -584,7 +584,7 @@ get_current_toplevel (GdkDisplay *display,
|
||||
GdkModifierType *state_out)
|
||||
{
|
||||
GdkSurface *pointer_surface;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
GdkModifierType state;
|
||||
|
||||
pointer_surface = _gdk_device_surface_at_position (device, &x, &y, &state);
|
||||
|
@ -62,7 +62,7 @@ typedef struct
|
||||
typedef struct
|
||||
{
|
||||
GdkSurface *surface_under_pointer; /* surface that last got a normal enter event */
|
||||
gdouble toplevel_x, toplevel_y;
|
||||
double toplevel_x, toplevel_y;
|
||||
guint32 state;
|
||||
guint32 button;
|
||||
GdkDevice *last_physical_device;
|
||||
|
@ -993,12 +993,12 @@ gdk_event_triggers_context_menu (GdkEvent *event)
|
||||
static gboolean
|
||||
gdk_events_get_axis_distances (GdkEvent *event1,
|
||||
GdkEvent *event2,
|
||||
gdouble *x_distance,
|
||||
gdouble *y_distance,
|
||||
gdouble *distance)
|
||||
double *x_distance,
|
||||
double *y_distance,
|
||||
double *distance)
|
||||
{
|
||||
gdouble x1, x2, y1, y2;
|
||||
gdouble xd, yd;
|
||||
double x1, x2, y1, y2;
|
||||
double xd, yd;
|
||||
|
||||
if (!gdk_event_get_position (event1, &x1, &y1) ||
|
||||
!gdk_event_get_position (event2, &x2, &y2))
|
||||
@ -1033,7 +1033,7 @@ gdk_events_get_axis_distances (GdkEvent *event1,
|
||||
gboolean
|
||||
gdk_events_get_distance (GdkEvent *event1,
|
||||
GdkEvent *event2,
|
||||
gdouble *distance)
|
||||
double *distance)
|
||||
{
|
||||
return gdk_events_get_axis_distances (event1, event2,
|
||||
NULL, NULL,
|
||||
@ -1056,9 +1056,9 @@ gdk_events_get_distance (GdkEvent *event1,
|
||||
gboolean
|
||||
gdk_events_get_angle (GdkEvent *event1,
|
||||
GdkEvent *event2,
|
||||
gdouble *angle)
|
||||
double *angle)
|
||||
{
|
||||
gdouble x_distance, y_distance, distance;
|
||||
double x_distance, y_distance, distance;
|
||||
|
||||
if (!gdk_events_get_axis_distances (event1, event2,
|
||||
&x_distance, &y_distance,
|
||||
@ -1097,10 +1097,10 @@ gdk_events_get_angle (GdkEvent *event1,
|
||||
gboolean
|
||||
gdk_events_get_center (GdkEvent *event1,
|
||||
GdkEvent *event2,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
double *x,
|
||||
double *y)
|
||||
{
|
||||
gdouble x1, x2, y1, y2;
|
||||
double x1, x2, y1, y2;
|
||||
|
||||
if (!gdk_event_get_position (event1, &x1, &y1) ||
|
||||
!gdk_event_get_position (event2, &x2, &y2))
|
||||
|
@ -188,8 +188,8 @@ void _gdk_synthesize_crossing_events (GdkDisplay *display,
|
||||
GdkDevice *device,
|
||||
GdkDevice *source_device,
|
||||
GdkCrossingMode mode,
|
||||
gdouble toplevel_x,
|
||||
gdouble toplevel_y,
|
||||
double toplevel_x,
|
||||
double toplevel_y,
|
||||
GdkModifierType mask,
|
||||
guint32 time_,
|
||||
GdkEvent *event_in_queue,
|
||||
@ -331,8 +331,8 @@ struct _GdkGeometry
|
||||
int base_height;
|
||||
int width_inc;
|
||||
int height_inc;
|
||||
gdouble min_aspect;
|
||||
gdouble max_aspect;
|
||||
double min_aspect;
|
||||
double max_aspect;
|
||||
GdkGravity win_gravity;
|
||||
};
|
||||
|
||||
|
@ -132,7 +132,7 @@ gdk_rgba_is_opaque (const GdkRGBA *rgba)
|
||||
static gboolean
|
||||
parse_rgb_value (const char *str,
|
||||
char **endp,
|
||||
gdouble *number)
|
||||
double *number)
|
||||
{
|
||||
const char *p;
|
||||
|
||||
@ -186,7 +186,7 @@ gdk_rgba_parse (GdkRGBA *rgba,
|
||||
const char *spec)
|
||||
{
|
||||
gboolean has_alpha;
|
||||
gdouble r, g, b, a;
|
||||
double r, g, b, a;
|
||||
char *str = (char *) spec;
|
||||
char *p;
|
||||
|
||||
|
@ -1705,7 +1705,7 @@ gdk_surface_get_device_position (GdkSurface *surface,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gdouble tmp_x, tmp_y;
|
||||
double tmp_x, tmp_y;
|
||||
GdkModifierType tmp_mask;
|
||||
|
||||
g_return_if_fail (GDK_IS_SURFACE (surface));
|
||||
|
@ -125,8 +125,8 @@ struct _GdkSurfaceClass
|
||||
int *root_y);
|
||||
gboolean (* get_device_state) (GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
void (* set_input_region) (GdkSurface *surface,
|
||||
|
@ -65,8 +65,8 @@ gdk_macos_device_set_surface_cursor (GdkDevice *device,
|
||||
|
||||
static GdkSurface *
|
||||
gdk_macos_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *state)
|
||||
{
|
||||
GdkMacosDisplay *display;
|
||||
@ -129,10 +129,10 @@ gdk_macos_device_ungrab (GdkDevice *device,
|
||||
static void
|
||||
gdk_macos_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gdouble x_pos, y_pos;
|
||||
double x_pos, y_pos;
|
||||
|
||||
g_assert (GDK_IS_MACOS_DEVICE (device));
|
||||
g_assert (GDK_IS_MACOS_SURFACE (surface));
|
||||
@ -150,8 +150,8 @@ static void
|
||||
gdk_macos_device_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
|
@ -433,7 +433,7 @@ fill_pinch_event (GdkMacosDisplay *display,
|
||||
} last_state = FP_STATE_IDLE;
|
||||
GdkSeat *seat;
|
||||
GdkTouchpadGesturePhase phase;
|
||||
gdouble angle_delta = 0.0;
|
||||
double angle_delta = 0.0;
|
||||
|
||||
g_assert (GDK_IS_MACOS_DISPLAY (display));
|
||||
g_assert (GDK_IS_MACOS_SURFACE (surface));
|
||||
@ -590,8 +590,8 @@ fill_scroll_event (GdkMacosDisplay *self,
|
||||
GdkDevice *pointer;
|
||||
GdkEvent *ret = NULL;
|
||||
GdkSeat *seat;
|
||||
gdouble dx;
|
||||
gdouble dy;
|
||||
double dx;
|
||||
double dy;
|
||||
|
||||
g_assert (GDK_IS_MACOS_SURFACE (surface));
|
||||
g_assert (nsevent != NULL);
|
||||
@ -606,8 +606,8 @@ fill_scroll_event (GdkMacosDisplay *self,
|
||||
|
||||
if ([nsevent hasPreciseScrollingDeltas])
|
||||
{
|
||||
gdouble sx;
|
||||
gdouble sy;
|
||||
double sx;
|
||||
double sy;
|
||||
|
||||
/*
|
||||
* TODO: We probably need another event type for the
|
||||
|
@ -305,8 +305,8 @@ gdk_drag_get_current_actions (GdkModifierType state,
|
||||
|
||||
static void
|
||||
gdk_drag_update (GdkDrag *drag,
|
||||
gdouble x_root,
|
||||
gdouble y_root,
|
||||
double x_root,
|
||||
double y_root,
|
||||
GdkModifierType mods,
|
||||
guint32 evtime)
|
||||
{
|
||||
|
@ -230,8 +230,8 @@ gdk_macos_surface_get_root_coords (GdkSurface *surface,
|
||||
static gboolean
|
||||
gdk_macos_surface_get_device_state (GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDisplay *display;
|
||||
|
@ -73,8 +73,8 @@ typedef struct _GdkWaylandTabletPadData GdkWaylandTabletPadData;
|
||||
struct _GdkWaylandTouchData
|
||||
{
|
||||
uint32_t id;
|
||||
gdouble x;
|
||||
gdouble y;
|
||||
double x;
|
||||
double y;
|
||||
GdkSurface *surface;
|
||||
uint32_t touch_down_serial;
|
||||
guint initial_touch : 1;
|
||||
@ -85,7 +85,7 @@ struct _GdkWaylandPointerFrameData
|
||||
GdkEvent *event;
|
||||
|
||||
/* Specific to the scroll event */
|
||||
gdouble delta_x, delta_y;
|
||||
double delta_x, delta_y;
|
||||
int32_t discrete_x, discrete_y;
|
||||
gint8 is_scroll_stop;
|
||||
enum wl_pointer_axis_source source;
|
||||
@ -147,7 +147,7 @@ struct _GdkWaylandTabletPadGroupData
|
||||
struct {
|
||||
guint source;
|
||||
gboolean is_stop;
|
||||
gdouble value;
|
||||
double value;
|
||||
} axis_tmp_info;
|
||||
};
|
||||
|
||||
@ -186,7 +186,7 @@ struct _GdkWaylandTabletData
|
||||
GdkWaylandTabletToolData *current_tool;
|
||||
|
||||
int axis_indices[GDK_AXIS_LAST];
|
||||
gdouble *axes;
|
||||
double *axes;
|
||||
};
|
||||
|
||||
struct _GdkWaylandSeat
|
||||
@ -253,7 +253,7 @@ struct _GdkWaylandSeat
|
||||
|
||||
/* Some tracking on gesture events */
|
||||
guint gesture_n_fingers;
|
||||
gdouble gesture_scale;
|
||||
double gesture_scale;
|
||||
|
||||
GdkCursor *grab_cursor;
|
||||
};
|
||||
@ -310,10 +310,10 @@ static void deliver_key_event (GdkWaylandSeat *seat,
|
||||
static void
|
||||
gdk_wayland_device_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
gdk_surface_get_device_position (surface, device, &x, &y, mask);
|
||||
|
||||
@ -538,8 +538,8 @@ static void
|
||||
gdk_wayland_device_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkWaylandPointerData *pointer;
|
||||
@ -788,8 +788,8 @@ gdk_wayland_device_ungrab (GdkDevice *device,
|
||||
|
||||
static GdkSurface *
|
||||
gdk_wayland_device_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkWaylandPointerData *pointer;
|
||||
@ -1357,8 +1357,8 @@ flush_discrete_scroll_event (GdkWaylandSeat *seat,
|
||||
|
||||
static void
|
||||
flush_smooth_scroll_event (GdkWaylandSeat *seat,
|
||||
gdouble delta_x,
|
||||
gdouble delta_y,
|
||||
double delta_x,
|
||||
double delta_y,
|
||||
gboolean is_stop)
|
||||
{
|
||||
GdkEvent *event;
|
||||
@ -2543,8 +2543,8 @@ emit_gesture_swipe_event (GdkWaylandSeat *seat,
|
||||
GdkTouchpadGesturePhase phase,
|
||||
guint32 _time,
|
||||
guint32 n_fingers,
|
||||
gdouble dx,
|
||||
gdouble dy)
|
||||
double dx,
|
||||
double dy)
|
||||
{
|
||||
GdkEvent *event;
|
||||
|
||||
@ -2638,10 +2638,10 @@ emit_gesture_pinch_event (GdkWaylandSeat *seat,
|
||||
GdkTouchpadGesturePhase phase,
|
||||
guint32 _time,
|
||||
guint n_fingers,
|
||||
gdouble dx,
|
||||
gdouble dy,
|
||||
gdouble scale,
|
||||
gdouble angle_delta)
|
||||
double dx,
|
||||
double dy,
|
||||
double scale,
|
||||
double angle_delta)
|
||||
{
|
||||
GdkEvent *event;
|
||||
|
||||
@ -3393,7 +3393,7 @@ gdk_wayland_device_tablet_clone_tool_axes (GdkWaylandTabletData *tablet,
|
||||
g_free (tablet->axes);
|
||||
|
||||
tablet->axes =
|
||||
g_new0 (gdouble, gdk_device_get_n_axes (tablet->stylus_device));
|
||||
g_new0 (double, gdk_device_get_n_axes (tablet->stylus_device));
|
||||
|
||||
g_object_thaw_notify (G_OBJECT (tablet->stylus_device));
|
||||
}
|
||||
@ -3402,7 +3402,7 @@ static void
|
||||
gdk_wayland_mimic_device_axes (GdkDevice *logical,
|
||||
GdkDevice *physical)
|
||||
{
|
||||
gdouble axis_min, axis_max, axis_resolution;
|
||||
double axis_min, axis_max, axis_resolution;
|
||||
GdkAxisUse axis_use;
|
||||
int axis_count;
|
||||
int i;
|
||||
@ -3510,7 +3510,7 @@ static double *
|
||||
tablet_copy_axes (GdkWaylandTabletData *tablet)
|
||||
{
|
||||
return g_memdup (tablet->axes,
|
||||
sizeof (gdouble) * gdk_device_get_n_axes (tablet->stylus_device));
|
||||
sizeof (double) * gdk_device_get_n_axes (tablet->stylus_device));
|
||||
}
|
||||
|
||||
static void
|
||||
@ -3917,7 +3917,7 @@ tablet_pad_strip_handle_position (void *data,
|
||||
g_message ("tablet pad strip handle position, strip = %p position = %d",
|
||||
wp_tablet_pad_strip, position));
|
||||
|
||||
group->axis_tmp_info.value = (gdouble) position / 65535;
|
||||
group->axis_tmp_info.value = (double) position / 65535;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1445,11 +1445,11 @@ get_order (const char *s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static gdouble
|
||||
static double
|
||||
get_dpi_from_gsettings (GdkWaylandDisplay *display_wayland)
|
||||
{
|
||||
GSettings *settings;
|
||||
gdouble factor;
|
||||
double factor;
|
||||
|
||||
settings = g_hash_table_lookup (display_wayland->settings,
|
||||
"org.gnome.desktop.interface");
|
||||
|
@ -3105,8 +3105,8 @@ gdk_wayland_surface_get_root_coords (GdkSurface *surface,
|
||||
static gboolean
|
||||
gdk_wayland_surface_get_device_state (GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
gboolean return_val;
|
||||
|
@ -2477,7 +2477,7 @@ transmute_cf_dib_to_image_bmp (const guchar *data,
|
||||
{
|
||||
if (p[3] != 0)
|
||||
{
|
||||
gdouble inverse_alpha = 255./p[3];
|
||||
double inverse_alpha = 255./p[3];
|
||||
|
||||
p[0] = p[0] * inverse_alpha + 0.5;
|
||||
p[1] = p[1] * inverse_alpha + 0.5;
|
||||
|
@ -1003,8 +1003,8 @@ _gdk_win32_display_update_cursors (GdkWin32Display *display)
|
||||
|
||||
GdkPixbuf *
|
||||
gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon,
|
||||
gdouble *x_hot,
|
||||
gdouble *y_hot)
|
||||
double *x_hot,
|
||||
double *y_hot)
|
||||
{
|
||||
GdkPixbuf *pixbuf = NULL;
|
||||
ICONINFO ii;
|
||||
|
@ -37,7 +37,7 @@ _gdk_device_virtual_set_active (GdkDevice *device,
|
||||
GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
|
||||
int n_axes, i;
|
||||
GdkAxisUse use;
|
||||
gdouble min_value, max_value, resolution;
|
||||
double min_value, max_value, resolution;
|
||||
|
||||
if (virtual->active_device == new_active)
|
||||
return;
|
||||
@ -62,7 +62,7 @@ _gdk_device_virtual_set_active (GdkDevice *device,
|
||||
static void
|
||||
gdk_device_virtual_get_state (GdkDevice *device,
|
||||
GdkSurface *window,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
|
||||
@ -100,8 +100,8 @@ static void
|
||||
gdk_device_virtual_query_state (GdkDevice *device,
|
||||
GdkSurface *window,
|
||||
GdkSurface **child_window,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDeviceVirtual *virtual = GDK_DEVICE_VIRTUAL (device);
|
||||
|
@ -32,7 +32,7 @@ G_DEFINE_TYPE (GdkDeviceWin32, gdk_device_win32, GDK_TYPE_DEVICE)
|
||||
static void
|
||||
gdk_device_win32_get_state (GdkDevice *device,
|
||||
GdkSurface *window,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
double x, y;
|
||||
@ -166,8 +166,8 @@ screen_to_client (HWND hwnd, POINT screen_pt, POINT *client_pt)
|
||||
|
||||
GdkSurface *
|
||||
_gdk_device_win32_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *window = NULL;
|
||||
|
@ -45,8 +45,8 @@ struct _GdkDeviceWin32Class
|
||||
GType gdk_device_win32_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GdkSurface *_gdk_device_win32_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
G_END_DECLS
|
||||
|
@ -57,7 +57,7 @@ get_current_mask (void)
|
||||
static void
|
||||
gdk_device_wintab_get_state (GdkDevice *device,
|
||||
GdkSurface *window,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkDeviceWintab *device_wintab;
|
||||
@ -177,8 +177,8 @@ gdk_device_wintab_ungrab (GdkDevice *device,
|
||||
|
||||
static GdkSurface *
|
||||
gdk_device_wintab_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
return NULL;
|
||||
@ -187,14 +187,14 @@ gdk_device_wintab_surface_at_position (GdkDevice *device,
|
||||
void
|
||||
_gdk_device_wintab_translate_axes (GdkDeviceWintab *device_wintab,
|
||||
GdkSurface *window,
|
||||
gdouble *axes,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
double *axes,
|
||||
double *x,
|
||||
double *y)
|
||||
{
|
||||
GdkDevice *device;
|
||||
GdkSurface *impl_surface;
|
||||
int root_x, root_y;
|
||||
gdouble temp_x, temp_y;
|
||||
double temp_x, temp_y;
|
||||
int i;
|
||||
|
||||
device = GDK_DEVICE (device_wintab);
|
||||
|
@ -62,9 +62,9 @@ GType gdk_device_wintab_get_type (void) G_GNUC_CONST;
|
||||
|
||||
void _gdk_device_wintab_translate_axes (GdkDeviceWintab *device,
|
||||
GdkSurface *window,
|
||||
gdouble *axes,
|
||||
gdouble *x,
|
||||
gdouble *y);
|
||||
double *axes,
|
||||
double *x,
|
||||
double *y);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -1044,7 +1044,7 @@ gdk_input_other_event (GdkDisplay *display,
|
||||
if (event_type == GDK_BUTTON_PRESS ||
|
||||
event_type == GDK_BUTTON_RELEASE)
|
||||
{
|
||||
axes = g_new (gdouble, num_axes);
|
||||
axes = g_new (double, num_axes);
|
||||
|
||||
_gdk_device_wintab_translate_axes (source_device,
|
||||
window,
|
||||
@ -1080,7 +1080,7 @@ gdk_input_other_event (GdkDisplay *display,
|
||||
}
|
||||
else
|
||||
{
|
||||
axes = g_new (gdouble, num_axes);
|
||||
axes = g_new (double, num_axes);
|
||||
_gdk_device_wintab_translate_axes (source_device,
|
||||
window,
|
||||
axes,
|
||||
|
@ -2307,8 +2307,8 @@ gdk_win32_drag_drop_performed (GdkDrag *drag,
|
||||
|
||||
static void
|
||||
gdk_local_drag_update (GdkDrag *drag,
|
||||
gdouble x_root,
|
||||
gdouble y_root,
|
||||
double x_root,
|
||||
double y_root,
|
||||
DWORD grfKeyState,
|
||||
guint32 evtime)
|
||||
{
|
||||
|
@ -2755,9 +2755,9 @@ gdk_event_translate (MSG *msg,
|
||||
delta_x = delta_y = 0.0;
|
||||
|
||||
if (msg->message == WM_MOUSEWHEEL)
|
||||
delta_y = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (gdouble) WHEEL_DELTA;
|
||||
delta_y = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (double) WHEEL_DELTA;
|
||||
else if (msg->message == WM_MOUSEHWHEEL)
|
||||
delta_x = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (gdouble) WHEEL_DELTA;
|
||||
delta_x = (double) GET_WHEEL_DELTA_WPARAM (msg->wParam) / (double) WHEEL_DELTA;
|
||||
/* Positive delta scrolls up, not down,
|
||||
see API documentation for WM_MOUSEWHEEL message.
|
||||
*/
|
||||
@ -3291,7 +3291,7 @@ gdk_event_translate (MSG *msg,
|
||||
RECT decorated_rect;
|
||||
RECT undecorated_drag;
|
||||
int decoration_width, decoration_height;
|
||||
gdouble drag_aspect;
|
||||
double drag_aspect;
|
||||
int drag_width, drag_height, new_width, new_height;
|
||||
|
||||
GetClientRect (GDK_SURFACE_HWND (window), &rect);
|
||||
@ -3313,7 +3313,7 @@ gdk_event_translate (MSG *msg,
|
||||
drag_width = undecorated_drag.right - undecorated_drag.left;
|
||||
drag_height = undecorated_drag.bottom - undecorated_drag.top;
|
||||
|
||||
drag_aspect = (gdouble) drag_width / drag_height;
|
||||
drag_aspect = (double) drag_width / drag_height;
|
||||
|
||||
GDK_NOTE (EVENTS, g_print (" (ASPECT:%g--%g curr: %g)",
|
||||
impl->hints.min_aspect, impl->hints.max_aspect, drag_aspect));
|
||||
|
@ -249,8 +249,8 @@ gdk_win32_impl_frame_clock_after_paint (GdkFrameClock *clock,
|
||||
|
||||
if (SUCCEEDED (hr))
|
||||
{
|
||||
timings->refresh_interval = timing_info.qpcRefreshPeriod * (gdouble)G_USEC_PER_SEC / tick_frequency.QuadPart;
|
||||
timings->presentation_time = timing_info.qpcCompose * (gdouble)G_USEC_PER_SEC / tick_frequency.QuadPart;
|
||||
timings->refresh_interval = timing_info.qpcRefreshPeriod * (double)G_USEC_PER_SEC / tick_frequency.QuadPart;
|
||||
timings->presentation_time = timing_info.qpcCompose * (double)G_USEC_PER_SEC / tick_frequency.QuadPart;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1804,8 +1804,8 @@ gdk_win32_surface_get_root_coords (GdkSurface *window,
|
||||
static gboolean
|
||||
gdk_surface_win32_get_device_state (GdkSurface *window,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *child;
|
||||
@ -2249,9 +2249,9 @@ unsnap (GdkSurface *window,
|
||||
/* If the window fits into new work area without resizing it,
|
||||
* place it into new work area without resizing it.
|
||||
*/
|
||||
gdouble left, right, up, down, hratio, vratio;
|
||||
gdouble hscale, vscale;
|
||||
gdouble new_left, new_up;
|
||||
double left, right, up, down, hratio, vratio;
|
||||
double hscale, vscale;
|
||||
double new_left, new_up;
|
||||
|
||||
left = impl->snap_stash->x;
|
||||
right = 1.0 - (impl->snap_stash->x + impl->snap_stash->width);
|
||||
@ -2265,7 +2265,7 @@ unsnap (GdkSurface *window,
|
||||
hscale = hratio / (1.0 + hratio);
|
||||
}
|
||||
|
||||
new_left = (gdouble) (rect.width - impl->snap_stash_int->width) * hscale;
|
||||
new_left = (double) (rect.width - impl->snap_stash_int->width) * hscale;
|
||||
|
||||
vscale = 1.0;
|
||||
|
||||
@ -2275,7 +2275,7 @@ unsnap (GdkSurface *window,
|
||||
vscale = vratio / (1.0 + vratio);
|
||||
}
|
||||
|
||||
new_up = (gdouble) (rect.height - impl->snap_stash_int->height) * vscale;
|
||||
new_up = (double) (rect.height - impl->snap_stash_int->height) * vscale;
|
||||
|
||||
rect.x = round (rect.x + new_left);
|
||||
rect.y = round (rect.y + new_up);
|
||||
@ -2360,10 +2360,10 @@ stash_window (GdkSurface *window,
|
||||
wwidth = (hmonitor_info.rcWork.right - hmonitor_info.rcWork.left) / impl->surface_scale;
|
||||
wheight = (hmonitor_info.rcWork.bottom - hmonitor_info.rcWork.top) / impl->surface_scale;
|
||||
|
||||
impl->snap_stash->x = (gdouble) (x) / (gdouble) (wwidth);
|
||||
impl->snap_stash->y = (gdouble) (y) / (gdouble) (wheight);
|
||||
impl->snap_stash->width = (gdouble) width / (gdouble) (wwidth);
|
||||
impl->snap_stash->height = (gdouble) height / (gdouble) (wheight);
|
||||
impl->snap_stash->x = (double) (x) / (double) (wwidth);
|
||||
impl->snap_stash->y = (double) (y) / (double) (wheight);
|
||||
impl->snap_stash->width = (double) width / (double) (wwidth);
|
||||
impl->snap_stash->height = (double) height / (double) (wheight);
|
||||
|
||||
impl->snap_stash_int->x = x;
|
||||
impl->snap_stash_int->y = y;
|
||||
@ -2730,7 +2730,7 @@ static void
|
||||
adjust_indicator_rectangle (GdkRectangle *rect,
|
||||
gboolean inward)
|
||||
{
|
||||
gdouble inverter;
|
||||
double inverter;
|
||||
const int gap = AEROSNAP_INDICATOR_EDGE_GAP;
|
||||
#if defined(MORE_AEROSNAP_DEBUGGING)
|
||||
GdkRectangle cache = *rect;
|
||||
@ -2759,12 +2759,12 @@ rounded_rectangle (cairo_t *cr,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
gdouble radius,
|
||||
gdouble line_width,
|
||||
double radius,
|
||||
double line_width,
|
||||
GdkRGBA *fill,
|
||||
GdkRGBA *outline)
|
||||
{
|
||||
gdouble degrees = M_PI / 180.0;
|
||||
double degrees = M_PI / 180.0;
|
||||
|
||||
if (fill == NULL && outline == NULL)
|
||||
return;
|
||||
@ -2798,8 +2798,8 @@ rounded_rectangle (cairo_t *cr,
|
||||
}
|
||||
|
||||
/* Translates linear animation scale into some kind of curve */
|
||||
static gdouble
|
||||
curve (gdouble val)
|
||||
static double
|
||||
curve (double val)
|
||||
{
|
||||
/* TODO: try different curves. For now it's just linear */
|
||||
return val;
|
||||
@ -2814,10 +2814,10 @@ draw_indicator (GdkW32DragMoveResizeContext *context,
|
||||
GdkRGBA fill = {0, 0, 1.0, 0.8};
|
||||
GdkRectangle current_rect;
|
||||
gint64 current_time = g_get_monotonic_time ();
|
||||
gdouble animation_progress;
|
||||
double animation_progress;
|
||||
gboolean last_draw;
|
||||
gdouble line_width;
|
||||
gdouble corner_radius;
|
||||
double line_width;
|
||||
double corner_radius;
|
||||
gint64 animation_duration;
|
||||
GdkWin32Surface *impl = GDK_WIN32_SURFACE (context->window);
|
||||
|
||||
@ -2836,7 +2836,7 @@ draw_indicator (GdkW32DragMoveResizeContext *context,
|
||||
if (timestamp != 0)
|
||||
current_time = timestamp;
|
||||
|
||||
animation_progress = (gdouble) (current_time - context->indicator_start_time) / animation_duration;
|
||||
animation_progress = (double) (current_time - context->indicator_start_time) / animation_duration;
|
||||
|
||||
if (animation_progress > 1.0)
|
||||
animation_progress = 1.0;
|
||||
@ -2919,7 +2919,7 @@ redraw_indicator (gpointer user_data)
|
||||
HDC hdc;
|
||||
POINT source_point = { 0, 0 };
|
||||
gboolean last_draw;
|
||||
gdouble indicator_opacity;
|
||||
double indicator_opacity;
|
||||
GdkWin32Surface *impl;
|
||||
gboolean do_source_remove = FALSE;
|
||||
|
||||
|
@ -79,10 +79,10 @@ typedef enum _GdkWin32AeroSnapState GdkWin32AeroSnapState;
|
||||
|
||||
struct _GdkRectangleDouble
|
||||
{
|
||||
gdouble x;
|
||||
gdouble y;
|
||||
gdouble width;
|
||||
gdouble height;
|
||||
double x;
|
||||
double y;
|
||||
double width;
|
||||
double height;
|
||||
};
|
||||
|
||||
typedef struct _GdkRectangleDouble GdkRectangleDouble;
|
||||
@ -311,7 +311,7 @@ struct _GdkWin32Surface
|
||||
* we remember the opacity value here and apply it
|
||||
* during UpdateLayredWindow() call, for layered windows.
|
||||
*/
|
||||
gdouble layered_opacity;
|
||||
double layered_opacity;
|
||||
|
||||
HDC hdc;
|
||||
int hdc_count;
|
||||
|
@ -90,8 +90,8 @@ GdkSurface * gdk_win32_surface_lookup_for_display (GdkDisplay *display,
|
||||
/* For internal GTK use only */
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GdkPixbuf *gdk_win32_icon_to_pixbuf_libgtk_only (HICON hicon,
|
||||
gdouble *x_hot,
|
||||
gdouble *y_hot);
|
||||
double *x_hot,
|
||||
double *y_hot);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
HICON gdk_win32_pixbuf_to_hicon_libgtk_only (GdkPixbuf *pixbuf);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
|
@ -39,8 +39,8 @@ struct _ScrollValuator
|
||||
guint n_valuator : 4;
|
||||
guint direction : 4;
|
||||
guint last_value_valid : 1;
|
||||
gdouble last_value;
|
||||
gdouble increment;
|
||||
double last_value;
|
||||
double increment;
|
||||
};
|
||||
|
||||
struct _GdkX11DeviceXI2
|
||||
@ -49,7 +49,7 @@ struct _GdkX11DeviceXI2
|
||||
|
||||
int device_id;
|
||||
GArray *scroll_valuators;
|
||||
gdouble *last_axes;
|
||||
double *last_axes;
|
||||
};
|
||||
|
||||
struct _GdkX11DeviceXI2Class
|
||||
@ -72,7 +72,7 @@ static void gdk_x11_device_xi2_set_property (GObject *object,
|
||||
|
||||
static void gdk_x11_device_xi2_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask);
|
||||
static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
@ -80,8 +80,8 @@ static void gdk_x11_device_xi2_set_surface_cursor (GdkDevice *device,
|
||||
static void gdk_x11_device_xi2_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
static GdkGrabStatus gdk_x11_device_xi2_grab (GdkDevice *device,
|
||||
@ -95,8 +95,8 @@ static void gdk_x11_device_xi2_ungrab (GdkDevice *device,
|
||||
guint32 time_);
|
||||
|
||||
static GdkSurface * gdk_x11_device_xi2_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask);
|
||||
|
||||
|
||||
@ -190,7 +190,7 @@ gdk_x11_device_xi2_set_property (GObject *object,
|
||||
static void
|
||||
gdk_x11_device_xi2_get_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkX11DeviceXI2 *device_xi2 = GDK_X11_DEVICE_XI2 (device);
|
||||
@ -214,7 +214,7 @@ gdk_x11_device_xi2_get_state (GdkDevice *device,
|
||||
{
|
||||
XIAnyClassInfo *class_info = info->classes[i];
|
||||
GdkAxisUse use;
|
||||
gdouble value;
|
||||
double value;
|
||||
|
||||
if (class_info->type != XIValuatorClass)
|
||||
continue;
|
||||
@ -285,15 +285,15 @@ static void
|
||||
gdk_x11_device_xi2_query_state (GdkDevice *device,
|
||||
GdkSurface *surface,
|
||||
GdkSurface **child_surface,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkX11DeviceXI2 *device_xi2 = GDK_X11_DEVICE_XI2 (device);
|
||||
GdkDisplay *display;
|
||||
GdkX11Screen *default_screen;
|
||||
Window xroot_window, xchild_window, xwindow;
|
||||
gdouble xroot_x, xroot_y, xwin_x, xwin_y;
|
||||
double xroot_x, xroot_y, xwin_x, xwin_y;
|
||||
XIButtonState button_state;
|
||||
XIModifierState mod_state;
|
||||
XIGroupState group_state;
|
||||
@ -447,8 +447,8 @@ gdk_x11_device_xi2_ungrab (GdkDevice *device,
|
||||
|
||||
static GdkSurface *
|
||||
gdk_x11_device_xi2_surface_at_position (GdkDevice *device,
|
||||
gdouble *win_x,
|
||||
gdouble *win_y,
|
||||
double *win_x,
|
||||
double *win_y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkX11Surface *impl;
|
||||
@ -458,7 +458,7 @@ gdk_x11_device_xi2_surface_at_position (GdkDevice *device,
|
||||
Display *xdisplay;
|
||||
GdkSurface *surface;
|
||||
Window xwindow, root, child, last = None;
|
||||
gdouble xroot_x, xroot_y, xwin_x, xwin_y;
|
||||
double xroot_x, xroot_y, xwin_x, xwin_y;
|
||||
XIButtonState button_state = { 0 };
|
||||
XIModifierState mod_state;
|
||||
XIGroupState group_state;
|
||||
@ -744,7 +744,7 @@ void
|
||||
_gdk_x11_device_xi2_add_scroll_valuator (GdkX11DeviceXI2 *device,
|
||||
guint n_valuator,
|
||||
GdkScrollDirection direction,
|
||||
gdouble increment)
|
||||
double increment)
|
||||
{
|
||||
ScrollValuator scroll;
|
||||
|
||||
@ -762,9 +762,9 @@ _gdk_x11_device_xi2_add_scroll_valuator (GdkX11DeviceXI2 *device,
|
||||
gboolean
|
||||
_gdk_x11_device_xi2_get_scroll_delta (GdkX11DeviceXI2 *device,
|
||||
guint n_valuator,
|
||||
gdouble valuator_value,
|
||||
double valuator_value,
|
||||
GdkScrollDirection *direction_ret,
|
||||
gdouble *delta_ret)
|
||||
double *delta_ret)
|
||||
{
|
||||
guint i;
|
||||
|
||||
@ -835,7 +835,7 @@ _gdk_x11_device_xi2_get_id (GdkX11DeviceXI2 *device)
|
||||
return device->device_id;
|
||||
}
|
||||
|
||||
gdouble
|
||||
double
|
||||
gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
|
||||
int n_axis)
|
||||
{
|
||||
@ -850,13 +850,13 @@ gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
|
||||
|
||||
void
|
||||
gdk_x11_device_xi2_store_axes (GdkX11DeviceXI2 *device,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
int n_axes)
|
||||
{
|
||||
g_free (device->last_axes);
|
||||
|
||||
if (axes && n_axes)
|
||||
device->last_axes = g_memdup (axes, sizeof (gdouble) * n_axes);
|
||||
device->last_axes = g_memdup (axes, sizeof (double) * n_axes);
|
||||
else
|
||||
device->last_axes = NULL;
|
||||
}
|
||||
|
@ -204,9 +204,9 @@ static void
|
||||
translate_valuator_class (GdkDisplay *display,
|
||||
GdkDevice *device,
|
||||
Atom valuator_label,
|
||||
gdouble min,
|
||||
gdouble max,
|
||||
gdouble resolution)
|
||||
double min,
|
||||
double max,
|
||||
double resolution)
|
||||
{
|
||||
static gboolean initialized = FALSE;
|
||||
static Atom label_atoms [GDK_AXIS_LAST] = { 0 };
|
||||
@ -1187,25 +1187,25 @@ set_user_time (GdkEvent *event)
|
||||
gdk_x11_surface_set_user_time (surface, time);
|
||||
}
|
||||
|
||||
static gdouble *
|
||||
static double *
|
||||
translate_axes (GdkDevice *device,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GdkSurface *surface,
|
||||
XIValuatorState *valuators)
|
||||
{
|
||||
guint n_axes, i;
|
||||
gdouble *axes;
|
||||
gdouble *vals;
|
||||
double *axes;
|
||||
double *vals;
|
||||
|
||||
n_axes = gdk_device_get_n_axes (device);
|
||||
axes = g_new0 (gdouble, n_axes);
|
||||
axes = g_new0 (double, n_axes);
|
||||
vals = valuators->values;
|
||||
|
||||
for (i = 0; i < MIN (valuators->mask_len * 8, n_axes); i++)
|
||||
{
|
||||
GdkAxisUse use;
|
||||
gdouble val;
|
||||
double val;
|
||||
|
||||
if (!XIMaskIsSet (valuators->mask, i))
|
||||
{
|
||||
@ -1313,13 +1313,13 @@ get_event_surface (GdkEventTranslator *translator,
|
||||
static gboolean
|
||||
scroll_valuators_changed (GdkX11DeviceXI2 *device,
|
||||
XIValuatorState *valuators,
|
||||
gdouble *dx,
|
||||
gdouble *dy)
|
||||
double *dx,
|
||||
double *dy)
|
||||
{
|
||||
gboolean has_scroll_valuators = FALSE;
|
||||
GdkScrollDirection direction;
|
||||
guint n_axes, i, n_val;
|
||||
gdouble *vals;
|
||||
double *vals;
|
||||
|
||||
n_axes = gdk_device_get_n_axes (GDK_DEVICE (device));
|
||||
vals = valuators->values;
|
||||
@ -1328,7 +1328,7 @@ scroll_valuators_changed (GdkX11DeviceXI2 *device,
|
||||
|
||||
for (i = 0; i < MIN (valuators->mask_len * 8, n_axes); i++)
|
||||
{
|
||||
gdouble delta;
|
||||
double delta;
|
||||
|
||||
if (!XIMaskIsSet (valuators->mask, i))
|
||||
continue;
|
||||
@ -1704,7 +1704,7 @@ gdk_x11_device_manager_xi2_translate_event (GdkEventTranslator *translator,
|
||||
case XI_Motion:
|
||||
{
|
||||
XIDeviceEvent *xev = (XIDeviceEvent *) ev;
|
||||
gdouble delta_x, delta_y;
|
||||
double delta_x, delta_y;
|
||||
|
||||
double x, y;
|
||||
double *axes;
|
||||
|
@ -2163,8 +2163,8 @@ gdk_drag_get_current_actions (GdkModifierType state,
|
||||
|
||||
static void
|
||||
gdk_drag_update (GdkDrag *drag,
|
||||
gdouble x_root,
|
||||
gdouble y_root,
|
||||
double x_root,
|
||||
double y_root,
|
||||
GdkModifierType mods,
|
||||
guint32 evtime)
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ create_synth_crossing_event (GdkEventType evtype,
|
||||
GdkEvent *real_event)
|
||||
{
|
||||
GdkEvent *event;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
g_assert (evtype == GDK_ENTER_NOTIFY || evtype == GDK_LEAVE_NOTIFY);
|
||||
|
||||
|
@ -152,19 +152,19 @@ GdkDevice * _gdk_x11_device_manager_xi2_lookup (GdkX11DeviceManagerXI2 *devic
|
||||
void _gdk_x11_device_xi2_add_scroll_valuator (GdkX11DeviceXI2 *device,
|
||||
guint n_valuator,
|
||||
GdkScrollDirection direction,
|
||||
gdouble increment);
|
||||
double increment);
|
||||
gboolean _gdk_x11_device_xi2_get_scroll_delta (GdkX11DeviceXI2 *device,
|
||||
guint n_valuator,
|
||||
gdouble valuator_value,
|
||||
double valuator_value,
|
||||
GdkScrollDirection *direction_ret,
|
||||
gdouble *delta_ret);
|
||||
double *delta_ret);
|
||||
void _gdk_device_xi2_reset_scroll_valuators (GdkX11DeviceXI2 *device);
|
||||
|
||||
gdouble gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
|
||||
double gdk_x11_device_xi2_get_last_axis_value (GdkX11DeviceXI2 *device,
|
||||
int n_axis);
|
||||
|
||||
void gdk_x11_device_xi2_store_axes (GdkX11DeviceXI2 *device,
|
||||
gdouble *axes,
|
||||
double *axes,
|
||||
int n_axes);
|
||||
|
||||
gboolean _gdk_x11_display_supports_cursor_alpha (GdkDisplay *display);
|
||||
|
@ -2292,8 +2292,8 @@ gdk_surface_get_geometry_hints (GdkSurface *surface,
|
||||
{
|
||||
*geom_mask |= GDK_HINT_ASPECT;
|
||||
|
||||
geometry->min_aspect = (gdouble) size_hints->min_aspect.x / (gdouble) size_hints->min_aspect.y;
|
||||
geometry->max_aspect = (gdouble) size_hints->max_aspect.x / (gdouble) size_hints->max_aspect.y;
|
||||
geometry->min_aspect = (double) size_hints->min_aspect.x / (double) size_hints->min_aspect.y;
|
||||
geometry->max_aspect = (double) size_hints->max_aspect.x / (double) size_hints->max_aspect.y;
|
||||
}
|
||||
|
||||
if (size_hints->flags & PWinGravity)
|
||||
@ -2711,8 +2711,8 @@ gdk_x11_surface_get_frame_extents (GdkSurface *surface,
|
||||
static gboolean
|
||||
gdk_x11_surface_get_device_state (GdkSurface *surface,
|
||||
GdkDevice *device,
|
||||
gdouble *x,
|
||||
gdouble *y,
|
||||
double *x,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *child;
|
||||
@ -3841,8 +3841,8 @@ get_move_resize_data (GdkDisplay *display,
|
||||
|
||||
static void
|
||||
check_maximize (MoveResizeData *mv_resize,
|
||||
gdouble x_root,
|
||||
gdouble y_root)
|
||||
double x_root,
|
||||
double y_root)
|
||||
{
|
||||
GdkSurfaceState state;
|
||||
int y;
|
||||
@ -3863,8 +3863,8 @@ check_maximize (MoveResizeData *mv_resize,
|
||||
|
||||
static void
|
||||
check_unmaximize (MoveResizeData *mv_resize,
|
||||
gdouble x_root,
|
||||
gdouble y_root)
|
||||
double x_root,
|
||||
double y_root)
|
||||
{
|
||||
GdkSurfaceState state;
|
||||
int dx, dy;
|
||||
|
@ -109,7 +109,7 @@ get_boolean_default (GdkX11Screen *x11_screen,
|
||||
static gboolean
|
||||
get_double_default (GdkX11Screen *x11_screen,
|
||||
const char *option,
|
||||
gdouble *value)
|
||||
double *value)
|
||||
{
|
||||
Display *dpy = GDK_SCREEN_XDISPLAY (x11_screen);
|
||||
char *v, *e;
|
||||
|
@ -306,8 +306,8 @@ gsk_cairo_blur_start_drawing (cairo_t *cr,
|
||||
double clip_x1, clip_x2, clip_y1, clip_y2, clip_width, clip_height;
|
||||
cairo_surface_t *surface;
|
||||
cairo_t *blur_cr;
|
||||
gdouble clip_radius;
|
||||
gdouble x_scale, y_scale;
|
||||
double clip_radius;
|
||||
double x_scale, y_scale;
|
||||
gboolean blur_x = (blur_flags & GSK_BLUR_X) != 0;
|
||||
gboolean blur_y = (blur_flags & GSK_BLUR_Y) != 0;
|
||||
|
||||
@ -377,7 +377,7 @@ gsk_cairo_blur_finish_drawing (cairo_t *cr,
|
||||
{
|
||||
cairo_t *original_cr;
|
||||
cairo_surface_t *surface;
|
||||
gdouble x_scale;
|
||||
double x_scale;
|
||||
|
||||
if (!needs_blur (radius, blur_flags))
|
||||
return cr;
|
||||
|
@ -985,7 +985,7 @@ draw_shadow_side (cairo_t *cr,
|
||||
cairo_rectangle_int_t *drawn_rect)
|
||||
{
|
||||
GskBlurFlags blur_flags = GSK_BLUR_REPEAT;
|
||||
gdouble clip_radius;
|
||||
double clip_radius;
|
||||
int x1, x2, y1, y2;
|
||||
|
||||
clip_radius = gsk_cairo_blur_compute_pixels (radius);
|
||||
|
@ -124,7 +124,7 @@ gtk_level_bar_accessible_set_current_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_level_bar_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
@ -153,7 +153,7 @@ gtk_level_bar_accessible_get_range (AtkValue *obj)
|
||||
|
||||
static void
|
||||
gtk_level_bar_accessible_set_value (AtkValue *obj,
|
||||
const gdouble value)
|
||||
const double value)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkLevelBar *level_bar;
|
||||
|
@ -143,7 +143,7 @@ gtk_paned_accessible_set_current_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_paned_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
@ -175,7 +175,7 @@ gtk_paned_accessible_get_range (AtkValue *obj)
|
||||
|
||||
static void
|
||||
gtk_paned_accessible_set_value (AtkValue *obj,
|
||||
const gdouble value)
|
||||
const double value)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkPaned *paned;
|
||||
|
@ -78,7 +78,7 @@ gtk_progress_bar_accessible_get_minimum_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_progress_bar_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
@ -152,7 +152,7 @@ gtk_range_accessible_get_maximum_value (AtkValue *obj,
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble max;
|
||||
double max;
|
||||
|
||||
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
|
||||
@ -223,7 +223,7 @@ gtk_range_accessible_set_current_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_range_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
@ -243,7 +243,7 @@ gtk_range_accessible_get_range (AtkValue *obj)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble min, max;
|
||||
double min, max;
|
||||
|
||||
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (obj));
|
||||
adjustment = gtk_range_get_adjustment (GTK_RANGE (widget));
|
||||
@ -262,7 +262,7 @@ gtk_range_accessible_get_range (AtkValue *obj)
|
||||
|
||||
static void
|
||||
gtk_range_accessible_set_value (AtkValue *obj,
|
||||
const gdouble value)
|
||||
const double value)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkAdjustment *adjustment;
|
||||
@ -275,7 +275,7 @@ gtk_range_accessible_set_value (AtkValue *obj,
|
||||
gtk_adjustment_set_value (adjustment, value);
|
||||
}
|
||||
|
||||
static gdouble
|
||||
static double
|
||||
gtk_range_accessible_get_increment (AtkValue *obj)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
@ -300,7 +300,7 @@ gtk_scale_button_accessible_set_current_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_scale_button_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
@ -333,7 +333,7 @@ gtk_scale_button_accessible_get_range (AtkValue *obj)
|
||||
|
||||
static void
|
||||
gtk_scale_button_accessible_set_value (AtkValue *obj,
|
||||
const gdouble value)
|
||||
const double value)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkAdjustment *adjustment;
|
||||
@ -346,7 +346,7 @@ gtk_scale_button_accessible_set_value (AtkValue *obj,
|
||||
gtk_adjustment_set_value (adjustment, value);
|
||||
}
|
||||
|
||||
static gdouble
|
||||
static double
|
||||
gtk_scale_button_accessible_get_increment (AtkValue *obj)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
@ -201,7 +201,7 @@ gtk_spin_button_accessible_set_current_value (AtkValue *obj,
|
||||
|
||||
static void
|
||||
gtk_spin_button_accessible_get_value_and_text (AtkValue *obj,
|
||||
gdouble *value,
|
||||
double *value,
|
||||
char **text)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
@ -234,7 +234,7 @@ gtk_spin_button_accessible_get_range (AtkValue *obj)
|
||||
|
||||
static void
|
||||
gtk_spin_button_accessible_set_value (AtkValue *obj,
|
||||
const gdouble value)
|
||||
const double value)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
GtkAdjustment *adjustment;
|
||||
@ -247,7 +247,7 @@ gtk_spin_button_accessible_set_value (AtkValue *obj,
|
||||
gtk_adjustment_set_value (adjustment, value);
|
||||
}
|
||||
|
||||
static gdouble
|
||||
static double
|
||||
gtk_spin_button_accessible_get_increment (AtkValue *obj)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
@ -377,7 +377,7 @@ create_pango_layout (GtkTextCellAccessible *text)
|
||||
gboolean foreground_set, strikethrough_set, strikethrough;
|
||||
gboolean scale_set, underline_set, rise_set;
|
||||
char *renderer_text;
|
||||
gdouble scale;
|
||||
double scale;
|
||||
int rise;
|
||||
GtkRendererCellAccessible *gail_renderer;
|
||||
GtkCellRendererText *gtk_renderer;
|
||||
|
@ -557,7 +557,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text,
|
||||
GtkTextIter iter;
|
||||
AtkAttributeSet *attrib_set = NULL;
|
||||
GSList *tags, *temp_tags;
|
||||
gdouble scale = 1;
|
||||
double scale = 1;
|
||||
gboolean val_set = FALSE;
|
||||
|
||||
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (text));
|
||||
@ -788,7 +788,7 @@ gtk_text_view_accessible_get_run_attributes (AtkText *text,
|
||||
g_object_get (tag, "scale-set", &scale_set, NULL);
|
||||
if (scale_set)
|
||||
{
|
||||
gdouble font_scale;
|
||||
double font_scale;
|
||||
g_object_get (tag, "scale", &font_scale, NULL);
|
||||
val_set = TRUE;
|
||||
scale *= font_scale;
|
||||
|
@ -71,12 +71,12 @@ find_name (const char *name)
|
||||
|
||||
static gboolean
|
||||
parse_media_size (const char *size,
|
||||
gdouble *width_mm,
|
||||
gdouble *height_mm)
|
||||
double *width_mm,
|
||||
double *height_mm)
|
||||
{
|
||||
const char *p;
|
||||
char *e;
|
||||
gdouble short_dim, long_dim;
|
||||
double short_dim, long_dim;
|
||||
|
||||
p = size;
|
||||
|
||||
@ -114,7 +114,7 @@ int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
int i, j, offset;
|
||||
gdouble width, height;
|
||||
double width, height;
|
||||
|
||||
names = (NameInfo *) malloc (sizeof (NameInfo) * (4 + n_infos + 2 * n_extra));
|
||||
n_names = 0;
|
||||
|
@ -71,7 +71,7 @@ g_settings_set_mapping_int (const GValue *value,
|
||||
variant = g_variant_new_handle ((guint) l);
|
||||
}
|
||||
else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
|
||||
variant = g_variant_new_double ((gdouble) l);
|
||||
variant = g_variant_new_double ((double) l);
|
||||
|
||||
return variant;
|
||||
}
|
||||
@ -81,7 +81,7 @@ g_settings_set_mapping_float (const GValue *value,
|
||||
const GVariantType *expected_type)
|
||||
{
|
||||
GVariant *variant = NULL;
|
||||
gdouble d;
|
||||
double d;
|
||||
gint64 l;
|
||||
|
||||
if (G_VALUE_HOLDS_DOUBLE (value))
|
||||
@ -126,7 +126,7 @@ g_settings_set_mapping_float (const GValue *value,
|
||||
variant = g_variant_new_handle ((guint) l);
|
||||
}
|
||||
else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
|
||||
variant = g_variant_new_double ((gdouble) d);
|
||||
variant = g_variant_new_double ((double) d);
|
||||
|
||||
return variant;
|
||||
}
|
||||
@ -180,7 +180,7 @@ g_settings_set_mapping_unsigned_int (const GValue *value,
|
||||
variant = g_variant_new_handle ((guint) u);
|
||||
}
|
||||
else if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_DOUBLE))
|
||||
variant = g_variant_new_double ((gdouble) u);
|
||||
variant = g_variant_new_double ((double) u);
|
||||
|
||||
return variant;
|
||||
}
|
||||
@ -237,7 +237,7 @@ g_settings_get_mapping_float (GValue *value,
|
||||
GVariant *variant)
|
||||
{
|
||||
const GVariantType *type;
|
||||
gdouble d;
|
||||
double d;
|
||||
gint64 l;
|
||||
|
||||
type = g_variant_get_type (variant);
|
||||
|
@ -140,7 +140,7 @@ gsk_pango_renderer_draw_trapezoid (PangoRenderer *renderer,
|
||||
{
|
||||
GskPangoRenderer *crenderer = (GskPangoRenderer *) (renderer);
|
||||
cairo_t *cr;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
cr = gtk_snapshot_append_cairo (crenderer->snapshot, &crenderer->bounds);
|
||||
|
||||
|
@ -46,15 +46,15 @@
|
||||
|
||||
|
||||
struct _GtkAdjustmentPrivate {
|
||||
gdouble lower;
|
||||
gdouble upper;
|
||||
gdouble value;
|
||||
gdouble step_increment;
|
||||
gdouble page_increment;
|
||||
gdouble page_size;
|
||||
double lower;
|
||||
double upper;
|
||||
double value;
|
||||
double step_increment;
|
||||
double page_increment;
|
||||
double page_size;
|
||||
|
||||
gdouble source;
|
||||
gdouble target;
|
||||
double source;
|
||||
double target;
|
||||
|
||||
guint duration;
|
||||
gint64 start_time;
|
||||
@ -294,7 +294,7 @@ gtk_adjustment_set_property (GObject *object,
|
||||
GParamSpec *pspec)
|
||||
{
|
||||
GtkAdjustment *adjustment = GTK_ADJUSTMENT (object);
|
||||
gdouble double_value = g_value_get_double (value);
|
||||
double double_value = g_value_get_double (value);
|
||||
|
||||
switch (prop_id)
|
||||
{
|
||||
@ -373,12 +373,12 @@ gtk_adjustment_dispatch_properties_changed (GObject *object,
|
||||
* Returns: a new #GtkAdjustment
|
||||
*/
|
||||
GtkAdjustment *
|
||||
gtk_adjustment_new (gdouble value,
|
||||
gdouble lower,
|
||||
gdouble upper,
|
||||
gdouble step_increment,
|
||||
gdouble page_increment,
|
||||
gdouble page_size)
|
||||
gtk_adjustment_new (double value,
|
||||
double lower,
|
||||
double upper,
|
||||
double step_increment,
|
||||
double page_increment,
|
||||
double page_size)
|
||||
{
|
||||
return g_object_new (GTK_TYPE_ADJUSTMENT,
|
||||
"lower", lower,
|
||||
@ -399,7 +399,7 @@ gtk_adjustment_new (gdouble value,
|
||||
*
|
||||
* Returns: The current value of the adjustment
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_value (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -408,7 +408,7 @@ gtk_adjustment_get_value (GtkAdjustment *adjustment)
|
||||
return priv->value;
|
||||
}
|
||||
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_target_value (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -423,7 +423,7 @@ gtk_adjustment_get_target_value (GtkAdjustment *adjustment)
|
||||
|
||||
static void
|
||||
adjustment_set_value (GtkAdjustment *adjustment,
|
||||
gdouble value)
|
||||
double value)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -466,10 +466,10 @@ gtk_adjustment_end_updating (GtkAdjustment *adjustment)
|
||||
/* From clutter-easing.c, based on Robert Penner's
|
||||
* infamous easing equations, MIT license.
|
||||
*/
|
||||
static gdouble
|
||||
ease_out_cubic (gdouble t)
|
||||
static double
|
||||
ease_out_cubic (double t)
|
||||
{
|
||||
gdouble p = t - 1;
|
||||
double p = t - 1;
|
||||
|
||||
return p * p * p + 1;
|
||||
}
|
||||
@ -485,9 +485,9 @@ gtk_adjustment_on_frame_clock_update (GdkFrameClock *clock,
|
||||
|
||||
if (now < priv->end_time)
|
||||
{
|
||||
gdouble t;
|
||||
double t;
|
||||
|
||||
t = (now - priv->start_time) / (gdouble) (priv->end_time - priv->start_time);
|
||||
t = (now - priv->start_time) / (double) (priv->end_time - priv->start_time);
|
||||
t = ease_out_cubic (t);
|
||||
adjustment_set_value (adjustment, priv->source + t * (priv->target - priv->source));
|
||||
}
|
||||
@ -500,7 +500,7 @@ gtk_adjustment_on_frame_clock_update (GdkFrameClock *clock,
|
||||
|
||||
static void
|
||||
gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
|
||||
gdouble value,
|
||||
double value,
|
||||
gboolean animate)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -543,7 +543,7 @@ gtk_adjustment_set_value_internal (GtkAdjustment *adjustment,
|
||||
*/
|
||||
void
|
||||
gtk_adjustment_set_value (GtkAdjustment *adjustment,
|
||||
gdouble value)
|
||||
double value)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
||||
|
||||
@ -552,7 +552,7 @@ gtk_adjustment_set_value (GtkAdjustment *adjustment,
|
||||
|
||||
void
|
||||
gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
|
||||
gdouble value)
|
||||
double value)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
||||
|
||||
@ -567,7 +567,7 @@ gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: The current minimum value of the adjustment
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_lower (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -598,7 +598,7 @@ gtk_adjustment_get_lower (GtkAdjustment *adjustment)
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_set_lower (GtkAdjustment *adjustment,
|
||||
gdouble lower)
|
||||
double lower)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -619,7 +619,7 @@ gtk_adjustment_set_lower (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: The current maximum value of the adjustment
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_upper (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -645,7 +645,7 @@ gtk_adjustment_get_upper (GtkAdjustment *adjustment)
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_set_upper (GtkAdjustment *adjustment,
|
||||
gdouble upper)
|
||||
double upper)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -666,7 +666,7 @@ gtk_adjustment_set_upper (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: The current step increment of the adjustment.
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_step_increment (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -689,7 +689,7 @@ gtk_adjustment_get_step_increment (GtkAdjustment *adjustment)
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
|
||||
gdouble step_increment)
|
||||
double step_increment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -710,7 +710,7 @@ gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: The current page increment of the adjustment
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_page_increment (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -733,7 +733,7 @@ gtk_adjustment_get_page_increment (GtkAdjustment *adjustment)
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
|
||||
gdouble page_increment)
|
||||
double page_increment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -754,7 +754,7 @@ gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: The current page size of the adjustment
|
||||
**/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_page_size (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
@ -777,7 +777,7 @@ gtk_adjustment_get_page_size (GtkAdjustment *adjustment)
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
|
||||
gdouble page_size)
|
||||
double page_size)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
|
||||
@ -809,12 +809,12 @@ gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
|
||||
**/
|
||||
void
|
||||
gtk_adjustment_configure (GtkAdjustment *adjustment,
|
||||
gdouble value,
|
||||
gdouble lower,
|
||||
gdouble upper,
|
||||
gdouble step_increment,
|
||||
gdouble page_increment,
|
||||
gdouble page_size)
|
||||
double value,
|
||||
double lower,
|
||||
double upper,
|
||||
double step_increment,
|
||||
double page_increment,
|
||||
double page_size)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
gboolean value_changed = FALSE;
|
||||
@ -867,8 +867,8 @@ gtk_adjustment_configure (GtkAdjustment *adjustment,
|
||||
*/
|
||||
void
|
||||
gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
|
||||
gdouble lower,
|
||||
gdouble upper)
|
||||
double lower,
|
||||
double upper)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
gboolean need_emission;
|
||||
@ -903,11 +903,11 @@ gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
|
||||
*
|
||||
* Returns: the minimum increment of @adjustment
|
||||
*/
|
||||
gdouble
|
||||
double
|
||||
gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment)
|
||||
{
|
||||
GtkAdjustmentPrivate *priv = gtk_adjustment_get_instance_private (adjustment);
|
||||
gdouble minimum_increment;
|
||||
double minimum_increment;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_ADJUSTMENT (adjustment), 0);
|
||||
|
||||
|
@ -73,59 +73,59 @@ struct _GtkAdjustmentClass
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_adjustment_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkAdjustment* gtk_adjustment_new (gdouble value,
|
||||
gdouble lower,
|
||||
gdouble upper,
|
||||
gdouble step_increment,
|
||||
gdouble page_increment,
|
||||
gdouble page_size);
|
||||
GtkAdjustment* gtk_adjustment_new (double value,
|
||||
double lower,
|
||||
double upper,
|
||||
double step_increment,
|
||||
double page_increment,
|
||||
double page_size);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
|
||||
gdouble lower,
|
||||
gdouble upper);
|
||||
double lower,
|
||||
double upper);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_value (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_value (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_value (GtkAdjustment *adjustment,
|
||||
gdouble value);
|
||||
double value);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_lower (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_lower (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_lower (GtkAdjustment *adjustment,
|
||||
gdouble lower);
|
||||
double lower);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_upper (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_upper (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_upper (GtkAdjustment *adjustment,
|
||||
gdouble upper);
|
||||
double upper);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_step_increment (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_step_increment (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_step_increment (GtkAdjustment *adjustment,
|
||||
gdouble step_increment);
|
||||
double step_increment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_page_increment (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_page_increment (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_page_increment (GtkAdjustment *adjustment,
|
||||
gdouble page_increment);
|
||||
double page_increment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_page_size (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_page_size (GtkAdjustment *adjustment);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_set_page_size (GtkAdjustment *adjustment,
|
||||
gdouble page_size);
|
||||
double page_size);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_adjustment_configure (GtkAdjustment *adjustment,
|
||||
gdouble value,
|
||||
gdouble lower,
|
||||
gdouble upper,
|
||||
gdouble step_increment,
|
||||
gdouble page_increment,
|
||||
gdouble page_size);
|
||||
double value,
|
||||
double lower,
|
||||
double upper,
|
||||
double step_increment,
|
||||
double page_increment,
|
||||
double page_size);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment);
|
||||
double gtk_adjustment_get_minimum_increment (GtkAdjustment *adjustment);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -29,8 +29,8 @@ void gtk_adjustment_enable_animation (GtkAdjustment *adjustment,
|
||||
guint duration);
|
||||
guint gtk_adjustment_get_animation_duration (GtkAdjustment *adjustment);
|
||||
void gtk_adjustment_animate_to_value (GtkAdjustment *adjustment,
|
||||
gdouble value);
|
||||
gdouble gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
|
||||
double value);
|
||||
double gtk_adjustment_get_target_value (GtkAdjustment *adjustment);
|
||||
|
||||
gboolean gtk_adjustment_is_animating (GtkAdjustment *adjustment);
|
||||
|
||||
|
@ -2132,7 +2132,7 @@ gtk_builder_value_from_string_type (GtkBuilder *builder,
|
||||
case G_TYPE_FLOAT:
|
||||
case G_TYPE_DOUBLE:
|
||||
{
|
||||
gdouble d;
|
||||
double d;
|
||||
char *endptr = NULL;
|
||||
errno = 0;
|
||||
d = g_ascii_strtod (string, &endptr);
|
||||
|
@ -310,8 +310,8 @@ gtk_button_class_init (GtkButtonClass *klass)
|
||||
static void
|
||||
click_pressed_cb (GtkGestureClick *gesture,
|
||||
guint n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkButton *button = GTK_BUTTON (widget);
|
||||
@ -353,8 +353,8 @@ touch_release_in_button (GtkGestureClick *gesture,
|
||||
static void
|
||||
click_released_cb (GtkGestureClick *gesture,
|
||||
guint n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkButton *button = GTK_BUTTON (widget);
|
||||
|
@ -270,8 +270,8 @@ static void calendar_invalidate_day_num (GtkCalendar *widget,
|
||||
int day);
|
||||
|
||||
static gboolean gtk_calendar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
|
||||
gdouble dx,
|
||||
gdouble dy,
|
||||
double dx,
|
||||
double dy,
|
||||
GtkWidget *widget);
|
||||
|
||||
static void calendar_set_month_prev (GtkCalendar *calendar);
|
||||
@ -1139,8 +1139,8 @@ gtk_calendar_button_press (GtkGestureClick *gesture,
|
||||
|
||||
static gboolean
|
||||
gtk_calendar_scroll_controller_scroll (GtkEventControllerScroll *scroll,
|
||||
gdouble dx,
|
||||
gdouble dy,
|
||||
double dx,
|
||||
double dy,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkCalendar *calendar = GTK_CALENDAR (widget);
|
||||
|
@ -68,7 +68,7 @@ struct _GtkCellRendererSpinPrivate
|
||||
{
|
||||
GtkWidget *spin;
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble climb_rate;
|
||||
double climb_rate;
|
||||
guint digits;
|
||||
};
|
||||
|
||||
|
@ -288,7 +288,7 @@ gtk_cell_renderer_spinner_get_size (GtkCellRenderer *cellr,
|
||||
{
|
||||
GtkCellRendererSpinner *cell = GTK_CELL_RENDERER_SPINNER (cellr);
|
||||
GtkCellRendererSpinnerPrivate *priv = gtk_cell_renderer_spinner_get_instance_private (cell);
|
||||
gdouble align;
|
||||
double align;
|
||||
int w, h;
|
||||
int xpad, ypad;
|
||||
float xalign, yalign;
|
||||
@ -346,9 +346,9 @@ gtk_paint_spinner (GtkStyleContext *context,
|
||||
{
|
||||
GdkRGBA color;
|
||||
guint num_steps;
|
||||
gdouble dx, dy;
|
||||
gdouble radius;
|
||||
gdouble half;
|
||||
double dx, dy;
|
||||
double radius;
|
||||
double half;
|
||||
int i;
|
||||
guint real_step;
|
||||
|
||||
@ -375,7 +375,7 @@ gtk_paint_spinner (GtkStyleContext *context,
|
||||
int inset = 0.7 * radius;
|
||||
|
||||
/* transparency is a function of time and initial value */
|
||||
gdouble t = (gdouble) ((i + num_steps - real_step)
|
||||
double t = (double) ((i + num_steps - real_step)
|
||||
% num_steps) / num_steps;
|
||||
|
||||
cairo_save (cr);
|
||||
|
@ -181,7 +181,7 @@ struct _GtkCellRendererTextPrivate
|
||||
char *text;
|
||||
char *placeholder_text;
|
||||
|
||||
gdouble font_scale;
|
||||
double font_scale;
|
||||
|
||||
int rise;
|
||||
int fixed_height_rows;
|
||||
|
@ -266,7 +266,7 @@ update_from_editor (GtkColorEditor *editor,
|
||||
/* UI construction {{{1 */
|
||||
|
||||
static guint
|
||||
scale_round (gdouble value, gdouble scale)
|
||||
scale_round (double value, double scale)
|
||||
{
|
||||
value = floor (value * scale + 0.5);
|
||||
value = MAX (value, 0);
|
||||
|
@ -95,7 +95,7 @@ G_DEFINE_TYPE_WITH_CODE (GtkColorEditor, gtk_color_editor, GTK_TYPE_BOX,
|
||||
gtk_color_editor_iface_init))
|
||||
|
||||
static guint
|
||||
scale_round (gdouble value, gdouble scale)
|
||||
scale_round (double value, double scale)
|
||||
{
|
||||
value = floor (value * scale + 0.5);
|
||||
value = MAX (value, 0);
|
||||
@ -161,7 +161,7 @@ static void
|
||||
hsv_changed (GtkColorEditor *editor)
|
||||
{
|
||||
GdkRGBA color;
|
||||
gdouble h, s, v, a;
|
||||
double h, s, v, a;
|
||||
|
||||
h = gtk_adjustment_get_value (editor->h_adj);
|
||||
s = gtk_adjustment_get_value (editor->s_adj);
|
||||
@ -333,7 +333,7 @@ static void
|
||||
value_changed (GtkAdjustment *a,
|
||||
GtkAdjustment *as)
|
||||
{
|
||||
gdouble scale;
|
||||
double scale;
|
||||
|
||||
scale = gtk_adjustment_get_upper (as) / gtk_adjustment_get_upper (a);
|
||||
g_signal_handlers_block_by_func (as, value_changed, a);
|
||||
@ -343,7 +343,7 @@ value_changed (GtkAdjustment *a,
|
||||
|
||||
static GtkAdjustment *
|
||||
scaled_adjustment (GtkAdjustment *a,
|
||||
gdouble scale)
|
||||
double scale)
|
||||
{
|
||||
GtkAdjustment *as;
|
||||
|
||||
|
@ -56,7 +56,7 @@ sv_to_xy (GtkColorPlane *plane,
|
||||
int *x,
|
||||
int *y)
|
||||
{
|
||||
gdouble s, v;
|
||||
double s, v;
|
||||
int width, height;
|
||||
|
||||
width = gtk_widget_get_width (GTK_WIDGET (plane));
|
||||
@ -124,7 +124,7 @@ create_texture (GtkColorPlane *plane)
|
||||
guint32 *data, *p;
|
||||
float h, s, v;
|
||||
float r, g, b;
|
||||
gdouble sf, vf;
|
||||
double sf, vf;
|
||||
int x, y;
|
||||
|
||||
if (!gtk_widget_get_realized (widget))
|
||||
@ -234,7 +234,7 @@ update_color (GtkColorPlane *plane,
|
||||
int y)
|
||||
{
|
||||
GtkWidget *widget = GTK_WIDGET (plane);
|
||||
gdouble s, v;
|
||||
double s, v;
|
||||
|
||||
s = CLAMP (1 - y * (1.0 / gtk_widget_get_height (widget)), 0, 1);
|
||||
v = CLAMP (x * (1.0 / gtk_widget_get_width (widget)), 0, 1);
|
||||
@ -246,8 +246,8 @@ update_color (GtkColorPlane *plane,
|
||||
|
||||
static void
|
||||
hold_action (GtkGestureLongPress *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *plane)
|
||||
{
|
||||
gtk_widget_activate_action (plane,
|
||||
@ -257,10 +257,10 @@ hold_action (GtkGestureLongPress *gesture,
|
||||
|
||||
static void
|
||||
sv_move (GtkColorPlane *plane,
|
||||
gdouble ds,
|
||||
gdouble dv)
|
||||
double ds,
|
||||
double dv)
|
||||
{
|
||||
gdouble s, v;
|
||||
double s, v;
|
||||
|
||||
s = gtk_adjustment_get_value (plane->priv->s_adj);
|
||||
v = gtk_adjustment_get_value (plane->priv->v_adj);
|
||||
@ -319,7 +319,7 @@ key_controller_key_pressed (GtkEventControllerKey *controller,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkColorPlane *plane = GTK_COLOR_PLANE (widget);
|
||||
gdouble step;
|
||||
double step;
|
||||
|
||||
if ((state & GDK_ALT_MASK) != 0)
|
||||
step = 0.1;
|
||||
@ -346,8 +346,8 @@ key_controller_key_pressed (GtkEventControllerKey *controller,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
gdouble start_x,
|
||||
gdouble start_y,
|
||||
double start_x,
|
||||
double start_y,
|
||||
GtkWidget *plane)
|
||||
{
|
||||
guint button;
|
||||
@ -375,11 +375,11 @@ plane_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkColorPlane *plane)
|
||||
{
|
||||
gdouble start_x, start_y;
|
||||
double start_x, start_y;
|
||||
|
||||
gtk_gesture_drag_get_start_point (GTK_GESTURE_DRAG (gesture),
|
||||
&start_x, &start_y);
|
||||
@ -388,8 +388,8 @@ plane_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
|
||||
static void
|
||||
plane_drag_gesture_end (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkColorPlane *plane)
|
||||
{
|
||||
set_cross_cursor (GTK_WIDGET (plane), FALSE);
|
||||
|
@ -50,8 +50,8 @@ enum
|
||||
};
|
||||
|
||||
static void hold_action (GtkGestureLongPress *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *scale);
|
||||
|
||||
static void click_action (GtkGestureClick *gesture,
|
||||
@ -87,9 +87,9 @@ gtk_color_scale_snapshot_trough (GtkColorScale *scale,
|
||||
int stride;
|
||||
GBytes *bytes;
|
||||
guchar *data, *p;
|
||||
gdouble h;
|
||||
double h;
|
||||
float r, g, b;
|
||||
gdouble f;
|
||||
double f;
|
||||
int hue_x, hue_y;
|
||||
|
||||
stride = width * 3;
|
||||
@ -260,8 +260,8 @@ scale_set_property (GObject *object,
|
||||
|
||||
static void
|
||||
hold_action (GtkGestureLongPress *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkWidget *scale)
|
||||
{
|
||||
gtk_widget_activate_action (scale,
|
||||
|
@ -59,7 +59,7 @@ struct _GtkColorSwatch
|
||||
GtkWidget parent_instance;
|
||||
|
||||
GdkRGBA color;
|
||||
gdouble radius[4];
|
||||
double radius[4];
|
||||
char *icon;
|
||||
guint has_color : 1;
|
||||
guint use_alpha : 1;
|
||||
@ -270,8 +270,8 @@ swatch_primary_action (GtkColorSwatch *swatch)
|
||||
|
||||
static void
|
||||
hold_action (GtkGestureLongPress *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkColorSwatch *swatch)
|
||||
{
|
||||
do_popup (swatch);
|
||||
@ -281,8 +281,8 @@ hold_action (GtkGestureLongPress *gesture,
|
||||
static void
|
||||
tap_action (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkColorSwatch *swatch)
|
||||
{
|
||||
guint button;
|
||||
|
@ -36,10 +36,10 @@ void gtk_color_swatch_set_rgba (GtkColorSwatch *swatch,
|
||||
gboolean gtk_color_swatch_get_rgba (GtkColorSwatch *swatch,
|
||||
GdkRGBA *color);
|
||||
void gtk_color_swatch_set_hsva (GtkColorSwatch *swatch,
|
||||
gdouble h,
|
||||
gdouble s,
|
||||
gdouble v,
|
||||
gdouble a);
|
||||
double h,
|
||||
double s,
|
||||
double v,
|
||||
double a);
|
||||
void gtk_color_swatch_set_can_drop (GtkColorSwatch *swatch,
|
||||
gboolean can_drop);
|
||||
void gtk_color_swatch_set_icon (GtkColorSwatch *swatch,
|
||||
|
@ -235,8 +235,8 @@ static void gtk_combo_box_real_popup (GtkComboBox *combo_box)
|
||||
static gboolean gtk_combo_box_real_popdown (GtkComboBox *combo_box);
|
||||
|
||||
static gboolean gtk_combo_box_scroll_controller_scroll (GtkEventControllerScroll *scroll,
|
||||
gdouble dx,
|
||||
gdouble dy,
|
||||
double dx,
|
||||
double dy,
|
||||
GtkComboBox *combo_box);
|
||||
|
||||
/* listening to the model */
|
||||
@ -522,7 +522,7 @@ gtk_combo_box_class_init (GtkComboBoxClass *klass)
|
||||
* {
|
||||
* GtkTreeIter iter;
|
||||
* GtkTreeModel model;
|
||||
* gdouble value;
|
||||
* double value;
|
||||
*
|
||||
* model = gtk_combo_box_get_model (combo);
|
||||
*
|
||||
@ -1664,8 +1664,8 @@ tree_first (GtkComboBox *combo,
|
||||
|
||||
static gboolean
|
||||
gtk_combo_box_scroll_controller_scroll (GtkEventControllerScroll *scroll,
|
||||
gdouble dx,
|
||||
gdouble dy,
|
||||
double dx,
|
||||
double dy,
|
||||
GtkComboBox *combo_box)
|
||||
{
|
||||
GtkComboBoxPrivate *priv = gtk_combo_box_get_instance_private (combo_box);
|
||||
|
@ -311,8 +311,8 @@ gtk_css_boxes_get_outline_rect (GtkCssBoxes *boxes)
|
||||
static inline void
|
||||
gtk_css_boxes_clamp_border_radius (GskRoundedRect *box)
|
||||
{
|
||||
gdouble factor = 1.0;
|
||||
gdouble corners;
|
||||
double factor = 1.0;
|
||||
double corners;
|
||||
|
||||
corners = box->corner[GSK_CORNER_TOP_LEFT].width + box->corner[GSK_CORNER_TOP_RIGHT].width;
|
||||
if (corners != 0)
|
||||
|
@ -49,14 +49,14 @@ struct _GtkCssValue
|
||||
struct
|
||||
{
|
||||
GtkCssValue *color;
|
||||
gdouble factor;
|
||||
double factor;
|
||||
} shade, alpha;
|
||||
|
||||
struct
|
||||
{
|
||||
GtkCssValue *color1;
|
||||
GtkCssValue *color2;
|
||||
gdouble factor;
|
||||
double factor;
|
||||
} mix;
|
||||
} sym_col;
|
||||
};
|
||||
@ -537,7 +537,7 @@ _gtk_css_color_value_new_name (const char *name)
|
||||
|
||||
GtkCssValue *
|
||||
_gtk_css_color_value_new_shade (GtkCssValue *color,
|
||||
gdouble factor)
|
||||
double factor)
|
||||
{
|
||||
GtkCssValue *value;
|
||||
|
||||
@ -562,7 +562,7 @@ _gtk_css_color_value_new_shade (GtkCssValue *color,
|
||||
|
||||
GtkCssValue *
|
||||
_gtk_css_color_value_new_alpha (GtkCssValue *color,
|
||||
gdouble factor)
|
||||
double factor)
|
||||
{
|
||||
GtkCssValue *value;
|
||||
|
||||
@ -588,7 +588,7 @@ _gtk_css_color_value_new_alpha (GtkCssValue *color,
|
||||
GtkCssValue *
|
||||
_gtk_css_color_value_new_mix (GtkCssValue *color1,
|
||||
GtkCssValue *color2,
|
||||
gdouble factor)
|
||||
double factor)
|
||||
{
|
||||
GtkCssValue *value;
|
||||
|
||||
|
@ -29,12 +29,12 @@ GtkCssValue * gtk_css_color_value_new_white (void) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_literal (const GdkRGBA *color) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_name (const char *name) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_shade (GtkCssValue *color,
|
||||
gdouble factor) G_GNUC_PURE;
|
||||
double factor) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_alpha (GtkCssValue *color,
|
||||
gdouble factor) G_GNUC_PURE;
|
||||
double factor) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_mix (GtkCssValue *color1,
|
||||
GtkCssValue *color2,
|
||||
gdouble factor) G_GNUC_PURE;
|
||||
double factor) G_GNUC_PURE;
|
||||
GtkCssValue * _gtk_css_color_value_new_current_color (void) G_GNUC_PURE;
|
||||
|
||||
gboolean gtk_css_color_value_can_parse (GtkCssParser *parser);
|
||||
|
@ -490,7 +490,7 @@ unit_widget_get (GtkWidget *unit_widget)
|
||||
|
||||
static void
|
||||
unit_widget_set (GtkWidget *unit_widget,
|
||||
gdouble value)
|
||||
double value)
|
||||
{
|
||||
UnitWidget *data;
|
||||
|
||||
|
@ -86,8 +86,8 @@ struct _GtkDragSource
|
||||
int hot_x;
|
||||
int hot_y;
|
||||
|
||||
gdouble start_x;
|
||||
gdouble start_y;
|
||||
double start_x;
|
||||
double start_y;
|
||||
|
||||
GdkDrag *drag;
|
||||
};
|
||||
|
@ -1504,8 +1504,8 @@ get_icon_position_from_controller (GtkEntry *entry,
|
||||
static void
|
||||
icon_pressed_cb (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkEntry *entry)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
@ -1524,8 +1524,8 @@ icon_pressed_cb (GtkGestureClick *gesture,
|
||||
static void
|
||||
icon_released_cb (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkEntry *entry)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
@ -1541,12 +1541,12 @@ icon_released_cb (GtkGestureClick *gesture,
|
||||
|
||||
static void
|
||||
icon_drag_update_cb (GtkGestureDrag *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkEntry *entry)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
gdouble start_x, start_y;
|
||||
double start_x, start_y;
|
||||
GtkEntryIconPosition pos;
|
||||
EntryIconInfo *icon_info;
|
||||
|
||||
@ -3254,10 +3254,10 @@ gtk_entry_ensure_progress_widget (GtkEntry *entry)
|
||||
*/
|
||||
void
|
||||
gtk_entry_set_progress_fraction (GtkEntry *entry,
|
||||
gdouble fraction)
|
||||
double fraction)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
gdouble old_fraction;
|
||||
double old_fraction;
|
||||
|
||||
g_return_if_fail (GTK_IS_ENTRY (entry));
|
||||
|
||||
@ -3283,7 +3283,7 @@ gtk_entry_set_progress_fraction (GtkEntry *entry,
|
||||
*
|
||||
* Returns: a fraction from 0.0 to 1.0
|
||||
*/
|
||||
gdouble
|
||||
double
|
||||
gtk_entry_get_progress_fraction (GtkEntry *entry)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
@ -3306,7 +3306,7 @@ gtk_entry_get_progress_fraction (GtkEntry *entry)
|
||||
*/
|
||||
void
|
||||
gtk_entry_set_progress_pulse_step (GtkEntry *entry,
|
||||
gdouble fraction)
|
||||
double fraction)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
|
||||
@ -3331,7 +3331,7 @@ gtk_entry_set_progress_pulse_step (GtkEntry *entry,
|
||||
*
|
||||
* Returns: a fraction from 0.0 to 1.0
|
||||
*/
|
||||
gdouble
|
||||
double
|
||||
gtk_entry_get_progress_pulse_step (GtkEntry *entry)
|
||||
{
|
||||
GtkEntryPrivate *priv = gtk_entry_get_instance_private (entry);
|
||||
|
@ -167,15 +167,15 @@ GtkEntryCompletion *gtk_entry_get_completion (GtkEntry *entry);
|
||||
*/
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_entry_set_progress_fraction (GtkEntry *entry,
|
||||
gdouble fraction);
|
||||
double fraction);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_entry_get_progress_fraction (GtkEntry *entry);
|
||||
double gtk_entry_get_progress_fraction (GtkEntry *entry);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_entry_set_progress_pulse_step (GtkEntry *entry,
|
||||
gdouble fraction);
|
||||
double fraction);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gdouble gtk_entry_get_progress_pulse_step (GtkEntry *entry);
|
||||
double gtk_entry_get_progress_pulse_step (GtkEntry *entry);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_entry_progress_pulse (GtkEntry *entry);
|
||||
|
@ -70,8 +70,8 @@
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gdouble dx;
|
||||
gdouble dy;
|
||||
double dx;
|
||||
double dy;
|
||||
guint32 evtime;
|
||||
} ScrollHistoryElem;
|
||||
|
||||
@ -82,8 +82,8 @@ struct _GtkEventControllerScroll
|
||||
GArray *scroll_history;
|
||||
|
||||
/* For discrete event coalescing */
|
||||
gdouble cur_dx;
|
||||
gdouble cur_dy;
|
||||
double cur_dx;
|
||||
double cur_dy;
|
||||
|
||||
guint active : 1;
|
||||
};
|
||||
@ -115,8 +115,8 @@ G_DEFINE_TYPE (GtkEventControllerScroll, gtk_event_controller_scroll,
|
||||
|
||||
static void
|
||||
scroll_history_push (GtkEventControllerScroll *scroll,
|
||||
gdouble delta_x,
|
||||
gdouble delta_y,
|
||||
double delta_x,
|
||||
double delta_y,
|
||||
guint32 evtime)
|
||||
{
|
||||
ScrollHistoryElem new_item;
|
||||
@ -153,10 +153,10 @@ scroll_history_reset (GtkEventControllerScroll *scroll)
|
||||
|
||||
static void
|
||||
scroll_history_finish (GtkEventControllerScroll *scroll,
|
||||
gdouble *velocity_x,
|
||||
gdouble *velocity_y)
|
||||
double *velocity_x,
|
||||
double *velocity_y)
|
||||
{
|
||||
gdouble accum_dx = 0, accum_dy = 0;
|
||||
double accum_dx = 0, accum_dy = 0;
|
||||
guint32 first = 0, last = 0;
|
||||
guint i;
|
||||
|
||||
@ -244,7 +244,7 @@ gtk_event_controller_scroll_handle_event (GtkEventController *controller,
|
||||
{
|
||||
GtkEventControllerScroll *scroll = GTK_EVENT_CONTROLLER_SCROLL (controller);
|
||||
GdkScrollDirection direction = GDK_SCROLL_SMOOTH;
|
||||
gdouble dx = 0, dy = 0;
|
||||
double dx = 0, dy = 0;
|
||||
gboolean handled = GDK_EVENT_PROPAGATE;
|
||||
|
||||
if (gdk_event_get_event_type (event) != GDK_SCROLL)
|
||||
@ -342,7 +342,7 @@ gtk_event_controller_scroll_handle_event (GtkEventController *controller,
|
||||
|
||||
if (scroll->flags & GTK_EVENT_CONTROLLER_SCROLL_KINETIC)
|
||||
{
|
||||
gdouble vel_x, vel_y;
|
||||
double vel_x, vel_y;
|
||||
|
||||
scroll_history_finish (scroll, &vel_x, &vel_y);
|
||||
g_signal_emit (controller, signals[DECELERATE], 0, vel_x, vel_y);
|
||||
|
@ -212,8 +212,8 @@ static void gtk_expander_measure (GtkWidget *widget,
|
||||
/* Gestures */
|
||||
static void gesture_click_released_cb (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkExpander *expander);
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GtkExpander, gtk_expander, GTK_TYPE_WIDGET,
|
||||
@ -566,8 +566,8 @@ gtk_expander_size_allocate (GtkWidget *widget,
|
||||
static void
|
||||
gesture_click_released_cb (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkExpander *expander)
|
||||
{
|
||||
gtk_widget_activate (GTK_WIDGET (expander));
|
||||
|
@ -1914,8 +1914,8 @@ file_list_update_popover (GtkFileChooserWidget *impl)
|
||||
|
||||
static void
|
||||
file_list_show_popover (GtkFileChooserWidget *impl,
|
||||
gdouble x,
|
||||
gdouble y)
|
||||
double x,
|
||||
double y)
|
||||
{
|
||||
GdkRectangle rect;
|
||||
GtkTreeSelection *selection;
|
||||
@ -2062,8 +2062,8 @@ click_cb (GtkGesture *gesture,
|
||||
|
||||
static void
|
||||
long_press_cb (GtkGesture *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkFileChooserWidget *impl)
|
||||
{
|
||||
file_list_show_popover (impl, x, y);
|
||||
|
@ -2600,9 +2600,9 @@ autoscroll_cb (GtkWidget *widget,
|
||||
GtkFlowBox *box = GTK_FLOW_BOX (data);
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
|
||||
GtkAdjustment *adjustment;
|
||||
gdouble factor;
|
||||
gdouble increment;
|
||||
gdouble value;
|
||||
double factor;
|
||||
double increment;
|
||||
double value;
|
||||
|
||||
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
adjustment = priv->vadjustment;
|
||||
@ -2649,7 +2649,7 @@ autoscroll_cb (GtkWidget *widget,
|
||||
if (priv->rubberband_select)
|
||||
{
|
||||
GdkEventSequence *sequence;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
GtkFlowBoxChild *child;
|
||||
|
||||
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (priv->drag_gesture));
|
||||
@ -2744,12 +2744,12 @@ update_autoscroll_mode (GtkFlowBox *box,
|
||||
|
||||
static void
|
||||
gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkFlowBox *box)
|
||||
{
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
|
||||
gdouble start_x, start_y;
|
||||
double start_x, start_y;
|
||||
GtkFlowBoxChild *child;
|
||||
GtkCssNode *widget_node;
|
||||
|
||||
@ -2796,8 +2796,8 @@ gtk_flow_box_drag_gesture_update (GtkGestureDrag *gesture,
|
||||
static void
|
||||
gtk_flow_box_click_gesture_pressed (GtkGestureClick *gesture,
|
||||
guint n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkFlowBox *box)
|
||||
{
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
|
||||
@ -2825,8 +2825,8 @@ gtk_flow_box_click_gesture_pressed (GtkGestureClick *gesture,
|
||||
|
||||
static void
|
||||
gtk_flow_box_click_unpaired_release (GtkGestureClick *gesture,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
guint button,
|
||||
GdkEventSequence *sequence,
|
||||
GtkFlowBox *box)
|
||||
@ -2846,8 +2846,8 @@ gtk_flow_box_click_unpaired_release (GtkGestureClick *gesture,
|
||||
static void
|
||||
gtk_flow_box_click_gesture_released (GtkGestureClick *gesture,
|
||||
guint n_press,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
double x,
|
||||
double y,
|
||||
GtkFlowBox *box)
|
||||
{
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
|
||||
@ -2902,8 +2902,8 @@ gtk_flow_box_click_gesture_stopped (GtkGestureClick *gesture,
|
||||
|
||||
static void
|
||||
gtk_flow_box_drag_gesture_begin (GtkGestureDrag *gesture,
|
||||
gdouble start_x,
|
||||
gdouble start_y,
|
||||
double start_x,
|
||||
double start_y,
|
||||
GtkWidget *widget)
|
||||
{
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (widget);
|
||||
@ -2943,8 +2943,8 @@ gtk_flow_box_stop_rubberband (GtkFlowBox *box)
|
||||
|
||||
static void
|
||||
gtk_flow_box_drag_gesture_end (GtkGestureDrag *gesture,
|
||||
gdouble offset_x,
|
||||
gdouble offset_y,
|
||||
double offset_x,
|
||||
double offset_y,
|
||||
GtkFlowBox *box)
|
||||
{
|
||||
GtkFlowBoxPrivate *priv = BOX_PRIV (box);
|
||||
|
@ -293,7 +293,7 @@ size_change_cb (GtkAdjustment *adjustment,
|
||||
{
|
||||
GtkFontChooserWidget *fontchooser = user_data;
|
||||
PangoFontDescription *font_desc;
|
||||
gdouble size = gtk_adjustment_get_value (adjustment);
|
||||
double size = gtk_adjustment_get_value (adjustment);
|
||||
|
||||
font_desc = pango_font_description_new ();
|
||||
if (pango_font_description_get_size_is_absolute (fontchooser->font_desc))
|
||||
@ -310,7 +310,7 @@ output_cb (GtkSpinButton *spin,
|
||||
{
|
||||
GtkAdjustment *adjustment;
|
||||
char *text;
|
||||
gdouble value;
|
||||
double value;
|
||||
|
||||
adjustment = gtk_spin_button_get_adjustment (spin);
|
||||
value = gtk_adjustment_get_value (adjustment);
|
||||
@ -328,7 +328,7 @@ gtk_font_chooser_widget_update_marks (GtkFontChooserWidget *self)
|
||||
const int *sizes;
|
||||
int *font_sizes;
|
||||
int i, n_sizes;
|
||||
gdouble value, spin_value;
|
||||
double value, spin_value;
|
||||
gpointer item;
|
||||
|
||||
item = gtk_single_selection_get_selected_item (self->selection);
|
||||
@ -376,11 +376,11 @@ gtk_font_chooser_widget_update_marks (GtkFontChooserWidget *self)
|
||||
spin_value = gtk_adjustment_get_value (spin_adj);
|
||||
|
||||
if (spin_value < sizes[0])
|
||||
value = (gdouble) sizes[0];
|
||||
value = (double) sizes[0];
|
||||
else if (spin_value > sizes[n_sizes - 1])
|
||||
value = (gdouble)sizes[n_sizes - 1];
|
||||
value = (double)sizes[n_sizes - 1];
|
||||
else
|
||||
value = (gdouble)spin_value;
|
||||
value = (double)spin_value;
|
||||
|
||||
/* ensure clamping doesn't callback into font resizing code */
|
||||
g_signal_handlers_block_by_func (adj, size_change_cb, self);
|
||||
@ -812,9 +812,9 @@ gtk_font_chooser_widget_init (GtkFontChooserWidget *self)
|
||||
|
||||
/* Set the upper values of the spin/scale with G_MAXINT / PANGO_SCALE */
|
||||
gtk_spin_button_set_range (GTK_SPIN_BUTTON (self->size_spin),
|
||||
1.0, (gdouble)(G_MAXINT / PANGO_SCALE));
|
||||
1.0, (double)(G_MAXINT / PANGO_SCALE));
|
||||
gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (self->size_slider)),
|
||||
(gdouble)(G_MAXINT / PANGO_SCALE));
|
||||
(double)(G_MAXINT / PANGO_SCALE));
|
||||
|
||||
self->tweak_action = G_ACTION (g_simple_action_new_stateful ("tweak", NULL, g_variant_new_boolean (FALSE)));
|
||||
g_signal_connect (self->tweak_action, "change-state", G_CALLBACK (change_tweak), self);
|
||||
|
@ -146,12 +146,12 @@ struct _PointData
|
||||
{
|
||||
GdkEvent *event;
|
||||
GtkWidget *target;
|
||||
gdouble widget_x;
|
||||
gdouble widget_y;
|
||||
double widget_x;
|
||||
double widget_y;
|
||||
|
||||
/* Acummulators for touchpad events */
|
||||
gdouble accum_dx;
|
||||
gdouble accum_dy;
|
||||
double accum_dx;
|
||||
double accum_dy;
|
||||
|
||||
guint press_handled : 1;
|
||||
guint state : 2;
|
||||
@ -1209,8 +1209,8 @@ gtk_gesture_get_last_target (GtkGesture *gesture,
|
||||
gboolean
|
||||
gtk_gesture_get_point (GtkGesture *gesture,
|
||||
GdkEventSequence *sequence,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
double *x,
|
||||
double *y)
|
||||
{
|
||||
GtkGesturePrivate *priv;
|
||||
PointData *data;
|
||||
@ -1276,7 +1276,7 @@ gtk_gesture_get_bounding_box (GtkGesture *gesture,
|
||||
GdkRectangle *rect)
|
||||
{
|
||||
GtkGesturePrivate *priv;
|
||||
gdouble x1, y1, x2, y2;
|
||||
double x1, y1, x2, y2;
|
||||
GHashTableIter iter;
|
||||
guint n_points = 0;
|
||||
PointData *data;
|
||||
@ -1336,8 +1336,8 @@ gtk_gesture_get_bounding_box (GtkGesture *gesture,
|
||||
**/
|
||||
gboolean
|
||||
gtk_gesture_get_bounding_box_center (GtkGesture *gesture,
|
||||
gdouble *x,
|
||||
gdouble *y)
|
||||
double *x,
|
||||
double *y)
|
||||
{
|
||||
GdkEvent *last_event;
|
||||
GdkRectangle rect;
|
||||
|
@ -73,16 +73,16 @@ GdkEvent *
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_gesture_get_point (GtkGesture *gesture,
|
||||
GdkEventSequence *sequence,
|
||||
gdouble *x,
|
||||
gdouble *y);
|
||||
double *x,
|
||||
double *y);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_gesture_get_bounding_box (GtkGesture *gesture,
|
||||
GdkRectangle *rect);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_gesture_get_bounding_box_center
|
||||
(GtkGesture *gesture,
|
||||
gdouble *x,
|
||||
gdouble *y);
|
||||
double *x,
|
||||
double *y);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_gesture_is_active (GtkGesture *gesture);
|
||||
|
||||
|
@ -47,8 +47,8 @@ typedef struct _GtkGestureClickPrivate GtkGestureClickPrivate;
|
||||
struct _GtkGestureClickPrivate
|
||||
{
|
||||
GdkDevice *current_device;
|
||||
gdouble initial_press_x;
|
||||
gdouble initial_press_y;
|
||||
double initial_press_x;
|
||||
double initial_press_y;
|
||||
guint double_click_timeout_id;
|
||||
guint n_presses;
|
||||
guint n_release;
|
||||
@ -193,7 +193,7 @@ gtk_gesture_click_begin (GtkGesture *gesture,
|
||||
GdkEvent *event;
|
||||
GdkEventType event_type;
|
||||
GdkDevice *device;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
if (!gtk_gesture_handles_sequence (gesture, sequence))
|
||||
return;
|
||||
@ -250,7 +250,7 @@ gtk_gesture_click_update (GtkGesture *gesture,
|
||||
{
|
||||
GtkGestureClick *click;
|
||||
GdkEventSequence *current;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
|
||||
click = GTK_GESTURE_CLICK (gesture);
|
||||
current = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
|
||||
@ -267,7 +267,7 @@ gtk_gesture_click_end (GtkGesture *gesture,
|
||||
GtkGestureClick *click;
|
||||
GtkGestureClickPrivate *priv;
|
||||
GdkEventSequence *current;
|
||||
gdouble x, y;
|
||||
double x, y;
|
||||
gboolean interpreted;
|
||||
GtkEventSequenceState state;
|
||||
|
||||
|
@ -33,12 +33,12 @@ struct _GtkGestureClickClass
|
||||
|
||||
void (* pressed) (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y);
|
||||
double x,
|
||||
double y);
|
||||
void (* released) (GtkGestureClick *gesture,
|
||||
int n_press,
|
||||
gdouble x,
|
||||
gdouble y);
|
||||
double x,
|
||||
double y);
|
||||
void (* stopped) (GtkGestureClick *gesture);
|
||||
|
||||
/*<private>*/
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user