[gtk+] cssimagewin32: IMplement printing
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssimagewin32: IMplement printing
- Date: Sat, 27 Feb 2016 04:21:27 +0000 (UTC)
commit a2fa6471995a6cdda3c4e3884f30c90cddbe1143
Author: Benjamin Otte <otte gnome org>
Date: Sat Feb 27 00:40:09 2016 +0100
cssimagewin32: IMplement printing
Caveat: over() and margins() arent' printed, but they are soon gonna
be removed anyway.
gtk/gtkcssimagewin32.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssimagewin32.c b/gtk/gtkcssimagewin32.c
index 05ced5d..d03faba 100644
--- a/gtk/gtkcssimagewin32.c
+++ b/gtk/gtkcssimagewin32.c
@@ -216,7 +216,11 @@ static void
gtk_css_image_win32_print (GtkCssImage *image,
GString *string)
{
- g_string_append (string, "none /* printing win32 theme components is not implemented */");
+ GtkCssImageWin32 *wimage = GTK_CSS_IMAGE_WIN32 (image);
+
+ g_string_append (string, "-gtk-win32-theme-part(");
+ gtk_win32_theme_print (wimage->theme, string);
+ g_string_append_printf (string, ", %d, %d)", wimage->part, wimage->state);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]