mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 14:26:00 +01:00
Compile with GTK3
This commit is contained in:
parent
25320f5265
commit
69bb09c43b
1 changed files with 6 additions and 0 deletions
|
@ -637,6 +637,10 @@ zathura_page_widget_popup_menu(GtkWidget* widget, GdkEventButton* event)
|
|||
g_return_if_fail(event != NULL);
|
||||
zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(widget);
|
||||
|
||||
#if GTK_MAJOR_VERSION == 3 // FIXME
|
||||
return;
|
||||
#endif
|
||||
|
||||
if (priv->images_got == false) {
|
||||
priv->images = zathura_page_images_get(priv->page, NULL);
|
||||
priv->images_got = true;
|
||||
|
@ -704,6 +708,7 @@ cb_zathura_page_widget_popup_menu(GtkWidget* widget)
|
|||
static void
|
||||
cb_menu_image_copy(GtkMenuItem* item, ZathuraPage* page)
|
||||
{
|
||||
#if GTK_MAJOR_VERSION == 2 // FIXME
|
||||
g_return_if_fail(item != NULL);
|
||||
g_return_if_fail(page != NULL);
|
||||
zathura_page_widget_private_t* priv = ZATHURA_PAGE_GET_PRIVATE(page);
|
||||
|
@ -731,6 +736,7 @@ cb_menu_image_copy(GtkMenuItem* item, ZathuraPage* page)
|
|||
gtk_clipboard_set_image(gtk_clipboard_get(GDK_SELECTION_PRIMARY), pixbuf);
|
||||
|
||||
priv->current_image = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue