Pergunta

Como posso conectar a função "drawerAea_button_press_press_event_cb" do aplicativo GTK+?

void drawingarea_button_press_event_cb( GtkWidget *widget, GdkEventButton *event )
{
 ........
}
Foi útil?

Solução

Inspecione o Estado campo do GdkEventButton estrutura. Terá o GDK_CONTROL_MASK Bit definido se o controle estiver sendo retido:

if(event->state & GDK_CONTROL_MASK)
  printf("You're totally in control!\n");
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top