Fix compiler warning
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 6 Oct 2017 09:46:40 +0000 (11:46 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 10 Oct 2017 15:30:49 +0000 (17:30 +0200)
src/ui/gui/psppire-dictview.c

index f09cb57ad7dbd2e5984de0898663b22cca8fa7d4..fc2c0325613f81d8c7534e831efa232940766b2e 100644 (file)
@@ -512,9 +512,9 @@ set_tooltip_for_variable (GtkTreeView  *treeview,
 }
 
 static gboolean
-show_menu (PsppireDictView *dv, GdkEventButton *event, gpointer data)
+show_menu (PsppireDictView *dv, GdkEvent *event, gpointer data)
 {
-  if (event->button != 3)
+  if (((GdkEventButton *) event)->button != 3)
     return FALSE;
 
   gtk_menu_popup_at_pointer (GTK_MENU (dv->menu), event);