Subject: Gnome-panel patches for Joerg or jmmv or drochner
To: None <tech-pkg@netbsd.org>
From: walt <wa1ter@myrealbox.com>
List: tech-pkg
Date: 11/30/2007 09:20:57
These two patches fix compilation on DragonFly, and fix a long-standing
problem with the calendar interface to evolution. I've already sent
them upstream to gnome.org, but who knows if they will be accepted.
Comments/criticism/improvements welcome.
$NetBSD$
--- applets/clock/calendar-window.c.orig 2007-11-30 08:48:05 -0800
+++ applets/clock/calendar-window.c
@@ -1102,7 +1102,7 @@ calendar_day_activated (GtkCalendar *
gtk_calendar_get_date (calendar, &year, &month, &day);
- argument = g_strdup_printf ("calendar:///?startdate=%.4d%.2d%.2d",
+ argument = g_strdup_printf ("calendar:///?startdate=%.4d%.2d%.2dT120000",
year, month + 1, day);
clock_launch_evolution (calwin, argument);
======================================================================
$NetBSD$
--- gnome-panel/panel-util.c.orig 2007-11-30 08:49:03 -0800
+++ gnome-panel/panel-util.c
@@ -854,6 +854,10 @@ char *
panel_make_unique_desktop_path_from_name (const char *dir,
const char *name)
{
+#ifdef NAME_MAX
+#undef MAXNAMLEN
+#define MAXNAMLEN NAME_MAX
+#endif
int num = 1;
char *path = NULL;
char filename[MAXNAMLEN];