[Gtk2hs-devel] Gtk2Hs Problems :)

2009-01-12 Thread Rouan van Dalen
Hi everyone. Im having some trouble with Gtk2Hs on Windows (Vista). I am running GHC-6.10. When I try to compile my hello world example, it complains about the import of Graphics.UI.Gtk and that it cannot find it. I have tried to search my filesystem for those files and directories and couldn

[Gtk2hs-devel] segfault when using bufferInsertText signal in gtk2hs 0.12.2

2012-01-24 Thread Rouan van Dalen
Hi everyone. I have the following code to connect a handler to the bufferInsertText signal:    buf <- textViewGetBuffer txtView    buf `on` bufferInsertText $ \_ _ -> putStrLn "hi!" When I run app and press a key in the textView I get a segfault. The code was inspired from to see if the bug was

Re: [Gtk2hs-devel] segfault when using bufferInsertText signal in gtk2hs 0.12.2

2012-01-24 Thread Rouan van Dalen
>> I have the following code to connect a handler to the >> bufferInsertText signal: >> >>    buf <- textViewGetBuffer txtView >>    buf `on` bufferInsertText $ \_ _ -> putStrLn "hi!" >> >> When I run app and press a key in the textView I get a segfault. > Attached is a patch that fixes this prob

[Gtk2hs-devel] segfault when using bufferInsertText signal in gtk2hs 0.12.2 fix confirmed

2012-03-08 Thread Rouan van Dalen
Hi everyone I have just created my gtk2hs darks repo and confirmed that the fix for the segfault when using bufferInsertText signal has been fixed. I would just like to comment on how easy it was to get everything building. Thanks to the gtk2hs devs and contributors for making it so easy and keep

[Gtk2hs-devel] Gtk-WARNING **: Invalid text buffer iterator

2012-03-11 Thread Rouan van Dalen
Hi everyone. I am trying to write code that when the user enters a " (double-quote) into a TextView, I catch this event and I want to add another " (double-quote) char as the closing double-quote char.  However, I get the following error message: (main.exe:4100): Gtk-WARNING **: Invalid text bu

[Gtk2hs-devel] Gtk-WARNING **: Invalid text buffer iterator

2012-03-11 Thread Rouan van Dalen
Hi everyone. I am trying to write code that when the user enters a " (double-quote) into a TextView, I catch this event and I want to add another " (double-quote) char as the closing double-quote char.  However, I get the following error message: (main.exe:4100): Gtk-WARNING **: Invalid text bu

[Gtk2hs-devel] Gtk-WARNING **: Invalid text buffer iterator

2012-03-11 Thread Rouan van Dalen
Hi everyone. I am trying to write code that when the user enters a " (double-quote) into a TextView, I catch this event and I want to add another " (double-quote) char as the closing double-quote char.  However, I get the following error message: (main.exe:4100): Gtk-WARNING **: Invalid text bu

[Gtk2hs-devel] [update] Gtk-WARNING **: Invalid text buffer iterator

2012-03-12 Thread Rouan van Dalen
Hi everyone. Just a follow-up: I have even changed the code to not use the iterator passed into the bufferInsertText signal handler:    idRef <- newIORef undefined    buf <- textViewGetBuffer txtViewCmd    id <- buf `on` bufferInsertText $ (handleCmdInsertText idRef buf)    writeIORef idRef id

[Gtk2hs-devel] [resolved] Gtk-WARNING **: Invalid text buffer iterator

2012-03-12 Thread Rouan van Dalen
Hi everyone. I found the problem.  Because I was using `on` to hook up my signal handler it executed before the default signal handler. just changed my code to use `after` to hook up signal handler and everything is working as expected now. Regards Rouan--

[Gtk2hs-devel] gtk2hs and ghc 7.4.1

2012-05-14 Thread Rouan van Dalen
Hi everyone, What is the status of gtk2hs compiling with ghc-7.4.1? Can I safely switch from ghc-7.2.2 to ghc-7.4.1 and use gtk2hs as usual or is there still some outstanding issues? regards Rouan.-- Live Security Virtua

[Gtk2hs-devel] Problems with TreeView

2012-08-23 Thread Rouan van Dalen
Hi everyone, I am having some trouble with the TreeView in gtk2hs. (I am using gtk2hs 0.12.3 with ghc 7.4.2 on windows 7 x64.) I would like to achieve the following:  in 1 set up the TreeView and its columns and renderers, and in a different function set the model for the TreeView control so th

[Gtk2hs-devel] How to get to a ListStore from a TreeModel

2012-08-30 Thread Rouan van Dalen
Hi Everyone, I need to get the selected item from my TreeView, which is using a ListStore model. The model is not just a String, it is a list of records with a few fields. After googling a bit it seems that there is no way to get a ListStore model from a TreeModel. Has this been fixed.  The cod

[Gtk2hs-devel] Recursively iterating through containers in Gtk2hs

2012-09-10 Thread Rouan van Dalen
Hi Everyone, I need to recursively iterate through all the containers in a window to get to the widgets in the window, which are not containers. I scanned the Gtk2hs docs and I could not find a good way to determine if a widget is a container or not.  I saw that the GObjectClass defines a isA

Re: [Gtk2hs-devel] Recursively iterating through containers in Gtk2hs

2012-09-11 Thread Rouan van Dalen
Hi everyone, thanks for the replies.  I guess I can keep track of the controls myself. The reason I was looking at the container iteration solution is so that I do not have to keep the state separately. If there is no good way to let Gtk2hs do this for me I can manage the controls myself.  I just

[Gtk2hs-devel] I cannot find widgetSetTooltipText

2012-10-02 Thread Rouan van Dalen
Hi everyone, I read in the current gtk2hs docs that if I want to set tooltips for a widget, I can use the 'widgetSetTooltipText' function.  However, it seems that this function is not available from the Graphics.UI.Gtk.Misc.Tooltip module. Can someone please shed some light on this. Is this a b

[Gtk2hs-devel] Possible bug in gtk2hs?

2012-10-05 Thread Rouan van Dalen
Hi everyone, (I am using GHC 7.4.1 x86, Gtk2hs 0.12.3, on win7 x64) I am trying to add a Label with some text to the contentArea of an InfoBar, but I am not getting the results I expect.  If I use code to add the label to the InfoBar outside of a button-activate signal, the label is added fine.

[Gtk2hs-devel] problems getting the ancestor of an ancestor of a widget

2013-01-09 Thread Rouan van Dalen
Hi everyone, I have an Entry widget inside an EventBox (innerEventBox), and I have the innerEventBox inside another EventBox (outerEventBox). I need to traverse from the Entry widget to the outerEventBox so I can set the background color of the outerEventBox. I have the following code to do th

Re: [Gtk2hs-devel] problems getting the ancestor of an ancestor of a widget

2013-01-09 Thread Rouan van Dalen
Thanks Will, You rock, that worked perfectly. Regards. Rouan From: Will Thompson To: Rouan van Dalen Cc: "gtk2hs-devel@lists.sourceforge.net" Sent: Wednesday, 9 January 2013, 11:47 Subject: Re: [Gtk2hs-devel] problems getting the ancestor of a