Re: Problem: hiding window
- From: Daniel Pekelharing <legendstar gmail com>
- To: Deependra Shekhawat <openbysource yahoo co in>
- Cc: Gtk developers <gtk-app-devel-list gnome org>
- Subject: Re: Problem: hiding window
- Date: Sat, 15 Apr 2006 00:40:26 +0200
On Fri, 2006-04-14 at 21:21 -0700, Deependra Shekhawat wrote:
void on_butt_close_clicked(GtkButton *button,gpointer
user_data)
{
gtk_widget_hide((GtkWidget *)user_data);
}
I may be wrong about this, but I think you want to write this function
like:
gint on_butt_close_clicked(GtkButton *button, gpointer user_data)
{
gtk_widget_hide((GtkWidget *)user_data);
return TRUE;
}
Returning TRUE will prevent the window from being destroyed..
Hope this helps..
--
Daniel Pekelharing
<legendstar gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]