[Glade-users] Signal question.



On Mon, 2008-10-13 at 10:41 -0500, Peter Keller wrote:
Hello,

When implementing the generic Help->About menuitem using glade-3 and
gtk+-2.0, I have it call a signal which gtk_widget_shows the dialog
box. For the dialog box, the response function (which is apparently the
close button) end up calling gtk_widget_hide to make it go away.

However, when I close the window using the window manager buttons in
the corner of the window, it seems the dialog box is forever destroyed
and unable to be gotten back again.

I've tried connecting a signal to the GtkObject destroy signal to hide
the window instead, and it is called--but the window is destroyed anyway.

Any suggesstions?

I do not think GtkObject's "destroy" is the right signal. You might want
to try connecting gtk_widget_hide_on_delete() to "delete-event" signal
on the widget, or any custom function for that matter which would call
gtk_widget_hide() and return TRUE.





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