murrine: Fix build against new poppler.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-05-23 23:12:28 +07:00
parent 4e5efd5e45
commit acc22303db
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 40 additions and 1 deletions

View file

@ -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);

View file

@ -25,7 +25,7 @@
PRGNAM=murrine PRGNAM=murrine
VERSION=${VERSION:-0.98.2} VERSION=${VERSION:-0.98.2}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_msb} TAG=${TAG:-_msb}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -83,6 +83,8 @@ if [ "$ARCH" = "aarch64" ]; then
patch -p1 < $CWD/config.sub-add-aarch64-support.patch patch -p1 < $CWD/config.sub-add-aarch64-support.patch
fi fi
patch -p1 < $CWD/gtk-murrine-engine-c99.patch
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \