[Xfce4-commits] r24063 - xfce4-panel/trunk/panel

Jasper Huijsmans jasper at xfce.org
Fri Dec 8 23:18:01 CET 2006


Author: jasper
Date: 2006-12-08 22:18:01 +0000 (Fri, 08 Dec 2006)
New Revision: 24063

Modified:
   xfce4-panel/trunk/panel/panel-item-manager.c
Log:
Use convenience function provided by libxfce4panel to check kiosk mode.

Modified: xfce4-panel/trunk/panel/panel-item-manager.c
===================================================================
--- xfce4-panel/trunk/panel/panel-item-manager.c	2006-12-08 19:31:43 UTC (rev 24062)
+++ xfce4-panel/trunk/panel/panel-item-manager.c	2006-12-08 22:18:01 UTC (rev 24063)
@@ -35,6 +35,7 @@
 #include <libxfce4panel/xfce-panel-internal-plugin.h>
 #include <libxfce4panel/xfce-panel-external-item.h>
 #include <libxfce4panel/xfce-panel-enums.h>
+#include <libxfce4panel/xfce-panel-convenience.h>
 
 #include "panel-item-manager.h"
 
@@ -242,15 +243,10 @@
 static void
 _update_plugin_list (void)
 {
-    char **dirs, **d;
-    gboolean datadir_used = FALSE;
-    XfceKiosk *kiosk = NULL;
-    gboolean use_user_config = TRUE;
+    char     **dirs, **d;
+    gboolean   datadir_used    = FALSE;
+    gboolean   use_user_config = xfce_allow_panel_customization();
 
-    kiosk = xfce_kiosk_new ("xfce4-panel");
-    use_user_config = xfce_kiosk_query (kiosk, "CustomizePanel");
-    xfce_kiosk_free (kiosk);
-
     if (G_UNLIKELY (!use_user_config))
     {
         dirs = g_new (char*, 2);



More information about the Xfce4-commits mailing list