mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 17:04:56 +01:00
Don't access members directly and make it GTK+3 compatible.
This commit is contained in:
parent
dccac1580b
commit
dd26ed1379
1 changed files with 1 additions and 1 deletions
|
@ -706,7 +706,7 @@ cb_menu_image_copy(GtkMenuItem* item, ZathuraPage* page)
|
|||
int width = cairo_image_surface_get_width(surface);
|
||||
int height = cairo_image_surface_get_height(surface);
|
||||
|
||||
GdkPixmap* pixmap = gdk_pixmap_new(GTK_WIDGET(item)->window, width, height, -1);
|
||||
GdkPixmap* pixmap = gdk_pixmap_new(gtk_widget_get_window(GTK_WIDGET(item)), width, height, -1);
|
||||
cairo_t* cairo = gdk_cairo_create(pixmap);
|
||||
|
||||
cairo_set_source_surface(cairo, surface, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue