hey void show_progress(GtkWidget *progress_bar_dialog, double progress_value) { GtkWidget *progress_bar = lookup_widget(progress_bar_dialog,"progressbar1"); gtk_progress_bar_set_fraction((GtkProgressBar *)progress_bar,progress_value); while(gtk_events_pending()) gtk_main_iteration(); } void on_Img_Prc_Man_Wnd_Nos_Rmv_clicked (GtkButton *button, gpointer user_data) { /* If there is no image on display */ if(pix == NULL) return; GtkWidget *progress_bar_dialog = create_Img_Prc_Prg_Bar_Dlg(); gtk_widget_show_all(progress_bar_dialog); show_progress(progress_bar_dialog,0.2); GtkWidget *app = gtk_widget_get_toplevel(GTK_WIDGET(button)); if(last_feature != NOISE_REMOVAL) { /* Saves template of active image view */ save_image_to_file("template.jpg"); show_progress(progress_bar_dialog,0.3); } char call_noise[100]; sprintf(call_noise,"./noise %s",active_filename); system(call_noise); show_progress(progress_bar_dialog,0.5); /************ Double Linked List For Traversing ***************/ gint16 *Img_Prc_Img_Num_Dll = gtk_object_get_data(GTK_OBJECT(app),"Img_Prc_Img_Num_Dll"); if(*Img_Prc_Img_Num_Dll == -1) /* Save last image to Double linked list for traversing */ Sav_Act_Img_Too_Dll(app); /* The last action done was back or forward or any non image manipulation features */ else Img_Prc_Dlt_Dll_Elm(app); *Img_Prc_Img_Num_Dll = -1; /************ Double Linked List For Traversing ***************/ show_progress(progress_bar_dialog,0.7); GtkWidget *eventbox1 = lookup_widget(app,"eventbox1"); display_image(eventbox1,"NewImage.jpg",&image_added); /* Resetting all bar values */ reset_all_bar_values(app); show_progress(progress_bar_dialog,0.9); last_feature = NOISE_REMOVAL; gtk_widget_destroy(progress_bar_dialog); } Hope this helps Abhishek Samuel --- Thierry Lam <lam@xxxxxxxxxxxxxxxx> wrote: > Hi, > > Can I see the sample code on how you made > GtkProgressBar work? I'm > facing the same problem where my progress bar is not > being displayed > properly. > > Thanks > Thierry > > -----Original Message----- > From: abhi rocks [mailto:badsep11@xxxxxxxxx] > Sent: Thursday, May 12, 2005 6:29 AM > To: gtk-app-devel-list; gtk-list > Subject: Re: GtkProgressBar > > hey > > Thanks a lot guys, its working fine now. > > Thank You > Abhishek Samuel > > > > > > ___________________________________________________________ > > Yahoo! Messenger - want a free and easy way to > contact your friends > online? http://uk.messenger.yahoo.com > _______________________________________________ > > gtk-list@xxxxxxxxx > http://mail.gnome.org/mailman/listinfo/gtk-list > > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list