Re: SIGABRT due double free

2005-11-24 Thread Andreas Stricker
Fernando ApesteguXa schrieb: I'm developing a gtk/gnome application with two threads. An schema of the application is this: [SNIP] thread_func is updating data periodically with a sleep pause. At this point, I suppose the other thread is catching events normally (in fact, tabs of the

GtkUIManager help

2005-11-24 Thread Adam
Hi all, In my application I want to be able to dynamically add items to a menu after a configuration file has loaded and after a file has been opened. The menu's use gtk_ui_manager to initialise but I am unsure how to go about implementing to dynamic addition of menu items. Thanks in

SIGABRT due double free

2005-11-24 Thread Fernando ApesteguĂ­a
Thanks, now it appears to works fine. I thought gtk was completly thread safe, but is logic tu use a method for mutual exclusion. Really thanks a lot. We'll meet in my next post :) Best regards!! -- Forwarded message -- From: Andreas Stricker [EMAIL PROTECTED] Date: 24-nov-2005

Re: GtkUIManager help

2005-11-24 Thread John Cupitt
On 11/24/05, Adam [EMAIL PROTECTED] wrote: In my application I want to be able to dynamically add items to a menu after a configuration file has loaded and after a file has been opened. The menu's use gtk_ui_manager to initialise but I am unsure how to go about implementing to dynamic

Problem with icon_view auto dnd (gtk 2.8)

2005-11-24 Thread DaveMDS
Hi , I have a problem using the IconView auto-dnd (gtk_icon_view_enable_model_drag_source) and the item-activated signal. On item-activate I show a dialog to the user, when the dialog is closed the IconView start a drag operation incorrectly. This is the complete code (is this a bug? or I

on signals in an entry widget

2005-11-24 Thread Chris Clarin
hi all, i am a beginner in using gtk and i would just like to ask which signal i should use if i want to activate my entry widget on pressing tab or when i leave my entry widget (i.e., i want changes to take place when i hit tab, return key or when my cursor leaves the entry widget). I tried

Setting the background color of a GtkEntry

2005-11-24 Thread Michal Kepien
Hi there, Is it possible to change the background color of a GtkEntry? gtk_widget_modify_bg() does not do what I need - I want to modify the widget's true background, not to make a border around it (this is what gtk_widget_modify_bg() does); i.e. I want the text that user inputs appear on the

Setting the background color of a GtkEntry

2005-11-24 Thread Alem Dain
The white part of a text-accepting widget uses the base color, not the bg color. The only way I know to set that is with a style: style myEntry { base[NORMAL] = #ff# or whatever } class GtkEntry style myEntry You can load this setting by placing that text in a file called foo and

Re: GtkUIManager help

2005-11-24 Thread Adam
On Thursday 24 November 2005 13:12, you wrote: [snip] Probably not the best way :-( but it seems to work. Thanks for that it seems to work quite well. I'm now encountering a different issue. As the data I'm using to populate the menu is coming from an XML file I'm encountering the

Re: GtkUIManager help

2005-11-24 Thread John Cupitt
On 11/24/05, Adam [EMAIL PROTECTED] wrote: the string is a filepath i.e /home/adam/denemo/test.denemo. Is there anything that I should know about in converting from xmlChar * inserting into a GList and the extracting and converting to a gchar * ?? GTK+ is UTF-8 (almost) throughout. You need

Re: Setting the background color of a GtkEntry

2005-11-24 Thread Michal Kepien
The white part of a text-accepting widget uses the base color, not the bg color. The only way I know to set that is with a style: style myEntry { base[NORMAL] = #ff# or whatever } class GtkEntry style myEntry You can load this setting by placing that text in a file called

Re: GtkUIManager help

2005-11-24 Thread Adam
On Thursday 24 November 2005 21:46, John Cupitt wrote: On 11/24/05, Adam [EMAIL PROTECTED] wrote: the string is a filepath i.e /home/adam/denemo/test.denemo. Is there anything that I should know about in converting from xmlChar * inserting into a GList and the extracting and converting to