[Xfce4-commits] <xfce4-wavelan-plugin:master> Use XDT_FEATURE_DEBUG instead of the deprecated BM_DEBUG_SUPPORT

Landry Breuil noreply at xfce.org
Fri Jun 29 22:00:01 CEST 2012


Updating branch refs/heads/master
         to 79b2e326e295515a728ef605bc78dc2593eb3f75 (commit)
       from b26808c146b2c784c6bb847a6c391a50a33a7cd5 (commit)

commit 79b2e326e295515a728ef605bc78dc2593eb3f75
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Jun 29 21:58:10 2012 +0200

    Use XDT_FEATURE_DEBUG instead of the deprecated BM_DEBUG_SUPPORT
    
    Add a pair of DBG() for set-size and orientation-changed callbacks

 configure.ac.in        |    2 +-
 panel-plugin/wavelan.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index dddda2e..06047b7 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -51,7 +51,7 @@ XDT_CHECK_PACKAGE([LIBXFCE4PANEL], [libxfce4panel-1.0], [4.8.0])
 XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-1], [4.8.0])
 
 dnl Check for debugging support
-BM_DEBUG_SUPPORT()
+XDT_FEATURE_DEBUG
 
 AC_OUTPUT([
 Makefile
diff --git a/panel-plugin/wavelan.c b/panel-plugin/wavelan.c
index 1699508..27d8e21 100644
--- a/panel-plugin/wavelan.c
+++ b/panel-plugin/wavelan.c
@@ -403,6 +403,7 @@ wavelan_write_config(XfcePanelPlugin *plugin, t_wavelan *wavelan)
 static void
 wavelan_set_orientation(XfcePanelPlugin* plugin, GtkOrientation orientation, t_wavelan *wavelan)
 {
+  DBG("wavelan_set_orientation(%d)", orientation);
   wavelan->orientation = orientation;
   xfce_hvbox_set_orientation(XFCE_HVBOX(wavelan->box), orientation);
   if (orientation == GTK_ORIENTATION_HORIZONTAL) {
@@ -421,6 +422,7 @@ static void
 wavelan_set_size(XfcePanelPlugin* plugin, int size, t_wavelan *wavelan)
 {
   int border_width, image_size;
+  DBG("wavelan_set_size(%d)", size);
 #ifdef HAS_PANEL_49
   size /= xfce_panel_plugin_get_nrows(plugin);
   xfce_panel_plugin_set_small (plugin, (xfce_panel_plugin_get_mode(plugin) != XFCE_PANEL_PLUGIN_MODE_DESKBAR));


More information about the Xfce4-commits mailing list