Updating branch refs/heads/andrzejr/deskbar-github to 518d5b23e8afc0f94834e901598cc6fd6901bc62 (commit) from d77a15de409af6a35ba584bc1ed3bd2828f5b0fc (commit)
commit 518d5b23e8afc0f94834e901598cc6fd6901bc62 Author: Andrzej <ndrwr...@gmail.com> Date: Tue Nov 22 12:45:45 2011 +0900 applications menu: changing label orientation and ordering in plain vertical mode. plugins/applicationsmenu/applicationsmenu.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/plugins/applicationsmenu/applicationsmenu.c b/plugins/applicationsmenu/applicationsmenu.c index c82e948..e791b6b 100644 --- a/plugins/applicationsmenu/applicationsmenu.c +++ b/plugins/applicationsmenu/applicationsmenu.c @@ -469,7 +469,16 @@ applications_menu_plugin_orientation_changed (XfcePanelPlugin *panel_plugin, orientation = GTK_ORIENTATION_HORIZONTAL; xfce_hvbox_set_orientation (XFCE_HVBOX (plugin->box), orientation); - gtk_label_set_angle (GTK_LABEL (plugin->label), orientation == GTK_ORIENTATION_HORIZONTAL ? 0 : 270); + if (orientation == GTK_ORIENTATION_HORIZONTAL) + { + gtk_box_reorder_child (plugin->box, plugin->icon, 0); + gtk_label_set_angle (GTK_LABEL (plugin->label), 0); + } + else + { + gtk_box_reorder_child (plugin->box, plugin->icon, -1); + gtk_label_set_angle (GTK_LABEL (plugin->label), 90); + } } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits