Re: Something like console widget

2005-04-19 Thread Eduardo M KALINOWSKI
Pavel Syomin wrote: Hi, I am going to write GTK+ application, that will use something like console window as one of possible ways to interact with users. I looked on libvte, but it's require to have another application to run, but I need something looked as console widget to integrate it to my

Re: Progress bars and syscals

2005-04-19 Thread Tristan Van Berkom
Paolo Costabel wrote: You need to call while( g_main_iteration (FALSE)); to update the progress bar. The gtk_progress_bar_set_fraction queues draw requests that are then executed inside gtk main event loop. Be careful that calling g_main_iteration also processes user messages, so if the user clic

Re: Progress bars and syscals

2005-04-19 Thread Paolo Costabel
You need to call while( g_main_iteration (FALSE)); to update the progress bar. The gtk_progress_bar_set_fraction queues draw requests that are then executed inside gtk main event loop. Be careful that calling g_main_iteration also processes user messages, so if the user clicks on something, the c

Re: problems to make the datas appear in a TREE ...

2005-04-19 Thread Antonio Gomes
Hi Santhosh, > > for (list = history_list->history, i = 0; list ; list = > > list->next, i++) { > > > GtkTreeStore *store = GTK_TREE_STORE > > > (gtk_tree_view_get_model(GTK_TREE_VIEW(tree))); > > > gtk_tree_store_append(store, iter, NULL); > > Here a top-level

Progress bars and syscals

2005-04-19 Thread Fireel
Hello, Since i'm quite new to both C and Gtk, i met a problem which i am not able to solve. The base of the problem is that i have a task, which should fetch several files from the internet. When a button is pressed, a new window with a progress bar opens and indicates the progress of the

Re: (no subject)

2005-04-19 Thread Holczer Szilard
On Tue, 2005-04-19 at 15:59 +0800, lijian wrote: > Hello,I am new to learn gtk. > I have write a very simple program,the following is the source code: > - > hscroll=gtk_hscrollbar_new(GTK_TEXT(text)->hadj); hscroll=

Something like console widget

2005-04-19 Thread Pavel Syomin
Hi, I am going to write GTK+ application, that will use something like console window as one of possible ways to interact with users. I looked on libvte, but it's require to have another application to run, but I need something looked as console widget to integrate it to my application. Can any

Re: (no subject)

2005-04-19 Thread Darryl Luff
lijian wrote: >Hello,I am new to learn gtk. >I have write a very simple program,the following is the source code: >- > #include >#include >#define GTK_ENABLE_BROKEN > >gint delete_event(GtkWidget * window ,gpointer data) >{ >

(no subject)

2005-04-19 Thread lijian
Hello,I am new to learn gtk. I have write a very simple program,the following is the source code: - #include #include #define GTK_ENABLE_BROKEN gint delete_event(GtkWidget * window ,gpointer data) { gtk_main_quit();