Re: word wrap in liststore column

2010-06-25 Thread Tristan Van Berkom
On Fri, Jun 25, 2010 at 8:44 PM, Mick wrote: > I'm stuck again. > > I wish to set word-wrap for a single column in a treeview liststore, > I've found the options I need to set but can't for the life of me find > an example of how to do it. > I think the catch is that you need to set an explicit w

word wrap in liststore column

2010-06-25 Thread Mick
I'm stuck again. I wish to set word-wrap for a single column in a treeview liststore, I've found the options I need to set but can't for the life of me find an example of how to do it. please help ___ gtk-app-devel-list mailing list gtk-app-devel-list@g

Re: GIOScheduler example need

2010-06-25 Thread Alexander Kuleshov
Thank you very much for you help. you realy helped me. Can i asked last question about parameters :) If on of the parameters structure too. For example: static gboolean job_func(int a, Win* b) { ... } Where Win: typedef struct _Win { typedef struct _MainWin { GtkWindow parent; GtkWidge

gtk_ui_manager_add_ui_from_string on inline string vs. _from_file

2010-06-25 Thread Olivier Sessink
Hi all, what are the advantages of using gtk_ui_manager_add_ui_from_string() using a inline compiled string vs. gtk_ui_manager_add_ui_from_file() ? from_string() enlarges the executable, but the executable is one file that is read from disk as a contiguous block, from_file() makes the executable

Re: GIOScheduler example need

2010-06-25 Thread Ardhan Madras
The prototypes of GIOSchedulerJob func is : gboolean func(GIOSchedulerJob*, GCancallabel*, gpointer); If you want to pass some data to that function use a structure as it's user_data, for example. struct data { int a, b; }; gboolean job_func(GIOScheduler *job, GCancellable *cancellable,

Re: GIOScheduler example need

2010-06-25 Thread Alexander Kuleshov
And if i whave functions with some parametes? For example: static gboolean job_func(int a, int b) { ... } How can i send parameters in g_io_scheduler_push_job? Thank you ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.

Re: GIOScheduler example need

2010-06-25 Thread Ardhan Madras
Hi, GIOSchedulerJob uses GThreadPool to run it's jobs if thread system is supported, otherwise it use g_idle_add*(), using GThreadPool maybe the best choice for handling some blocking operations such as I/O related call. Here an example for using GSchedulerJob. As you can see the main loop w