Fixed a small error in the drawing code transcription.

This commit is contained in:
Pietro Gagliardi 2015-09-03 17:04:53 -04:00
parent 65efca6c30
commit da991fd5bd
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ static gint dateTimePicker_draw(GtkWidget *w, cairo_t *cr)
y = (allocation.height - minHeight) / 2;
width = allocation.width;
height = minHeight;
// cairo translate framex framey
cairo_translate(cr, x, y);
x = 0;
y = 0;
if (gtk_widget_has_focus(GTK_WIDGET(d)) & !m.interiorFocus) {
x += m.focusWidth;
y += m.focusWidth;