Commit b7fe8d33 authored by Victor Ananjevsky's avatar Victor Ananjevsky

fix build with older gtk3

parent 90284629
......@@ -888,7 +888,7 @@ popup_menu_cb (GtkWidget * w, GdkEventButton * ev, gpointer data)
gtk_widget_show (menu);
}
#if GTK_CHECK_VERSION(3,0,0)
#if GTK_CHECK_VERSION(3,22,0)
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
#else
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, ev->button, ev->time);
......
......@@ -224,7 +224,7 @@ button_handler (GtkWidget *w, GdkEventButton *ev, gpointer data)
{
if (ev->button == 3)
{
#if GTK_CHECK_VERSION(3,0,0)
#if GTK_CHECK_VERSION(3,22,0)
gtk_menu_popup_at_pointer (GTK_MENU (popup_menu), NULL);
#else
gtk_menu_popup (GTK_MENU (popup_menu), NULL, NULL, NULL, NULL, ev->button, ev->time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment