[Xfce4-commits] [panel-plugins/xfce4-mpc-plugin] 04/10: Use GtkBox instead of XfceHVBox, use GtkOrientable

noreply at xfce.org noreply at xfce.org
Sun May 1 13:24:32 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 4f5083a278c0eaa2b67587d47c49ecde245f9a52
Author: Landry Breuil <landry at xfce.org>
Date:   Sun May 1 13:19:59 2016 +0200

    Use GtkBox instead of XfceHVBox, use GtkOrientable
---
 panel-plugin/xfce4-mpc-plugin.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/xfce4-mpc-plugin.c b/panel-plugin/xfce4-mpc-plugin.c
index 38c0a93..3a552cf 100644
--- a/panel-plugin/xfce4-mpc-plugin.c
+++ b/panel-plugin/xfce4-mpc-plugin.c
@@ -52,7 +52,7 @@ mpc_set_mode (XfcePanelPlugin * plugin, XfcePanelPluginMode mode, t_mpc * mpc)
       (mode != XFCE_PANEL_PLUGIN_MODE_VERTICAL) ?
       GTK_ORIENTATION_HORIZONTAL : GTK_ORIENTATION_VERTICAL;
 
-   xfce_hvbox_set_orientation(XFCE_HVBOX(mpc->box), orientation);
+   gtk_orientable_set_orientation(GTK_ORIENTABLE(mpc->box), orientation);
    xfce_panel_plugin_set_small (plugin, (mode != XFCE_PANEL_PLUGIN_MODE_DESKBAR));
 }
 
@@ -259,7 +259,7 @@ mpc_create_options (XfcePanelPlugin * plugin, t_mpc* mpc)
 
    g_signal_connect (dlg, "response", G_CALLBACK (mpc_dialog_response), dialog);
 
-   vbox = gtk_vbox_new (FALSE, 8);
+   vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
    gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
    gtk_widget_show (vbox);
    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox, TRUE, TRUE, 0);
@@ -725,7 +725,7 @@ mpc_create (XfcePanelPlugin * plugin)
    gtk_frame_set_shadow_type (GTK_FRAME (mpc->frame), GTK_SHADOW_IN);
    gtk_widget_show (mpc->frame);
 
-   mpc->box = xfce_hvbox_new(xfce_panel_plugin_get_orientation(plugin), FALSE, 0);
+   mpc->box = gtk_box_new(xfce_panel_plugin_get_orientation(plugin), 0);
 
    gtk_container_add (GTK_CONTAINER(mpc->frame), mpc->box);
 

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


More information about the Xfce4-commits mailing list