ports/x11/libxfce4menu/files/patch-xfce4-about_main.c
Guido Falsi 939e8ca9ba Welcome XFCE 4.20 to the FreeBSD ports tree!
Announcement: https://xfce.org/about/news/?post=1734220800

This release has experimental Wayland support, but not all components
have been ported, YMMV. From upstream announcement:

Important Notice: Please be aware that the Wayland support in Xfce
4.20 is experimental. It is recommended for advanced users only,
as you may encounter bugs and experience incomplete functionality.
Proceed with caution!

Highlight of this commit:

- Adding new port x11/libxfce4windowing
- Changing some WWW links to XFCE project gitlab
- Cleaned up Makefiles
- Remove unneeded intltool dependencies
- Added WAYLAND option where applicable, enabled by default

Many thanks to Olivier Duchateau <duchateau.olivier@gmail.com> who
provided a set of patches I started work from.

PR:		283345
2024-12-21 21:39:17 +01:00

34 lines
1.1 KiB
C

--- xfce4-about/main.c.orig 2024-11-29 19:21:01 UTC
+++ xfce4-about/main.c
@@ -24,6 +24,10 @@
#include <stdlib.h>
#endif
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
+
#ifdef ENABLE_X11
#include <gdk/gdkx.h>
#endif
@@ -98,7 +102,7 @@ xfce_about_system (GtkBuilder *builder)
else
{
const gchar *extensions[] = { "svg", "png" };
- g_autofree gchar *pixmap_path = g_strconcat ("/usr/share/pixmaps/", os_logo, ".", NULL);
+ g_autofree gchar *pixmap_path = g_strconcat ("%%PREFIX%%/share/pixmaps/", os_logo, ".", NULL);
for (guint i = 0; i < G_N_ELEMENTS (extensions); i++)
{
@@ -142,7 +146,11 @@ xfce_about_system (GtkBuilder *builder)
gtk_label_set_text (GTK_LABEL (label), gtk_text);
label = gtk_builder_get_object (builder, "kernel-version");
+#ifdef __FreeBSD__
+ kernel_text = g_strdup_printf ("%d", getosreldate ());
+#else
kernel_text = get_system_info (KERNEL);
+#endif
gtk_label_set_text (GTK_LABEL (label), kernel_text ? kernel_text : "");
label = gtk_builder_get_object (builder, "windowing-system");