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
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
>> 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
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
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
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
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
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
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--
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
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
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
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
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
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
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.
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
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
18 matches
Mail list logo