Mercurial > hg > forks > geeqie
changeset 2097:7b9500f1741b
more gtk3 drawing fixes
author | Vladimir Nadvornik <nadvornik@suse.cz> |
---|---|
date | Mon, 20 Aug 2012 17:18:34 +0200 |
parents | d9639ff548b1 |
children | 6e1d3aafb7c3 |
files | src/ui_bookmark.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ui_bookmark.c Sun Aug 19 00:34:20 2012 +0200 +++ b/src/ui_bookmark.c Mon Aug 20 17:18:34 2012 +0200 @@ -505,9 +505,13 @@ gtk_widget_get_allocation(button, &allocation); +#if GTK_CHECK_VERSION(3,0,0) + pixbuf = gdk_pixbuf_get_from_window(gtk_widget_get_window(button), + allocation.x, allocation.y, + allocation.width, allocation.height); +#else pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8, allocation.width, allocation.height); -#if !GTK_CHECK_VERSION(3,0,0) gdk_pixbuf_get_from_drawable(pixbuf, gtk_widget_get_window(button), NULL, allocation.x, allocation.y, 0, 0, allocation.width, allocation.height);