[Glade-users] Signal question.
Alexey Kurochkin
alexey.kurochkin at pathfinderlwd.com
Mon Oct 13 16:29:30 EDT 2008
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.
More information about the Glade-users
mailing list