Re: how to make a button not close a gtk_dialog?



Joergen Scheibengruber wrote:

Hi!

I am currently adding a help to my gnome application. And I came accross
a little problem: I added a help button to my dialogs, which were
created with gtk_dialog_new_with_buttons(). Everything works fine, but
when the user clicks the "help" button, the dialog gets closed. But in
case of the "help" button, I want to keep the dialog open ("cancel" and
"ok" shall of course not change behaviour).

Is there an easy way to achieve this? I can't seem to find any in the
gtk documentation...
What would you suggest?

Hello, Jörgen
As I know gtk itself doesnt destroy the dialog. You have to do
this in "response" callback or after gtk_dialog_run() or another
way you want.
Maybe you have "response" callback that destroys the dialog
without checking *response* vaule (BTW, GTK_RESPONSE_HELP
in your case) ? Are you keeping in mind that you can connect
more than one callback to a signal ?
You can post the piece of your source, dealing with dialog, - this will
help to find the problem.

Olexiy






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