Re: Threads and g_idle_add()

2009-08-26 Thread Brian J. Tarricone
On 08/26/2009 07:57 PM, Marshall Lake wrote: > I have several g_idle_add() calls from within secondary threads. Is it > okay for a secondary thread to end while an idle function it had added > is still active? Yup. All idle functions run in the main thread regardless of from while thread they'r

Threads and g_idle_add()

2009-08-26 Thread Marshall Lake
A couple of questions with regard to threads and g_idle_add() which I can't find references to anywhere. I suspect my questions are moot but I want to make sure. I have several g_idle_add() calls from within secondary threads. Is it okay for a secondary thread to end while an idle function

RE: Anyone know how to make a GtkEntry expand to fill a cell in atable?

2009-08-26 Thread Boggess Rod
RTFM, what a novel idea. Sorry, I should have done that. I'm having a "duh" moment. Anyway, thanks for saving me the time. > -Original Message- > From: gtk-app-devel-list-boun...@gnome.org > [mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of > Brian J. Tarricone > Sent: Wednesd

Re: Anyone know how to make a GtkEntry expand to fill a cell in a table?

2009-08-26 Thread Brian J. Tarricone
On 08/26/2009 12:55 PM, Boggess Rod wrote: > Before someone suggests the GTK_EXPAND option when attaching to the > table, I tried that. It works horizontally, but not vertically. AFAICT, you can't make it expand vertically. A quick reading of the gtk source suggests that it always requests the h

Anyone know how to make a GtkEntry expand to fill a cell in a table?

2009-08-26 Thread Boggess Rod
Before someone suggests the GTK_EXPAND option when attaching to the table, I tried that. It works horizontally, but not vertically. At least on HP UX, that dog won't hunt. Just to be sure I wasn't doing something wrong, I added a frame (no label, GTK_SHADOW_IN), and it expands in both directions

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread Jim George
I use a GtkImage, and choose among GTK_STOCK_YES and GTK_STOCK_NO. At least for all the themes I've tried it with, it either shows a green/red ball, a check/cross or some variation, but imo, it gets the message across. 2009/8/26 David Nečas : > On Wed, Aug 26, 2009 at 01:07:33PM -0400, Boggess Rod

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread David Nečas
On Wed, Aug 26, 2009 at 01:07:33PM -0400, Boggess Rod wrote: > Although, if you want to be 3133t programmer, go with the > custom image. A custom image is the last resort. You need to make it look good with light themes, dark themes, large fonts, etc. Yeti __

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread David Nečas
On Wed, Aug 26, 2009 at 11:55:41AM -0500, Michael Cronenworth wrote: > Dave Howorth on 08/26/2009 04:00 AM wrote: > > > > I'm surprised nobody has mentioned gtk_widget_set_sensitive() > > +1 > > Setting a FALSE sensitivity would be the normal thing to do that normal > users would expect to see.

RE: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread Boggess Rod
> -Original Message- > Dave Howorth on 08/26/2009 04:00 AM wrote: > > > > I'm surprised nobody has mentioned gtk_widget_set_sensitive() > > > > +1 > > Setting a FALSE sensitivity would be the normal thing to do > that normal users would expect to see. > > If you want to be a "l33t"

GStaticMutex operation: compiler warning

2009-08-26 Thread Ardhan Madras
Hi all, given a piece of codes: GStaticMutex mutex = G_STATIC_MUTEX_INIT; func() { g_static_mutex_lock (&mutex); } gcc give me a warning like this: ---> deferencing type punned pointer will break strict-aliasing rules this warning mostly on g_static_mutex*() operation It's on gcc-4.3.2, gli

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread Michael Cronenworth
Dave Howorth on 08/26/2009 04:00 AM wrote: > > I'm surprised nobody has mentioned gtk_widget_set_sensitive() > +1 Setting a FALSE sensitivity would be the normal thing to do that normal users would expect to see. If you want to be a "l33t" programmer and program a custom method for a custom gr

Re: "widget_class->event" not working

2009-08-26 Thread Brian J. Tarricone
On 08/20/2009 10:27 PM, Patrick M. Rutkowski wrote: > I've written a test case that anybody can compile and run: > http://www.rutski89.com/static/event_test.c > > It contains the following line of code in the any_event() function: > printf("IT WORKS!\n"); > > That currently does not get printed.

Toggle cell on a sorted treeviewcolumn loses selection (sample code)

2009-08-26 Thread Nicolas Soubeiran
Hi all If the column is sorted, when one activates the toggle, the tree is re-sorted (normal) but the selected row is changed (unexpected). I investigated and I found that when clicking on a toggle cell renderer, the "activate" callback is send which update the treemodel. After re-ordering, the fu

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread David Nečas
On Wed, Aug 26, 2009 at 10:00:43AM +0100, Dave Howorth wrote: > > I'm surprised nobody has mentioned gtk_widget_set_sensitive() Probably because of how it typically looks... Yeti ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread Dave Howorth
Edheldil wrote: > Hi, > since the checkbox is not interactive, you can as well get rid of it and > replace it with an image or even with a simple label. No need to confuse > user with an apparently non-working control. > > Edheldil > > > donglongchao wrote: >> I want to use some GtkCheckButton t

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread Edheldil
Hi, since the checkbox is not interactive, you can as well get rid of it and replace it with an image or even with a simple label. No need to confuse user with an apparently non-working control. Edheldil donglongchao wrote: > Hi, all > > I want to use some GtkCheckButton to display some status i

Re: How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread David Nečas
On Wed, Aug 26, 2009 at 04:23:34PM +0800, donglongchao wrote: > I want to use some GtkCheckButton to display some status in my app.But I want > to forbid my customer to change these checkbuttons' status(choosed or not ) > by their hands,and they can only be changed by my app itself according to

How to forbid people to change GtkCheckButton's status manually?

2009-08-26 Thread donglongchao
Hi, all I want to use some GtkCheckButton to display some status in my app.But I want to forbid my customer to change these checkbuttons' status(choosed or not ) by their hands,and they can only be changed by my app itself according to some values,etc..I want to know how to do this.Will some o