reinitialize application

2006-03-10 Thread Andreas Kotowicz
I have a main.c like this: int main (int argc, char *argv[]) { GtkWidget *window1; window1 = create_window1 (); gtk_widget_show (window1); gtk_main (); return 0; } and I have some callbacks in callbacks.c which modify some labels. now I want to create a button clear which deletes all

Re: reinitialize application

2006-03-10 Thread Nickolai Dobrynin
Andreas, I highly recommend that you go through the GTK+ tutorial first. This will give you some basic grounds on how GTK+ works. Just a few remarks here: 1. You probably want to use gtk_widget_show_all in your 'main' function, rather than just 'gtk_widget_show'. 2. If I understand you

Re: reinitialize application

2006-03-10 Thread Andreas Kotowicz
Hi, gtk_init( argc, argv); /* you do have this somewhere right? */ sorry, I forgot to post a bit of my main.c. so here's the complete one: int main (int argc, char *argv[]) { GtkWidget *window1; gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,

Re: reinitialize application

2006-03-10 Thread Andreas Kotowicz
On Fri, 2006-03-10 at 20:19 +0100, David Necas (Yeti) wrote: On Fri, Mar 10, 2006 at 07:40:25PM +0100, Andreas Kotowicz wrote: so what I'm looking after is a way to clear all those entry fields any other variables which might have changed during the running program. so just reinitialize

Re: reinitialize application

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 08:57:09PM +0100, Andreas Kotowicz wrote: I tried the destroy and construct way: void on_button4_clicked (GtkButton *button, gpointer user_data) {