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 |