diff --git a/deps/murrine/gtk-murrine-engine-c99.patch b/deps/murrine/gtk-murrine-engine-c99.patch new file mode 100644 index 0000000..91fd27c --- /dev/null +++ b/deps/murrine/gtk-murrine-engine-c99.patch @@ -0,0 +1,37 @@ +Add a few missing function prototypes, to avoid future build failures once +compilers start to reject implicit function declarations by default. + +diff -ur murrine-0.98.2.orig/src/murrine_rc_style.h murrine-0.98.2/src/murrine_rc_style.h +--- murrine-0.98.2.orig/src/murrine_rc_style.h 2012-01-17 18:46:01.000000000 +0100 ++++ murrine-0.98.2/src/murrine_rc_style.h 2022-12-14 21:33:03.242067429 +0100 +@@ -154,5 +154,6 @@ + }; + + GType murrine_rc_style_get_type (void); ++void murrine_rc_style_register_types (GTypeModule *module); + + #endif /* MURRINE_RC_STYLE_H */ +diff -ur murrine-0.98.2.orig/src/murrine_style.h murrine-0.98.2/src/murrine_style.h +--- murrine-0.98.2.orig/src/murrine_style.h 2012-01-17 18:46:01.000000000 +0100 ++++ murrine-0.98.2/src/murrine_style.h 2022-12-14 21:33:41.604671684 +0100 +@@ -102,5 +102,6 @@ + }; + + GType murrine_style_get_type (void); ++void murrine_style_register_types (GTypeModule *module); + + #endif /* MURRINE_STYLE_H */ +diff -ur murrine-0.98.2.orig/src/support.h murrine-0.98.2/src/support.h +--- murrine-0.98.2.orig/src/support.h 2012-01-17 18:46:01.000000000 +0100 ++++ murrine-0.98.2/src/support.h 2022-12-14 21:27:27.288533100 +0100 +@@ -118,6 +118,10 @@ + + #define MRN_WIDGET_HAS_DEFAULT(object) ((object) && MRN_IS_WIDGET(object) && GTK_WIDGET_HAS_DEFAULT(object)) + ++gboolean murrine_object_is_a (const GObject * object, const gchar * type_name); ++gboolean murrine_widget_is_ltr (GtkWidget *widget); ++ ++ + G_GNUC_INTERNAL GtkTextDirection murrine_get_direction (GtkWidget *widget); + G_GNUC_INTERNAL GtkWidget *murrine_special_get_ancestor (GtkWidget *widget, GType widget_type); + G_GNUC_INTERNAL GdkColor* murrine_get_parent_bgcolor (GtkWidget *widget); diff --git a/deps/murrine/murrine.SlackBuild b/deps/murrine/murrine.SlackBuild index 50e780e..108bc29 100644 --- a/deps/murrine/murrine.SlackBuild +++ b/deps/murrine/murrine.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=murrine VERSION=${VERSION:-0.98.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_msb} if [ -z "$ARCH" ]; then @@ -83,6 +83,8 @@ if [ "$ARCH" = "aarch64" ]; then patch -p1 < $CWD/config.sub-add-aarch64-support.patch fi +patch -p1 < $CWD/gtk-murrine-engine-c99.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \