Fix the crash by clock-applet when add to the panel. Bump the PORTREVISION.

PR:		ports/122455
Submitted by:	fukui <fukui.FreeBSD@fanet.net>
Obtained from:	Its SVN
This commit is contained in:
Jeremy Messenger 2008-04-05 17:32:30 +00:00
parent 8260674227
commit 6746a8142e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=210601
2 changed files with 23 additions and 1 deletions

View file

@ -8,7 +8,7 @@
PORTNAME= gnome-panel PORTNAME= gnome-panel
PORTVERSION= 2.22.0 PORTVERSION= 2.22.0
PORTREVISION?= 2 PORTREVISION?= 3
CATEGORIES= x11 gnome CATEGORIES= x11 gnome
MASTER_SITES= GNOME MASTER_SITES= GNOME
MASTER_SITE_SUBDIR= sources/gnome-panel/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} MASTER_SITE_SUBDIR= sources/gnome-panel/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}

View file

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