[gtk+] scrolledwindow: fix left/right thinko for scrollbar style classes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolledwindow: fix left/right thinko for scrollbar style classes
- Date: Thu, 3 Mar 2016 00:09:53 +0000 (UTC)
commit 1395f3a8383f2d46734bc65a54756e2b83013b40
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Mar 2 16:08:19 2016 -0800
scrolledwindow: fix left/right thinko for scrollbar style classes
"left" and "right" were inverted, preumably because the position type
parameter refers to the scrolled window position, and not the scrollbar
itself.
gtk/gtkscrolledwindow.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 0df1a62..3b62519 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -477,13 +477,13 @@ update_scrollbar_positions (GtkScrolledWindow *scrolled_window)
(priv->window_placement == GTK_CORNER_TOP_LEFT ||
priv->window_placement == GTK_CORNER_BOTTOM_LEFT)))
{
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_LEFT);
- gtk_style_context_remove_class (context, GTK_STYLE_CLASS_RIGHT);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_RIGHT);
+ gtk_style_context_remove_class (context, GTK_STYLE_CLASS_LEFT);
}
else
{
- gtk_style_context_remove_class (context, GTK_STYLE_CLASS_LEFT);
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_RIGHT);
+ gtk_style_context_remove_class (context, GTK_STYLE_CLASS_RIGHT);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_LEFT);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]