projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5698b4a
)
more gtk3 drawing fixes
author
Vladimir Nadvornik
<nadvornik@suse.cz>
Mon, 20 Aug 2012 15:18:34 +0000
(17:18 +0200)
committer
Vladimir Nadvornik
<nadvornik@suse.cz>
Mon, 20 Aug 2012 15:18:34 +0000
(17:18 +0200)
src/ui_bookmark.c
patch
|
blob
|
history
diff --git
a/src/ui_bookmark.c
b/src/ui_bookmark.c
index
0f392b5
..
0c985f4
100644
(file)
--- a/
src/ui_bookmark.c
+++ b/
src/ui_bookmark.c
@@
-505,9
+505,13
@@
static void bookmark_drag_begin(GtkWidget *button, GdkDragContext *context, gpoi
gtk_widget_get_allocation(button, &allocation);
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);
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);
gdk_pixbuf_get_from_drawable(pixbuf, gtk_widget_get_window(button), NULL,
allocation.x, allocation.y,
0, 0, allocation.width, allocation.height);