[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 01/10: Remove compat code for panel < 4.9

noreply at xfce.org noreply at xfce.org
Sun May 1 13:24:29 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-mpc-plugin.

commit 37ef15437110d344ab68f5816dae01fb00cbb941
Author: Landry Breuil <landry at xfce.org>
Date:   Sun May 1 13:16:59 2016 +0200

    Remove compat code for panel < 4.9
---
 panel-plugin/xfce4-mpc-plugin.c | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index 1e1062f..f70784e 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -34,13 +34,6 @@
 #define DEFAULT_MPD_PORT 6600
 #define DIALOG_ENTRY_WIDTH 20
 
-#ifdef LIBXFCE4PANEL_CHECK_VERSION
-#if LIBXFCE4PANEL_CHECK_VERSION (4,9,0)
-#define HAS_PANEL_49
-#endif
-#endif
-
-
 static void
 mpc_free (XfcePanelPlugin * plugin, t_mpc * mpc)
 {
@@ -50,7 +43,6 @@ mpc_free (XfcePanelPlugin * plugin, t_mpc * mpc)
    g_free (mpc);
 }
 
-#ifdef HAS_PANEL_49
 static void
 mpc_set_mode (XfcePanelPlugin * plugin, XfcePanelPluginMode mode, t_mpc * mpc)
 {
@@ -65,23 +57,11 @@ mpc_set_mode (XfcePanelPlugin * plugin, XfcePanelPluginMode mode, t_mpc * mpc)
    xfce_panel_plugin_set_small (plugin, (mode != XFCE_PANEL_PLUGIN_MODE_DESKBAR));
 }
 
-#else
-static void
-mpc_set_orientation (XfcePanelPlugin * plugin, GtkOrientation orientation, t_mpc * mpc)
-{
-   DBG ("!");
-
-   xfce_hvbox_set_orientation(XFCE_HVBOX(mpc->box), orientation);
-}
-#endif
-
 static gboolean
 mpc_set_size (XfcePanelPlugin * plugin, int size, t_mpc * mpc)
 {
    int border_width = (size > 26 && mpc->show_frame ? 1 : 0);
-#ifdef HAS_PANEL_49
     size /= xfce_panel_plugin_get_nrows (plugin);
-#endif
 
    DBG ("size=%d",size);
    gtk_container_set_border_width (GTK_CONTAINER (mpc->frame), border_width);
@@ -836,12 +816,8 @@ mpc_construct (XfcePanelPlugin * plugin)
    g_signal_connect (plugin, "free-data", G_CALLBACK (mpc_free), mpc);
    g_signal_connect (plugin, "save", G_CALLBACK (mpc_write_config), mpc);
    g_signal_connect (plugin, "size-changed", G_CALLBACK (mpc_set_size), mpc);
-#ifdef HAS_PANEL_49
    g_signal_connect (plugin, "mode-changed", G_CALLBACK (mpc_set_mode), mpc);
    xfce_panel_plugin_set_small (plugin, TRUE);
-#else
-   g_signal_connect (plugin, "orientation-changed", G_CALLBACK (mpc_set_orientation), mpc);
-#endif
    /* the configure and about menu items are hidden by default */
    xfce_panel_plugin_menu_show_configure (plugin);
 

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


More information about the Xfce4-commits mailing list