summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-04-11 15:33:00 +0000
committerSam Spilsbury <smspillaz@gmail.com>2010-04-11 15:33:00 +0000
commitb72fbeed15b6a7bee5a2e808a764c72765c0de12 (patch)
tree23c5a60f505fc4ac84b778d8b5ddef05f818a3d5 /gtk
parent285810422488be12e8589658c73bbea7aa1fc717 (diff)
downloadzcomp-b72fbeed15b6a7bee5a2e808a764c72765c0de12.tar.gz
zcomp-b72fbeed15b6a7bee5a2e808a764c72765c0de12.tar.bz2
Fix wrongly drawn window icon in 3D gtk mode
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index 47c4897..793e4a9 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -3589,8 +3589,12 @@ update_window_decoration_icon (WnckWindow *win)
g_object_ref (G_OBJECT (d->icon_pixbuf));
- d->icon_pixmap = pixmap_new_from_pixbuf (d->icon_pixbuf,
- 24);
+ if (d->frame_window)
+ d->icon_pixmap = pixmap_new_from_pixbuf (d->icon_pixbuf,
+ 24);
+ else
+ d->icon_pixmap = pixmap_new_from_pixbuf (d->icon_pixbuf,
+ 32);
cr = gdk_cairo_create (GDK_DRAWABLE (d->icon_pixmap));
d->icon = cairo_pattern_create_for_surface (cairo_get_target (cr));
cairo_destroy (cr);