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:
Mart Raudsepp 2006-02-03 21:57:03 +00:00
parent 370dc79c5a
commit 67b73b9aab
2 changed files with 21 additions and 18 deletions

View File

@ -75,12 +75,13 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
GtkPizza *pizza = GTK_PIZZA(widget);
gtk_draw_shadow( widget->style,
pizza->bin_window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
0, 0,
win->m_width, win->m_height );
gtk_paint_shadow (widget->style,
pizza->bin_window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
NULL, NULL, NULL, // FIXME: No clipping?
0, 0,
win->m_width, win->m_height);
if (!win->GetTitle().empty() &&
((win->GetWindowStyle() & wxCAPTION) ||

View File

@ -358,23 +358,25 @@ static void draw_frame( GtkWidget *widget, wxWindowGTK *win )
if (win->HasFlag(wxRAISED_BORDER))
{
gtk_draw_shadow( widget->style,
widget->window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
dx, dy,
widget->allocation.width-dw, widget->allocation.height-dh );
gtk_paint_shadow (widget->style,
widget->window,
GTK_STATE_NORMAL,
GTK_SHADOW_OUT,
NULL, NULL, NULL, // FIXME: No clipping?
dx, dy,
widget->allocation.width-dw, widget->allocation.height-dh );
return;
}
if (win->HasFlag(wxSUNKEN_BORDER))
{
gtk_draw_shadow( widget->style,
widget->window,
GTK_STATE_NORMAL,
GTK_SHADOW_IN,
dx, dy,
widget->allocation.width-dw, widget->allocation.height-dh );
gtk_paint_shadow (widget->style,
widget->window,
GTK_STATE_NORMAL,
GTK_SHADOW_IN,
NULL, NULL, NULL, // FIXME: No clipping?
dx, dy,
widget->allocation.width-dw, widget->allocation.height-dh );
return;
}