GTK2: gtk_draw_* -> gtk_paint_*
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,12 +75,13 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
|
|||||||
|
|
||||||
GtkPizza *pizza = GTK_PIZZA(widget);
|
GtkPizza *pizza = GTK_PIZZA(widget);
|
||||||
|
|
||||||
gtk_draw_shadow( widget->style,
|
gtk_paint_shadow (widget->style,
|
||||||
pizza->bin_window,
|
pizza->bin_window,
|
||||||
GTK_STATE_NORMAL,
|
GTK_STATE_NORMAL,
|
||||||
GTK_SHADOW_OUT,
|
GTK_SHADOW_OUT,
|
||||||
0, 0,
|
NULL, NULL, NULL, // FIXME: No clipping?
|
||||||
win->m_width, win->m_height );
|
0, 0,
|
||||||
|
win->m_width, win->m_height);
|
||||||
|
|
||||||
if (!win->GetTitle().empty() &&
|
if (!win->GetTitle().empty() &&
|
||||||
((win->GetWindowStyle() & wxCAPTION) ||
|
((win->GetWindowStyle() & wxCAPTION) ||
|
||||||
|
@@ -358,23 +358,25 @@ static void draw_frame( GtkWidget *widget, wxWindowGTK *win )
|
|||||||
|
|
||||||
if (win->HasFlag(wxRAISED_BORDER))
|
if (win->HasFlag(wxRAISED_BORDER))
|
||||||
{
|
{
|
||||||
gtk_draw_shadow( widget->style,
|
gtk_paint_shadow (widget->style,
|
||||||
widget->window,
|
widget->window,
|
||||||
GTK_STATE_NORMAL,
|
GTK_STATE_NORMAL,
|
||||||
GTK_SHADOW_OUT,
|
GTK_SHADOW_OUT,
|
||||||
dx, dy,
|
NULL, NULL, NULL, // FIXME: No clipping?
|
||||||
widget->allocation.width-dw, widget->allocation.height-dh );
|
dx, dy,
|
||||||
|
widget->allocation.width-dw, widget->allocation.height-dh );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (win->HasFlag(wxSUNKEN_BORDER))
|
if (win->HasFlag(wxSUNKEN_BORDER))
|
||||||
{
|
{
|
||||||
gtk_draw_shadow( widget->style,
|
gtk_paint_shadow (widget->style,
|
||||||
widget->window,
|
widget->window,
|
||||||
GTK_STATE_NORMAL,
|
GTK_STATE_NORMAL,
|
||||||
GTK_SHADOW_IN,
|
GTK_SHADOW_IN,
|
||||||
dx, dy,
|
NULL, NULL, NULL, // FIXME: No clipping?
|
||||||
widget->allocation.width-dw, widget->allocation.height-dh );
|
dx, dy,
|
||||||
|
widget->allocation.width-dw, widget->allocation.height-dh );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user