[packages/libstroke] Rel 7
arekm
arekm at pld-linux.org
Sun Mar 15 17:01:10 CET 2026
commit a954275e8ed720317b445e901d2b9e00a9efdee3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 15 17:01:02 2026 +0100
Rel 7
libstroke-func-pointer.patch | 88 ++++++++++++++++++++++++++++++++++++++++++
libstroke-include-string.patch | 10 +++++
libstroke.spec | 6 ++-
3 files changed, 103 insertions(+), 1 deletion(-)
---
diff --git a/libstroke.spec b/libstroke.spec
index 20297d4..095cc6e 100644
--- a/libstroke.spec
+++ b/libstroke.spec
@@ -2,7 +2,7 @@ Summary: A stroke translation library
Summary(pl.UTF-8): Biblioteka translacji przesuwu myszki
Name: libstroke
Version: 0.5.1
-Release: 6
+Release: 7
License: GPL
Group: Libraries
Source0: http://www.etla.net/libstroke/%{name}-%{version}.tar.gz
@@ -10,6 +10,8 @@ Source0: http://www.etla.net/libstroke/%{name}-%{version}.tar.gz
Patch0: %{name}-am15.patch
Patch1: %{name}-am18.patch
Patch2: %{name}-link.patch
+Patch3: %{name}-include-string.patch
+Patch4: %{name}-func-pointer.patch
URL: http://www.etla.net/libstroke/
BuildRequires: autoconf
BuildRequires: automake
@@ -96,6 +98,8 @@ Statyczna biblioteka libgstroke.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
%build
%{__libtoolize}
diff --git a/libstroke-func-pointer.patch b/libstroke-func-pointer.patch
new file mode 100644
index 0000000..9e0bc55
--- /dev/null
+++ b/libstroke-func-pointer.patch
@@ -0,0 +1,88 @@
+--- libstroke-0.5.1/libgstroke/gnome-stroke-draw.c.orig 2026-03-15 16:12:41.439895230 +0100
++++ libstroke-0.5.1/libgstroke/gnome-stroke-draw.c 2026-03-15 16:12:49.856561896 +0100
+@@ -30,8 +30,10 @@
+
+ #define GSTROKE_SIGNALS "gstroke_signals"
+
++typedef void (*GstrokeFunc) (GtkWidget *, gpointer);
++
+ struct gstroke_func_and_data {
+- GtkSignalFunc func;
++ GstrokeFunc func;
+ gpointer data;
+ };
+
+@@ -189,7 +191,7 @@
+ guint
+ gstroke_signal_connect (GtkWidget *widget,
+ const gchar *name,
+- GtkSignalFunc func,
++ GstrokeFunc func,
+ gpointer data)
+ {
+ struct gstroke_func_and_data *func_and_data;
+--- libstroke-0.5.1/libgstroke/gstroke.h.orig 2026-03-15 16:12:41.439895230 +0100
++++ libstroke-0.5.1/libgstroke/gstroke.h 2026-03-15 16:12:52.959895230 +0100
+@@ -28,12 +28,14 @@
+ /* the mouse button used for strokes */
+ #define GSTROKE_MOUSE_BUTTON 2
+
++typedef void (*GstrokeFunc) (GtkWidget *, gpointer);
++
+ /* enable strokes for the widget */
+ void gstroke_enable (GtkWidget *widget);
+
+ guint gstroke_signal_connect (GtkWidget *widget,
+ const gchar *name,
+- GtkSignalFunc func,
++ GstrokeFunc func,
+ gpointer data);
+
+ /* frees all the memory allocated for stroke, should be called when
+--- libstroke-0.5.1/tests/gnome_stroke_test.c.orig 2026-03-15 16:12:41.443228563 +0100
++++ libstroke-0.5.1/tests/gnome_stroke_test.c 2026-03-15 16:13:00.763228563 +0100
+@@ -32,19 +32,19 @@
+ }
+
+ static void
+-gstroke_exit (GtkWidget *widget G_GNUC_UNUSED)
++gstroke_exit (GtkWidget *widget G_GNUC_UNUSED, gpointer data G_GNUC_UNUSED)
+ {
+ gtk_main_quit ();
+ }
+
+ static void
+-gstroke_clear (GtkWidget *widget)
++gstroke_clear (GtkWidget *widget, gpointer data G_GNUC_UNUSED)
+ {
+ gdk_window_clear (widget->window);
+ }
+
+ static void
+-gstroke_help (GtkWidget *widget G_GNUC_UNUSED)
++gstroke_help (GtkWidget *widget G_GNUC_UNUSED, gpointer data G_GNUC_UNUSED)
+ {
+ printf ("-----\nStroke 456 clears the screen\n");
+ printf ("Stroke 654 exits the program\n");
+@@ -81,9 +81,9 @@
+
+ /* The sequence below shows how to use libgstroke */
+ gstroke_enable (da);
+- gstroke_signal_connect (da, "654", (GtkSignalFunc)gstroke_exit, NULL);
+- gstroke_signal_connect (da, "456", (GtkSignalFunc)gstroke_clear, NULL);
+- gstroke_signal_connect (da, "4123658", (GtkSignalFunc)gstroke_help, NULL);
++ gstroke_signal_connect (da, "654", gstroke_exit, NULL);
++ gstroke_signal_connect (da, "456", gstroke_clear, NULL);
++ gstroke_signal_connect (da, "4123658", gstroke_help, NULL);
+
+ gtk_box_pack_start (GTK_BOX (vbox), da, TRUE, TRUE, 0);
+ gtk_widget_show (da);
+@@ -110,7 +110,7 @@
+
+ /*hack: call the help function to display the help message*/
+
+- gstroke_help (window);
++ gstroke_help (window, NULL);
+
+ gtk_main ();
+ return 0;
diff --git a/libstroke-include-string.patch b/libstroke-include-string.patch
new file mode 100644
index 0000000..ecfa2bb
--- /dev/null
+++ b/libstroke-include-string.patch
@@ -0,0 +1,10 @@
+--- libstroke-0.5.1/libstroke/stroke.c.orig 2001-05-25 23:55:51.000000000 +0000
++++ libstroke-0.5.1/libstroke/stroke.c 2026-03-15 00:00:00.000000000 +0000
+@@ -12,6 +12,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <math.h>
++#include <string.h>
+
+ #ifdef STROKE_MOUSE_FOOTPRINTS
+ #include <X11/Xutil.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libstroke.git/commitdiff/a954275e8ed720317b445e901d2b9e00a9efdee3
More information about the pld-cvs-commit
mailing list