[Xfce4-commits] <xfce4-panel:devel> Draw separator handle in correct direction.
Nick Schermer
noreply at xfce.org
Thu Jan 21 17:08:01 CET 2010
Updating branch refs/heads/devel
to 1ba23865eebdb346942d490f477aa2f1eadf8e93 (commit)
from 707ac74bb6bc2a257dd41d1bb84cfb0cb834ae07 (commit)
commit 1ba23865eebdb346942d490f477aa2f1eadf8e93
Author: Nick Schermer <nick at xfce.org>
Date: Thu Jan 21 16:26:48 2010 +0100
Draw separator handle in correct direction.
plugins/separator/separator.c | 7 +++++--
plugins/windowmenu/windowmenu.c | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/plugins/separator/separator.c b/plugins/separator/separator.c
index e4a5ff5..a3001da 100644
--- a/plugins/separator/separator.c
+++ b/plugins/separator/separator.c
@@ -258,8 +258,11 @@ separator_plugin_expose_event (GtkWidget *widget,
&(event->area),
widget, "handlebox",
alloc->x, alloc->y,
- alloc->width, alloc->height,
- xfce_panel_plugin_get_orientation (XFCE_PANEL_PLUGIN (plugin)));
+ alloc->width,
+ alloc->height,
+ xfce_panel_plugin_get_orientation (XFCE_PANEL_PLUGIN (plugin)) ==
+ GTK_ORIENTATION_HORIZONTAL ? GTK_ORIENTATION_VERTICAL
+ : GTK_ORIENTATION_HORIZONTAL);
break;
case SEPARATOR_PLUGIN_STYLE_DOTS:
diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c
index 6331409..13357d5 100644
--- a/plugins/windowmenu/windowmenu.c
+++ b/plugins/windowmenu/windowmenu.c
@@ -375,7 +375,7 @@ static void
window_menu_plugin_style_set (GtkWidget *widget,
GtkStyle *previous_style)
{
- WindowMenuPlugin *plugin = XFCE_WINDOW_MENU_PLUGIN (widget);
+ WindowMenuPlugin *plugin = XFCE_WINDOW_MENU_PLUGIN (widget);
/* let gtk update the widget style */
(*GTK_WIDGET_CLASS (window_menu_plugin_parent_class)->style_set) (widget, previous_style);
More information about the Xfce4-commits
mailing list