summaryrefslogtreecommitdiff
path: root/gtk/gtkwin32theme.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-02-17 04:18:29 +0100
committerBenjamin Otte <otte@redhat.com>2016-02-17 04:36:18 +0100
commitc98007f9fd3db6d27c6916f28d2b1867c93bd072 (patch)
tree35fc068829bed1bd7138263f00164b26a3741427 /gtk/gtkwin32theme.c
parent37e3ccb2f67729ecdef6605455e6bf2b8b0279d7 (diff)
downloadgtk+-c98007f9fd3db6d27c6916f28d2b1867c93bd072.tar.gz
win32: Add fallback code to draw theme parts
Diffstat (limited to 'gtk/gtkwin32theme.c')
-rw-r--r--gtk/gtkwin32theme.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/gtk/gtkwin32theme.c b/gtk/gtkwin32theme.c
index 8288f5d94d..dced7c7f10 100644
--- a/gtk/gtkwin32theme.c
+++ b/gtk/gtkwin32theme.c
@@ -310,7 +310,6 @@ gtk_win32_theme_create_surface (GtkWin32Theme *theme,
int *y_offs_out)
{
cairo_surface_t *surface;
- GdkRGBA color;
cairo_t *cr;
int x_offs;
int y_offs;
@@ -378,10 +377,7 @@ gtk_win32_theme_create_surface (GtkWin32Theme *theme,
cr = cairo_create (surface);
- /* XXX: Do something better here (like printing the theme parts) */
- gdk_rgba_parse (&color, "pink");
- gdk_cairo_set_source_rgba (cr, &color);
- cairo_paint (cr);
+ gtk_win32_draw_theme_background (cr, theme->class_name, xp_part, state, width, height);
cairo_destroy (cr);
@@ -432,10 +428,7 @@ gtk_win32_theme_get_part_size (GtkWin32Theme *theme,
}
#endif
- if (width)
- *width = 1;
- if (height)
- *height = 1;
+ gtk_win32_get_theme_part_size (theme->class_name, part, state, width, height);
}
int