summaryrefslogtreecommitdiff
path: root/libmatekbd/matekbd-keyboard-drawing.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:42:42 +0200
committerraveit65 <[email protected]>2021-12-11 15:44:57 +0100
commit8072141663cb9205677af679a058b1ea3c55e3d3 (patch)
tree5cb5e53b359980b82a46620e58e893c6ae2a2936 /libmatekbd/matekbd-keyboard-drawing.c
parent02ae9cf74a9fc17929584a4d95560b2ad2abe826 (diff)
downloadlibmatekbd-8072141663cb9205677af679a058b1ea3c55e3d3.tar.bz2
libmatekbd-8072141663cb9205677af679a058b1ea3c55e3d3.tar.xz
Use a blank line at most
Diffstat (limited to 'libmatekbd/matekbd-keyboard-drawing.c')
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libmatekbd/matekbd-keyboard-drawing.c b/libmatekbd/matekbd-keyboard-drawing.c
index 086b2e3..053eded 100644
--- a/libmatekbd/matekbd-keyboard-drawing.c
+++ b/libmatekbd/matekbd-keyboard-drawing.c
@@ -33,7 +33,6 @@
#include <matekbd-keyboard-drawing-marshal.h>
#include <matekbd-util.h>
-
#define INVALID_KEYCODE ((guint)(-1))
#define GTK_RESPONSE_PRINT 2
@@ -57,7 +56,6 @@ extern gboolean xkl_xkb_config_native_prepare (XklEngine * engine,
extern void xkl_xkb_config_native_cleanup (XklEngine * engine,
gpointer component_names);
-
static gint
xkb_to_pixmap_coord (MatekbdKeyboardDrawingRenderContext * context, gint n)
{
@@ -71,7 +69,6 @@ xkb_to_pixmap_double (MatekbdKeyboardDrawingRenderContext * context,
return d * context->scale_numerator / context->scale_denominator;
}
-
/* angle is in tenths of a degree; coordinates can be anything as (xkb,
* pixels, pango) as long as they are all the same */
static void
@@ -152,7 +149,6 @@ intersect (gdouble n1x, gdouble n1y, gdouble d1,
multiply (e, f, g, h, d1, d2, x, y);
}
-
/* draw an angle from the current point to b and then to c,
* with a rounded corner of the given radius.
*/
@@ -270,7 +266,6 @@ rounded_polygon (cairo_t * cr,
(gdouble) (points[num_points - 1].y +
points[0].y) / 2);
-
#ifdef KBDRAW_DEBUG
printf (" rounded polygon of radius %f:\n", radius);
#endif
@@ -552,7 +547,6 @@ parse_xkb_color_spec (gchar * colorspec, GdkRGBA * color)
return TRUE;
}
-
static guint
find_keycode (MatekbdKeyboardDrawing * drawing, gchar * key_name)
{
@@ -995,7 +989,6 @@ set_key_label_in_layout (MatekbdKeyboardDrawingRenderContext * context,
}
}
-
static void
draw_pango_layout (MatekbdKeyboardDrawingRenderContext * context,
MatekbdKeyboardDrawing * drawing,
@@ -2808,7 +2801,6 @@ matekbd_keyboard_drawing_new_dialog (gint group, gchar * group_name)
g_clear_error (&error);
}
-
dialog =
GTK_WIDGET (gtk_builder_get_object
(builder, "gswitchit_layout_view"));