[Xfce4-commits] [panel-plugins/xfce4-datetime-plugin] 02/04: Fix build with panel 4.15

noreply at xfce.org noreply at xfce.org
Sat Oct 19 23:59:25 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-datetime-plugin.

commit 0019d2c7f464aeca11fe606649b657ac0a5f037f
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Oct 19 18:54:49 2019 -0300

    Fix build with panel 4.15
---
 panel-plugin/datetime.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c
index f4921b3..f4e0827 100644
--- a/panel-plugin/datetime.c
+++ b/panel-plugin/datetime.c
@@ -31,8 +31,7 @@
 /* xfce includes */
 #include <libxfce4ui/libxfce4ui.h>
 #include <libxfce4util/libxfce4util.h>
-#include <libxfce4panel/xfce-panel-plugin.h>
-#include <libxfce4panel/xfce-panel-convenience.h>
+#include <libxfce4panel/libxfce4panel.h>
 
 #include "datetime.h"
 #include "datetime-dialog.h"
@@ -679,7 +678,7 @@ static void datetime_create_widget(t_datetime * datetime)
   orientation = xfce_panel_plugin_get_orientation(datetime->plugin);
 
   /* create button */
-  datetime->button = xfce_create_panel_toggle_button();
+  datetime->button = xfce_panel_create_toggle_button();
   gtk_widget_show(datetime->button);
 
   /* create a box which can be easily adapted to the panel orientation */
@@ -718,7 +717,7 @@ static t_datetime * datetime_new(XfcePanelPlugin *plugin)
   DBG("Starting datetime panel plugin");
 
   /* alloc and clear mem */
-  datetime = panel_slice_new0 (t_datetime);
+  datetime = g_slice_new0 (t_datetime);
 
   /* store plugin reference */
   datetime->plugin = plugin;
@@ -755,7 +754,7 @@ static void datetime_free(XfcePanelPlugin *plugin, t_datetime *datetime)
   g_free(datetime->date_format);
   g_free(datetime->time_format);
 
-  panel_slice_free(t_datetime, datetime);
+  g_slice_free(t_datetime, datetime);
 }
 
 /*

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list