Re: Problem: hiding window

On Fri, 2006-04-14 at 21:21 -0700, Deependra Shekhawat wrote:
void on_butt_close_clicked(GtkButton *button,gpointer
   gtk_widget_hide((GtkWidget *)user_data);

I may be wrong about this, but I think you want to write this function

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]