summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qgtkstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/styles/qgtkstyle.cpp')
-rw-r--r--src/gui/styles/qgtkstyle.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/styles/qgtkstyle.cpp b/src/gui/styles/qgtkstyle.cpp
index 0e54af8..84ec4af 100644
--- a/src/gui/styles/qgtkstyle.cpp
+++ b/src/gui/styles/qgtkstyle.cpp
@@ -789,24 +789,21 @@ void QGtkStyle::drawPrimitive(PrimitiveElement element,
case PE_IndicatorBranch:
if (option->state & State_Children) {
QRect rect = option->rect;
- rect = QRect(0, 0, 10, 10);
+ rect = QRect(0, 0, 12, 12);
rect.moveCenter(option->rect.center());
rect.translate(2, 0);
GtkExpanderStyle openState = GTK_EXPANDER_EXPANDED;
GtkExpanderStyle closedState = GTK_EXPANDER_COLLAPSED;
- GtkWidget *gtkExpander = QGtk::gtkWidget(QLS("GtkExpander"));
- guint expanderSize;
- QGtk::gtk_widget_style_get(gtkExpander, "expander-size", &expanderSize, NULL);
- // Note CleanIce will crash unless a GtkExpander is provided
- // but providing the expander will enforce the expander-size, which we
- // don't neccessarily have room for
+ GtkWidget *gtkTreeView = QGtk::gtkWidget(QLS("GtkTreeView"));
+
GtkStateType state = GTK_STATE_NORMAL;
if (!(option->state & State_Enabled))
state = GTK_STATE_INSENSITIVE;
else if (option->state & State_MouseOver)
state = GTK_STATE_PRELIGHT;
- gtkPainter.paintExpander(expanderSize <= 10 ? gtkExpander : NULL, "expander", rect, state,
- option->state & State_Open ? openState : closedState , gtkExpander->style);
+
+ gtkPainter.paintExpander(gtkTreeView, "treeview", rect, state,
+ option->state & State_Open ? openState : closedState , gtkTreeView->style);
}
break;
case PE_PanelItemViewItem: