summarylogtreecommitdiffstats
path: root/deprecation_fixes.patch
blob: 44d19af750993f70e247674d80c32292be1a5eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff --git a/panel-plugin/kbdleds-dialogs.c b/panel-plugin/kbdleds-dialogs.c
index 7f751f3..b8a56c8 100644
--- a/panel-plugin/kbdleds-dialogs.c
+++ b/panel-plugin/kbdleds-dialogs.c
@@ -26,6 +26,7 @@
 
 #include <libxfce4ui/libxfce4ui.h>
 #include <libxfce4panel/xfce-panel-plugin.h>
+#include <libxfce4panel/xfce-panel-convenience.h>
 
 #include "kbdleds.h"
 #include "kbdleds-dialogs.h"
diff --git a/panel-plugin/kbdleds.c b/panel-plugin/kbdleds.c
index 9c78d40..5f655d0 100644
--- a/panel-plugin/kbdleds.c
+++ b/panel-plugin/kbdleds.c
@@ -28,6 +28,7 @@
 
 #include <gtk/gtk.h>
 #include <libxfce4util/libxfce4util.h>
+#include <libxfce4panel/libxfce4panel.h>
 #include <libxfce4panel/xfce-panel-plugin.h>
 
 #include "kbdleds.h"
@@ -140,7 +141,7 @@ kbdleds_new (XfcePanelPlugin *plugin)
   GtkWidget      *label;
 
   /* allocate memory for the plugin structure */
-  kbdleds = panel_slice_new0 (kbdledsPlugin);
+  kbdleds = g_slice_new0 (kbdledsPlugin);
 
   /* pointer to plugin */
   kbdleds->plugin = plugin;
@@ -187,7 +188,7 @@ kbdleds_free (XfcePanelPlugin *plugin,
     //g_free (kbdleds->setting1);
 
   /* free the plugin structure */
-  panel_slice_free (kbdledsPlugin, kbdleds);
+  g_slice_free (kbdledsPlugin, kbdleds);
 
   /* free the timeout */
   if (timeoutId) {