Skip to content

Commit

Permalink
more gtk3 drawing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Aug 20, 2012
1 parent 5698b4a commit af6326d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui_bookmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,9 +505,13 @@ static void bookmark_drag_begin(GtkWidget *button, GdkDragContext *context, gpoi

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);
Expand Down

0 comments on commit af6326d

Please sign in to comment.