[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Dialog function?



Hi,

I had a question. In my program I need al lot of conformation dialogs. So I
thought of writeing a function for it. That's where I got stuck.

I would like something like this:
  int ask_question(char *question, int buttonflags);
so that you could do something like this:
  if(ask_question("Really quit?", BUTOK | BUTCANCEL) != BUTCANCEL) {

The problem is here, If I create a gtk_dialog, the buttons I put in it can
`gtk_signal_'connect to a function, but a other function the (for example)
ask_question. So that function can't return a putton value.

How do I solve this?

Gert



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]