summaryrefslogtreecommitdiff
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
parent02ae9cf74a9fc17929584a4d95560b2ad2abe826 (diff)
downloadlibmatekbd-8072141663cb9205677af679a058b1ea3c55e3d3.tar.bz2
libmatekbd-8072141663cb9205677af679a058b1ea3c55e3d3.tar.xz
Use a blank line at most
-rw-r--r--libmatekbd/matekbd-indicator-config.c1
-rw-r--r--libmatekbd/matekbd-indicator.c3
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.c8
-rw-r--r--libmatekbd/matekbd-keyboard-drawing.h2
-rw-r--r--libmatekbd/matekbd-status.c2
-rw-r--r--libmatekbd/matekbd-util.h1
-rw-r--r--test/matekbd-keyboard-drawing-test.c1
7 files changed, 0 insertions, 18 deletions
diff --git a/libmatekbd/matekbd-indicator-config.c b/libmatekbd/matekbd-indicator-config.c
index 081e1f9..869b26e 100644
--- a/libmatekbd/matekbd-indicator-config.c
+++ b/libmatekbd/matekbd-indicator-config.c
@@ -45,7 +45,6 @@ const gchar MATEKBD_INDICATOR_CONFIG_KEY_FONT_FAMILY[] = "font-family";
const gchar MATEKBD_INDICATOR_CONFIG_KEY_FOREGROUND_COLOR[] = "foreground-color";
const gchar MATEKBD_INDICATOR_CONFIG_KEY_BACKGROUND_COLOR[] = "background-color";
-
/*
* static applet config functions
*/
diff --git a/libmatekbd/matekbd-indicator.c b/libmatekbd/matekbd-indicator.c
index ca7a74d..aefdbe7 100644
--- a/libmatekbd/matekbd-indicator.c
+++ b/libmatekbd/matekbd-indicator.c
@@ -450,7 +450,6 @@ matekbd_indicator_parent_set (GtkWidget * gki, GtkWidget * previous_parent)
matekbd_indicator_update_tooltips (MATEKBD_INDICATOR (gki));
}
-
void
matekbd_indicator_reinit_ui (MatekbdIndicator * gki)
{
@@ -572,7 +571,6 @@ matekbd_indicator_state_callback (XklEngine * engine,
}
}
-
void
matekbd_indicator_set_current_page (MatekbdIndicator * gki)
{
@@ -627,7 +625,6 @@ matekbd_indicator_filter_x_evt (GdkXEvent * xev, GdkEvent * event)
return GDK_FILTER_CONTINUE;
}
-
/* Should be called once for all widgets */
static void
matekbd_indicator_start_listen (void)
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"));
diff --git a/libmatekbd/matekbd-keyboard-drawing.h b/libmatekbd/matekbd-keyboard-drawing.h
index 8d117c0..3c79785 100644
--- a/libmatekbd/matekbd-keyboard-drawing.h
+++ b/libmatekbd/matekbd-keyboard-drawing.h
@@ -198,12 +198,10 @@ void matekbd_keyboard_drawing_set_groups_levels (MatekbdKeyboardDrawing *
MatekbdKeyboardDrawingGroupLevel
* groupLevels[]);
-
void matekbd_keyboard_drawing_print (MatekbdKeyboardDrawing * drawing,
GtkWindow * parent_window,
const gchar * description);
-
GtkWidget* matekbd_keyboard_drawing_new_dialog (gint group, gchar* group_name);
#ifdef __cplusplus
diff --git a/libmatekbd/matekbd-status.c b/libmatekbd/matekbd-status.c
index 0183529..68c15dc 100644
--- a/libmatekbd/matekbd-status.c
+++ b/libmatekbd/matekbd-status.c
@@ -528,7 +528,6 @@ matekbd_status_state_callback (XklEngine * engine,
}
}
-
void
matekbd_status_set_current_page (MatekbdStatus * gki)
{
@@ -583,7 +582,6 @@ matekbd_status_filter_x_evt (GdkXEvent * xev, GdkEvent * event)
return GDK_FILTER_CONTINUE;
}
-
/* Should be called once for all widgets */
static void
matekbd_status_start_listen (void)
diff --git a/libmatekbd/matekbd-util.h b/libmatekbd/matekbd-util.h
index 52c2914..8896fec 100644
--- a/libmatekbd/matekbd-util.h
+++ b/libmatekbd/matekbd-util.h
@@ -32,5 +32,4 @@ extern void matekbd_preview_save_position (GdkRectangle * rect);
/* Missing in glib */
extern gchar **matekbd_strv_append (gchar ** arr, gchar * element);
-
#endif
diff --git a/test/matekbd-keyboard-drawing-test.c b/test/matekbd-keyboard-drawing-test.c
index 015879b..596c52f 100644
--- a/test/matekbd-keyboard-drawing-test.c
+++ b/test/matekbd-keyboard-drawing-test.c
@@ -27,7 +27,6 @@
#include <glib.h>
#include "libmatekbd/matekbd-keyboard-drawing.h"
-
static gchar *groups = NULL;
static gchar *levels = NULL;
static gchar *symbols = NULL;