forked from AuroraMiddleware/gtk
spinbutton: Get rid of gdk_drawable_get_size() usage
This commit is contained in:
parent
fb43f590e9
commit
f0c067063c
@ -803,18 +803,17 @@ gtk_spin_button_draw (GtkWidget *widget,
|
||||
|
||||
if (shadow_type != GTK_SHADOW_NONE)
|
||||
{
|
||||
gint width, height;
|
||||
GtkStateType state;
|
||||
|
||||
state = gtk_widget_has_focus (widget) ?
|
||||
GTK_STATE_ACTIVE : gtk_widget_get_state (widget);
|
||||
|
||||
gdk_drawable_get_size (priv->panel, &width, &height);
|
||||
|
||||
gtk_paint_box (gtk_widget_get_style (widget), cr,
|
||||
state, shadow_type,
|
||||
widget, "spinbutton",
|
||||
0, 0, width, height);
|
||||
0, 0,
|
||||
gdk_window_get_width (priv->panel),
|
||||
gdk_window_get_height (priv->panel));
|
||||
}
|
||||
|
||||
gtk_spin_button_draw_arrow (spin, cr, GTK_ARROW_UP);
|
||||
|
Loading…
Reference in New Issue
Block a user