From 41255bd51508c4744f42b5ec57604060b222a093 Mon Sep 17 00:00:00 2001 From: mezz Date: Sat, 5 Apr 2008 17:32:30 +0000 Subject: Fix the crash by clock-applet when add to the panel. Bump the PORTREVISION. PR: ports/122455 Submitted by: fukui Obtained from: Its SVN --- x11/gnome-panel/Makefile | 2 +- .../files/patch-applets_clock_set-timezone.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 x11/gnome-panel/files/patch-applets_clock_set-timezone.c (limited to 'x11/gnome-panel') diff --git a/x11/gnome-panel/Makefile b/x11/gnome-panel/Makefile index a459bdeeb665..817e3850b5cc 100644 --- a/x11/gnome-panel/Makefile +++ b/x11/gnome-panel/Makefile @@ -8,7 +8,7 @@ PORTNAME= gnome-panel PORTVERSION= 2.22.0 -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES= x11 gnome MASTER_SITES= GNOME MASTER_SITE_SUBDIR= sources/gnome-panel/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11/gnome-panel/files/patch-applets_clock_set-timezone.c b/x11/gnome-panel/files/patch-applets_clock_set-timezone.c new file mode 100644 index 000000000000..3a9fb4ae9fa8 --- /dev/null +++ b/x11/gnome-panel/files/patch-applets_clock_set-timezone.c @@ -0,0 +1,22 @@ +--- trunk/applets/clock/set-timezone.c 2008/02/28 20:48:16 10908 ++++ applets/clock/set-timezone.c 2008/04/02 15:08:34 10972 +@@ -139,6 +139,9 @@ + DBusError dbus_error; + gint res = 0; + ++ pk_caller = NULL; ++ pk_action = NULL; ++ + system_bus = dbus_g_connection_get_connection (get_system_bus ()); + if (system_bus == NULL) + goto out; +@@ -147,9 +150,6 @@ + if (pk_context == NULL) + goto out; + +- pk_caller = NULL; +- pk_action = NULL; +- + pk_action = polkit_action_new (); + polkit_action_set_action_id (pk_action, pk_action_id); + -- cgit