Greetings everybody!
I need help with drawing handle-styles for paned-handles. Take a look
here to get an idea of the problem at hand. I wonder what maybe wrong with my handle-drawing code, which look like this:
Code:
GtkStateType state;
if (gtk_widget_is_focus (widget))
state = GTK_STATE_SELECTED;
else if (xpaned->handle_prelit)
state = GTK_STATE_PRELIGHT;
else
state = GTK_WIDGET_STATE (widget);
gtk_paint_handle (widget->style,
widget->window,
state,
GTK_SHADOW_NONE,
&xpaned->handle_pos_east,
widget,
"xpaned",
xpaned->handle_pos_east.x,
xpaned->handle_pos_east.y,
xpaned->handle_pos_east.height,
xpaned->handle_pos_east.width,
GTK_ORIENTATION_HORIZONTAL);
gtk_paint_handle (widget->style,
widget->window,
state,
GTK_SHADOW_NONE,
&xpaned->handle_pos_west,
widget,
"xpaned",
xpaned->handle_pos_west.x,
xpaned->handle_pos_west.y,
xpaned->handle_pos_west.height,
xpaned->handle_pos_west.width,
GTK_ORIENTATION_HORIZONTAL);
gtk_paint_handle (widget->style,
widget->window,
state,
GTK_SHADOW_NONE,
&xpaned->handle_pos_north,
widget,
"xpaned",
xpaned->handle_pos_north.x,
xpaned->handle_pos_north.y,
xpaned->handle_pos_north.height,
xpaned->handle_pos_north.width,
GTK_ORIENTATION_VERTICAL);
gtk_paint_handle (widget->style,
widget->window,
state,
GTK_SHADOW_NONE,
&xpaned->handle_pos_south,
widget,
"xpaned",
xpaned->handle_pos_south.x,
xpaned->handle_pos_south.y,
xpaned->handle_pos_south.height,
xpaned->handle_pos_south.width,
GTK_ORIENTATION_VERTICAL);
gtk_paint_handle (widget->style,
widget->window,
state,
GTK_SHADOW_NONE,
&xpaned->handle_pos_middle,
widget,
"xpaned",
xpaned->handle_pos_middle.x,
xpaned->handle_pos_middle.y,
xpaned->handle_pos_middle.height,
xpaned->handle_pos_middle.width,
GTK_ORIENTATION_HORIZONTAL);
Thanks in advance for your time and kind advice!
Best regards...
MacSlow