Fixed a small error in the drawing code transcription.
This commit is contained in:
parent
65efca6c30
commit
da991fd5bd
|
@ -152,7 +152,9 @@ static gint dateTimePicker_draw(GtkWidget *w, cairo_t *cr)
|
||||||
y = (allocation.height - minHeight) / 2;
|
y = (allocation.height - minHeight) / 2;
|
||||||
width = allocation.width;
|
width = allocation.width;
|
||||||
height = minHeight;
|
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) {
|
if (gtk_widget_has_focus(GTK_WIDGET(d)) & !m.interiorFocus) {
|
||||||
x += m.focusWidth;
|
x += m.focusWidth;
|
||||||
y += m.focusWidth;
|
y += m.focusWidth;
|
||||||
|
|
Loading…
Reference in New Issue