ui/gtk/menu.c

branch
newapi
changeset 391
fc0df448dfbc
parent 390
b130f80ec7f9
child 392
df62b7205bd3
equal deleted inserted replaced
390:b130f80ec7f9 391:fc0df448dfbc
365 if(event->type == GDK_BUTTON_PRESS) { 365 if(event->type == GDK_BUTTON_PRESS) {
366 GdkEventButton *e = (GdkEventButton*)event; 366 GdkEventButton *e = (GdkEventButton*)event;
367 if(e->button == 3) { 367 if(e->button == 3) {
368 gtk_widget_show_all(GTK_WIDGET(menu)); 368 gtk_widget_show_all(GTK_WIDGET(menu));
369 ui_contextmenu_popup(menu, widget, 0, 0); 369 ui_contextmenu_popup(menu, widget, 0, 0);
370 return TRUE;
371 } 370 }
372 } 371 }
373 return FALSE; 372 return FALSE;
374 } 373 }
375 374

mercurial