Kaydet (Commit) a213af34 authored tarafından Caolán McNamara's avatar Caolán McNamara

valgrind: padding is not set

Change-Id: Ide7423fb52110aacc1edf8ca94083e76f408e7ff
üst 5a009a43
...@@ -566,6 +566,8 @@ void GtkSalGraphics::PaintOneSpinButton( GtkStyleContext *context, ...@@ -566,6 +566,8 @@ void GtkSalGraphics::PaintOneSpinButton( GtkStyleContext *context,
gtk_style_context_set_state(context, stateFlags); gtk_style_context_set_state(context, stateFlags);
gtk_style_context_add_class(context, GTK_STYLE_CLASS_BUTTON); gtk_style_context_add_class(context, GTK_STYLE_CLASS_BUTTON);
gtk_style_context_get_padding(context, GTK_STATE_FLAG_NORMAL, &padding);
gtk_render_background(context, cr, gtk_render_background(context, cr,
(buttonRect.Left() - aAreaRect.Left()), (buttonRect.Top() - aAreaRect.Top()), (buttonRect.Left() - aAreaRect.Left()), (buttonRect.Top() - aAreaRect.Top()),
buttonRect.GetWidth(), buttonRect.GetHeight() ); buttonRect.GetWidth(), buttonRect.GetHeight() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment