[Haskell-cafe] gtk2hs: adding widget during runtime

2011-12-17 Thread Gary Klindt
Hello Haskellers, currently I work with the gtk2hs library to create a graphical user interface. Everything works fine, but there is one problem: How can I insert widgets into boxes during runtime? I tried something like: main = do initGUI window - windowNew box - vBoxNew True 0

Re: [Haskell-cafe] gtk2hs: adding widget during runtime

2011-12-17 Thread Joachim Breitner
Hi, Am Samstag, den 17.12.2011, 20:42 +0100 schrieb Gary Klindt: That compiles fine, but the GUI never shows a neues label!. blind guess: Do you need to call widgetShow on the newly created widget? Greetings, Joachim -- Joachim nomeata Breitner m...@joachim-breitner.de |

Re: [Haskell-cafe] gtk2hs: adding widget during runtime

2011-12-17 Thread Gary Klindt
On 12/17/2011 09:03 PM, Joachim Breitner wrote: Hi, Am Samstag, den 17.12.2011, 20:42 +0100 schrieb Gary Klindt: That compiles fine, but the GUI never shows a neues label!. blind guess: Do you need to call widgetShow on the newly created widget? Uuh! That seem's very elemental, and it works.

Re: [Haskell-cafe] Gtk2hs multiple column TreeView with ListStore issue

2011-03-20 Thread Andy Stewart
Hi Кирилл, Here have a simplest code at http://code.haskell.org/gtk2hs/gtk/demo/treelist/ListDemo.hs Cheers, -- Andy PS: All gtk2hs user, it's always best choose to read source code of demo when you don't know how to fix some problem. Demo has include in Cabal package. Example,

Re: [Haskell-cafe] Gtk2hs multiple column TreeView with ListStore issue

2011-03-20 Thread Andy Stewart
Andy Stewart lazycat.mana...@gmail.com writes: Hi Кирилл, Here have a simplest code at http://code.haskell.org/gtk2hs/gtk/demo/treelist/ListDemo.hs Cheers, -- Andy PS: All gtk2hs user, it's always best choose to read source code of demo when you don't know how to fix some

[Haskell-cafe] Gtk2hs multiple column TreeView with ListStore issue

2011-03-19 Thread Кирилл Березин
I cannot force GTK to render data in TreeView with ListStore model with multiple columns through Haskell. I have the following code addTextColumn view name = do col - treeViewColumnNew rend - cellRendererTextNew treeViewColumnSetTitle col name treeViewColumnPackStart col

[Haskell-cafe] gtk2hs and hmake websites

2010-12-12 Thread Joachim Breitner
Hi, I get regular error message from some Debian tools that check for new upstream versions that it cannot find http://haskell.org/hmake, and http://haskell.org/gtk2hs seems to be gone as well since the recent move of haskell.org. Is that temporary or will these projects have to find new homes?

Re: [Haskell-cafe] gtk2hs and hmake websites

2010-12-12 Thread Florian Weimer
* Joachim Breitner: I get regular error message from some Debian tools that check for new upstream versions that it cannot find http://haskell.org/hmake, and http://haskell.org/gtk2hs seems to be gone as well since the recent move of haskell.org. Is that temporary or will these projects have

Re: [Haskell-cafe] gtk2hs and hmake websites

2010-12-12 Thread Duncan Coutts
On 12 December 2010 20:55, Florian Weimer f...@deneb.enyo.de wrote: So the net effect will be a migration from haskell.org to haskell.cs.yale.edu, and not to community.haskell.org.  I think that's pretty odd, but people will have their reasons for doing it this way. I addition to what Thomas

[Haskell-cafe] gtk2hs with old gtk2

2010-08-13 Thread Johannes Waldmann
I'm trying to build gtk2hs on debian/lenny, that is, with gtk2 v. 2.12 if I understand this correctly. I got the gtk2hs sources from darcs (I guess it's 0.11.0) and http://www.haskell.org/gtk2hs/ says You need to specify -f-gtk_2_20 for Gtk+ 2.18 etc. I would love to, but where exactly? (When

[Haskell-cafe] gtk2hs for 2010.1.0.0

2010-05-03 Thread Maciej Piechotka
Does anyone have installer for gtk2hs for Haskell Platform 2010.1.0.0? Regards signature.asc Description: This is a digitally signed message part ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

Re: [Haskell-cafe] gtk2hs for 2010.1.0.0

2010-05-03 Thread Ivan Miljenovic
On 4 May 2010 04:21, Maciej Piechotka uzytkown...@gmail.com wrote: Does anyone have installer for gtk2hs for Haskell Platform 2010.1.0.0? Considering that there is as yet no release of gtk2hs that supports GHC-6.12.*, it seems unlikely. At best someone may have taken a snapshot of the darcs

[Haskell-cafe] gtk2hs gtkbuilder

2010-03-14 Thread Andrew U. Frank
i currently use gtk2hs with libglade (and glade). i understand that the gtkbuilder allows more constructs than libglade. how to use gtkbuilder in gtk2hs? i see that John Millikin has posted a patch for gtk2hs - but i cannot find it and no documentation for its use? can anyone point me to a

Re: [Haskell-cafe] gtk2hs gtkbuilder

2010-03-14 Thread John Millikin
My patch was accepted into gtk2hs trunk. It should be present in the next release, or you can clone the in-development version with Darcs (see http://www.haskell.org/gtk2hs/development/ ). The Haskell module can be viewed at http://code.haskell.org/gtk2hs/gtk/Graphics/UI/Gtk/Builder.chs.pp ;

[Haskell-cafe] Gtk2hs on Snow Leopard: Failed to load interface for `System.Glib.UTFString'

2010-03-02 Thread Michael Goy
Hi, I am very close to suicide or similar acts of pure desperation... Since weeks, I am trying different approaches to get gtk2hs running on my Snow Leopard MacBook Pro... no success, you guess it... My current GHC is 6.10.4 (but I also tried 6.10.3 before) when I try to make GTK2HS from

[Haskell-cafe] gtk2hs and ghc-6.10.4 on Windows (Vista)

2010-02-24 Thread Alistair Bayley
On 16 February 2010 17:57, Neil Mitchell ndmitch...@gmail.com wrote: Hi Serguey, A GHC 6.10.4 version of Gtk2hs: http://www.mail-archive.com/gtk2hs-de...@lists.sourceforge.net/msg00340.html I used to recommend Gtk2hs over wxHaskell for GUI development as there was always a version that

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-24 Thread Duncan Coutts
On Thu, 2009-09-24 at 00:10 +0200, Günther Schmidt wrote: Hi Duncan, so ... I have a green light to call gtk from within a forkIO thread for as long as I make sure that the rts is single threaded? Yes and that works very nicely (with the cooperative scheduling trick described in the gtk2hs

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Duncan Coutts
On Tue, 2009-09-22 at 17:08 -0400, Brandon S. Allbery KF8NH wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 22, 2009, at 11:31 , Günther Schmidt wrote: Gtk2hs then complains about running in a multithreaded ghc, ie. one with several real OS threads. Is it possible to start

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Günther Schmidt
Am 23.09.2009, 19:29 Uhr, schrieb Duncan Coutts duncan.cou...@worc.ox.ac.uk: On Tue, 2009-09-22 at 17:08 -0400, Brandon S. Allbery KF8NH wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 22, 2009, at 11:31 , Günther Schmidt wrote: Gtk2hs then complains about running in a

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Ross Mellgren
Well, keep in mind forkIO *might* be a different OS thread (unless it's bound, IIRC), depending on the number of workers (with -Nx) and so on. -Ross On Sep 23, 2009, at 2:24 PM, Günther Schmidt wrote: Am 23.09.2009, 19:29 Uhr, schrieb Duncan Coutts duncan.cou...@worc.ox.ac.uk : On Tue,

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Duncan Coutts
On Wed, 2009-09-23 at 20:24 +0200, Günther Schmidt wrote: No, but you can unsafeInitGUIForThreadedRTS. If you observe the foot-shooting restrictions (of which the easiest is to not use forkIO). And exactly herein lies the problem :) I've seen your response to the recent post about

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Duncan Coutts
On Wed, 2009-09-23 at 15:52 -0400, Ross Mellgren wrote: Well, keep in mind forkIO *might* be a different OS thread Yes. (unless it's bound, IIRC) In which case it's guaranteed to be on a different OS thread.. depending on the number of workers (with -Nx) and so on. The number of

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-23 Thread Günther Schmidt
Hi Duncan, so ... I have a green light to call gtk from within a forkIO thread for as long as I make sure that the rts is single threaded? BTW: I was already strongly put off using unsafeInitGUIwForThreadedRTS but thanks for the warning. Thus my back to my original question: Can I start

[Haskell-cafe] gtk2hs and runghc

2009-09-22 Thread Günther Schmidt
Hi, I'm trying to test some gtk2hs gui code without compiling it first, just by using runghc. Gtk2hs then complains about running in a multithreaded ghc, ie. one with several real OS threads. Is it possible to start runghc single-threaded? Günther

Re: [Haskell-cafe] gtk2hs and runghc

2009-09-22 Thread Brandon S. Allbery KF8NH
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sep 22, 2009, at 11:31 , Günther Schmidt wrote: Gtk2hs then complains about running in a multithreaded ghc, ie. one with several real OS threads. Is it possible to start runghc single-threaded? No, but you can unsafeInitGUIForThreadedRTS.

[Haskell-cafe] Gtk2Hs drag and drop

2009-08-24 Thread frantisek kocun
Hi, have somebody used drag and drop feature of Gtk2hs? I can't find any tutorial or demo. I'm using only the documentation but I think I'm missing something. Can anyone give me an example? Thanks in forward! Fero ___ Haskell-Cafe mailing list

[Haskell-cafe] GTK2HS OpenGL demo doesn't work on Vista when compiled?

2009-08-11 Thread Peter Verswyvelen
GTK2HS 0.10.1 comes with an OpenGL demo (share/demo/opengl/RotatingCube.hs) On my machine (Vista 32-bit) it runs fine under GHCi, but not when compiling using GHC (no rendering happens, unless I resize the window, then rendering happens from time to time) I'm using GHC 6.10.3 (installed Haskell

[Haskell-cafe] gtk2hs tray icon disappears when using GHCi

2009-07-01 Thread Deniz Dogan
Hi I'm just trying out gtk2hs for the first time and I quite like it. However, for some reason my tray icon (...Gtk.Display.StatusIcon) disappears after a split second when I run my program using GHCi. What's the reason for this? Perhaps this is even a bug? It works just fine if I compile an

[Haskell-cafe] gtk2hs, TreeView and CellRenderer

2009-05-28 Thread Zefirov Sergey
As far as I can tell, there is not way to create CellRenderer that could include icons with the text (I think it is because of incompatibilities of Haskell type classes and Gtk inheritance hierarchy). Is it a good way to use CellRendererPixbuf and render to pixbufs using Cairo? I think my

[Haskell-cafe] Gtk2Hs + Sourceview on Windows

2009-05-19 Thread mwinter
Hi, I have ghc 6.10.1 and gtk2hs 0.10.0 installed on my windows vista computer. Both were installed using the installer on the webpages. I am able to use gtk, glade etc but not sourceview or cairo. If I compile the examples in the gtk2hs example folder, I get not in scope error messages for

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-18 Thread Lennart Augustsson
Perhaps you should update the download page for gtk2hs to have the new Windows .exe file on it. -- Lennart On Wed, Feb 11, 2009 at 4:40 AM, Peter Gavin pga...@gmail.com wrote: Hi everyone, Oh, dear... it seems I've forgotten how to spell cafe, and sent this message to

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-17 Thread Simon Marlow
Duncan Coutts wrote: On Thu, 2009-02-12 at 10:11 +0100, Christian Maeder wrote: Duncan Coutts wrote: On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-17 Thread Duncan Coutts
On Tue, 2009-02-17 at 08:47 +, Simon Marlow wrote: Duncan Coutts wrote: Maybe. Dealing with linker scripts properly is probably rather tricky and we get it for free when we switch to shared libraries. I don't follow this last point - how does switching to shared libraries for

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-12 Thread Christian Maeder
Duncan Coutts wrote: On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in Linux for ages and it worked in ghci in Windows prior to the 0.9.13 release.

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-12 Thread Peter Verswyvelen
0.10.0 works on Windows for me even when using GHCi. Great work, I love it. On Thu, Feb 12, 2009 at 1:11 AM, Duncan Coutts duncan.cou...@worc.ox.ac.ukwrote: On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-12 Thread Duncan Coutts
On Thu, 2009-02-12 at 10:11 +0100, Christian Maeder wrote: Duncan Coutts wrote: On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in Linux for ages

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Gwern Branwen
On Tue, Feb 10, 2009 at 11:40 PM, Peter Gavin pga...@gmail.com wrote: Hi everyone, Oh, dear... it seems I've forgotten how to spell cafe, and sent this message to haskell-c...@haskell.org the first time around.  I resent it to all the lists again (just to make sure everyone interested receives

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Lennart Augustsson
Does this version work from ghci? -- Lennart On Wed, Feb 11, 2009 at 5:40 AM, Peter Gavin pga...@gmail.com wrote: Hi everyone, Oh, dear... it seems I've forgotten how to spell cafe, and sent this message to haskell-c...@haskell.org the first time around. I resent it to all the lists

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Krzysztof Skrzętnicki
2009/2/11 Gwern Branwen gwe...@gmail.com: touch tools/c2hs/c2hsLocal.deps; /home/gwern/bin/bin/ghc -M -dep-makefile -optdeptools/c2hs/c2hsLocal.deps -fglasgow-exts -O

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-11 Thread Duncan Coutts
On Wed, 2009-02-11 at 15:49 +0100, Lennart Augustsson wrote: Does this version work from ghci? -- Lennart Specifically I believe Lennart is asking about Windows. It's worked in ghci in Linux for ages and it worked in ghci in Windows prior to the 0.9.13 release. In the 0.9.13 release on

[Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-10 Thread Peter Gavin
Hi everyone, Oh, dear... it seems I've forgotten how to spell cafe, and sent this message to haskell-c...@haskell.org the first time around. I resent it to all the lists again (just to make sure everyone interested receives it), so I apologize for any duplicated messages you might have

Re: [Haskell-cafe] Gtk2HS 0.10.0 Released

2009-02-10 Thread Don Stewart
Well done! Our flagship GUI bindings... Go team! -- Don pgavin: Hi everyone, Oh, dear... it seems I've forgotten how to spell cafe, and sent this message to haskell-c...@haskell.org the first time around. I resent it to all the lists again (just to make sure everyone interested

[Haskell-cafe] Gtk2Hs on Windows for GHC 6.10.1

2009-01-12 Thread Peter Verswyvelen
Gtk2Hs 0.9.13 has an annoying bug on Windows that makes it impossible to run via GHCi. So to see if the latest development version works better, I tried to build it on Windows using GHC 6.10.1, but I failed to do so with both MSYS and Cygwin. Does anybody know how to build it on Windows? Thanks,

Re: [Haskell-cafe] Gtk2Hs on Windows for GHC 6.10.1

2009-01-12 Thread Duncan Coutts
On Tue, 2009-01-13 at 00:09 +0100, Peter Verswyvelen wrote: Gtk2Hs 0.9.13 has an annoying bug on Windows that makes it impossible to run via GHCi. So to see if the latest development version works better, I tried to build it on Windows using GHC 6.10.1, but I failed to do so with both

Re: [Haskell-cafe] gtk2hs question - derive SettingsWindow from Window

2008-12-18 Thread Duncan Coutts
On Fri, 2008-12-12 at 21:03 +0100, Cetin Sert wrote: Hi all, For a network manager of sorts I'm working on, I want to derive a SettingsWindowClass from the WindowClass present in Gtk2Hs: I want (the) instance(s) of the SettingsWindowClass to have a field to store connection settings:

[Haskell-cafe] gtk2hs question - derive SettingsWindow from Window

2008-12-12 Thread Cetin Sert
Hi all, For a network manager of sorts I'm working on, I want to derive a SettingsWindowClass from the WindowClass present in Gtk2Hs: I want (the) instance(s) of the SettingsWindowClass to have a field to store connection settings: 1) Is it safe to do it like this? class WindowClass self ⇒

Re: [Haskell-cafe] gtk2hs and GTK+OSX

2008-10-14 Thread Scott West
Hi Jeroen, I've done this. I didn't use the stuff from gtk-osx.org, but rather from the imendio site itself. I'm not sure how it would work with binary package they now provide, but if you use their jhbuild scripts you get something usable. It's ugly, but it works for compiled gtk2hs programs. If

[Haskell-cafe] gtk2hs and GTK+OSX

2008-10-14 Thread Jeroen Baekelandt
Hi, I was wondering if anybody managed to get gtk2hs working with GTK+OSX from http://www.gtk-osx.org/ I'm trying but there seems to be a quite long dependency list that keeps on building up. So I was wondering if it ends and if it works in the end. Thanks, Jeroen

Re: [Haskell-cafe] Gtk2Hs and GCs

2008-06-19 Thread Brandon S. Allbery KF8NH
On 2008 Jun 18, at 23:23, Tim Newsham wrote: I can't seem to find any other way short of making a whole new GC (as is done in Gtk2Hs/demos/graphic/Drawing.hs). Am I missing something? Is there a reason the GC's arent retrievable? Join the gtk2hs list (

[Haskell-cafe] Gtk2Hs and GCs

2008-06-18 Thread Tim Newsham
I don't see a way to fetch an existing standard GC from a widget. In other Gtk bindings I usually do this by fetching the widget's style and then grabbing one of the gc's (such as fg_gc[STATE_NORMAL]). In Gtk2Hs docs:

[Haskell-cafe] gtk2hs linking problems

2008-05-23 Thread Nabil Alsharif
I downloaded the gtk2hs 0.9.12.1 tarball and did the standard configure, make, make install but when I go to compile a test program I get a bunch of errors that look like: compilation IS NOT required [..snip..] (.data+0x38): undefined reference to

Re: [Haskell-cafe] gtk2hs linking problems

2008-05-23 Thread Bertram Felgenhauer
Nabil Alsharif wrote: I downloaded the gtk2hs 0.9.12.1 tarball and did the standard configure, make, make install but when I go to compile a test program I get a bunch of errors that look like: How did you compile the program? [snip link errors] This usually indicates a missing --make or

Re: [Haskell-cafe] Gtk2hs on GHC6.8.2?

2008-03-25 Thread Ryan Ingram
Thanks, works like a charm! -- ryan On 3/24/08, Duncan Coutts [EMAIL PROTECTED] wrote: You are in luck however, I did a build with ghc-6.8.2 just the other day but hadn't announced it yet: http://haskell.org/~duncan/gtk2hs/gtk2hs-0.9.12.1.exe ___

[Haskell-cafe] Gtk2hs on GHC6.8.2?

2008-03-24 Thread Ryan Ingram
The WinXP binary release of Gtk2hs won't install for me; it seems to expect GHC6.8.1 and refuses to install on 6.8.2. Is there any significant difference in the compilers that would cause it not to work on 6.8.2? Is there a way I can trick it into installing? I really don't want to have to

Re: [Haskell-cafe] Gtk2hs on GHC6.8.2?

2008-03-24 Thread Duncan Coutts
In message [EMAIL PROTECTED] Ryan Ingram [EMAIL PROTECTED] writes: The WinXP binary release of Gtk2hs won't install for me; it seems to expect GHC6.8.1 and refuses to install on 6.8.2. Right. It does that on purpose and with good reason. Do you think the error message could be improved? The

[Haskell-cafe] Gtk2hs

2008-03-14 Thread Andrew Coppin
Just a short one... gtk2hs won't build on my [Linux] laptop. What's the best channel for seeking help with this? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Gtk2hs

2008-03-14 Thread Lennart Kolmodin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Coppin wrote: | Just a short one... gtk2hs won't build on my [Linux] laptop. What's the | best channel for seeking help with this? The #haskell (on freenode) isn't bad. You'll probably get help pretty quick here, it's known to be very user

Re: [Haskell-cafe] Gtk2hs

2008-03-14 Thread Andrew Coppin
Don Stewart wrote: andrewcoppin: Just a short one... gtk2hs won't build on my [Linux] laptop. What's the best channel for seeking help with this? Discuss it on the gtk2hs list, with a full error log. Thanks. I'll go look at that. (Who knows, maybe somebody already solved this

Re: [Haskell-cafe] Gtk2HS and GHC 6.8.2

2008-01-12 Thread Ian Lynagh
On Fri, Jan 11, 2008 at 06:50:02PM +0100, Peter Verswyvelen wrote: It seems GHC 6.8.2 fixes a couple of bugs in GHC 6.8.1, so I'm using that one. Gtk2HS does not yet detect my GHC 6.8.2 installation, but I guess it is 100% compatible. No, it's not binary-compatible. You'll need a Gtk2HS

Re: [Haskell-cafe] Gtk2HS and GHC 6.8.2

2008-01-11 Thread Peter Verswyvelen
It seems GHC 6.8.2 fixes a couple of bugs in GHC 6.8.1, so I'm using that one. Gtk2HS does not yet detect my GHC 6.8.2 installation, but I guess it is 100% compatible. Is it possible to get the Gtk2HS installer detect GHC 6.8.2? I’m on Windows. Thanks again, Peter

[Haskell-cafe] Gtk2HS and GHC 6.8.2

2007-12-23 Thread Peter Verswyvelen
It seems GHC 6.8.2 fixes a couple of bugs in GHC 6.8.1. Gtk2HS does not yet detect my GHC 6.8.2 installation, but I guess it is 100% compatible. Is it possible to get the Gtk2HS installer detect GHC 6.8.2? I'm on Windows. Thanks, Peter

[Haskell-cafe] Gtk2Hs installation problem with ghc 6.8.2 on Ubuntu 7.10

2007-12-23 Thread Yin Wang
Hi, I'm installing Gtk2Hs on my Ubuntu 7.10. I have ghc 6.8.2 compiled with the extra libs in my home directory with the configuration ./configure --prefix=/home/wy/Programs and it worked well. Then I configured gtk2hs in the same way and it compiled and installed with no problem. But when I

[Haskell-cafe] gtk2hs treeview problem (Windows)

2007-12-17 Thread Jian Fan
I installed ghc 6.6.1 and 0.9.12.1. I'm trying to use the tree view widget. To enable search in treeview, I added following 2 lines: New.treeViewAppendColumn view col3 -- my addition New.treeViewSetEnableSearch view True New.treeViewSetSearchColumn view 0 in demo/treeList/TreeDemo.hs

Re: [Haskell-cafe] gtk2hs problem

2007-11-21 Thread Gregory Propf
OK, it actually DOES appear related to the -threaded flag. I was sure I had removed that and still seen the problem but now it seems that taking that out is indeed the fix. Using the -O2 flag is OK. I guess it's some syncronization problem when using the threaded RTS. Which is a shame

[Haskell-cafe] gtk2hs problem

2007-11-20 Thread Gregory Propf
I've written a small program using the gtk2hs library and it crashes at unpredictable times with X windows errors like the one below. I looked for the messages online and found various people talking about buggy gtk libraries but no clear solutions. I don't know a lot about X windows or what

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Stefan O'Rear
On Tue, Nov 20, 2007 at 03:18:03PM -0800, Gregory Propf wrote: I've written a small program using the gtk2hs library and it crashes at unpredictable times with X windows errors like the one below. I looked for the messages online and found various people talking about buggy gtk libraries

Re: [Haskell-cafe] gtk2hs problem

2007-11-20 Thread Duncan Coutts
On Tue, 2007-11-20 at 15:18 -0800, Gregory Propf wrote: I'm using the Gtk.timeoutAddFull function to do the animation. Are you using the threaded rts? Are you linking the program with -threaded? Are you doing the drawing directly in the timeout function or just invalidating the window/widget

[Haskell-cafe] gtk2hs in Ubuntu Gutsy

2007-10-04 Thread Chad Scherrer
I just installed the beta release for Ubuntu Gutsy, and I noticed that gtk2hs (provided by libghc6-gtk-dev) is still at version 0.9.10.5-1ubuntu1. Worse, it's apparently not installable; when I try I get this message: libghc6-gtk-dev: Depends: ghc6 (6.6+) but 6.6.1-2ubuntu2 is to be installed

Re: [Haskell-cafe] gtk2hs in Ubuntu Gutsy

2007-10-04 Thread Stefan O'Rear
On Thu, Oct 04, 2007 at 09:31:56AM -0700, Chad Scherrer wrote: I just installed the beta release for Ubuntu Gutsy, and I noticed that gtk2hs (provided by libghc6-gtk-dev) is still at version 0.9.10.5-1ubuntu1. Worse, it's apparently not installable; when I try I get this message:

[Haskell-cafe] gtk2hs in debian

2007-09-03 Thread Joachim Breitner
Hi, Am Freitag, den 31.08.2007, 16:43 +0100 schrieb Duncan Coutts: You may also like to pester some ubuntu maintainer person to get the ubuntu package up to at least the latest debian version. (I'm also hoping debian will get the Gtk2Hs 0.9.12 package that's been out for a little while now)

Re: [Haskell-cafe] gtk2hs in debian

2007-09-03 Thread Antti-Juhani Kaijanaho
On Mon, Sep 03, 2007 at 11:42:56AM +0200, Joachim Breitner wrote: Maybe someone here is interesting in being the debian package maintainer? I’d be able to sponsor the uploads. I'm interested, but I'm also terribly busy. If someone else wants it, I won't bother, but if not, I'll do it. I'm a

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-09 Thread Duncan Coutts
On Sun, 2007-07-08 at 16:40 -0400, Brandon S. Allbery KF8NH wrote: On Jul 8, 2007, at 16:36 , D.V. wrote: I finally got it to work with onResponse : I traced each possible response to see which one was fired when clicking the close button And what was the result? Great, another place

[Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread D . V .
Is it possible to have multiple windows in a glade file, and display only one when the program starts, then show/hide the others as the need arises ? I can't find how... I have a main window with a menu. One entry shows the about dialog which is also defined in the glade file : aboutmenu -

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread Brandon S. Allbery KF8NH
On Jul 8, 2007, at 15:37 , D.V. wrote: Is it possible to have multiple windows in a glade file, and display only one when the program starts, then show/hide the others as the need arises ? You can but it's not well documented. I found that it was necessary to load the window each time you

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread D . V .
I'm not sure I understand xmlNewWithRootAndDomain, I'll make some tests. I found that it was necessary to load the window each time you need it. (you must re-load the XML each time) I was hoping I could only hide the dialog and not destroy it. ___

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread Brandon S. Allbery KF8NH
On Jul 8, 2007, at 16:00 , D.V. wrote: I'm not sure I understand xmlNewWithRootAndDomain, I'll make some tests. I found that it was necessary to load the window each time you need it. (you must re-load the XML each time) I was hoping I could only hide the dialog and not destroy it. As

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread D . V .
Oh ! Okay I tried and YOU ROCK ! Thanks a lot. Now it hides and comes back at will. But I still can't react to that Close button that's automatically added to that About Dialog. Here's my latest (random) try : aboutdialog - xmlGetWidget xml castToAboutDialog aboutdialog1 onDelete

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread Brandon S. Allbery KF8NH
On Jul 8, 2007, at 16:24 , D.V. wrote: But I still can't react to that Close button that's automatically added to that About Dialog. Here's my latest (random) try : aboutdialog - xmlGetWidget xml castToAboutDialog aboutdialog1 onDelete aboutdialog $ \event - do widgetHide aboutdialog

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread D . V .
I finally got it to work with onResponse : I traced each possible response to see which one was fired when clicking the close button onResponse aboutdialog $ \resp - do putStrLn onResponse!!! case resp of ResponseNone- putStrLn ResponseNone ResponseReject -

Re: [Haskell-cafe] Gtk2Hs, Glade, Multiple windows/dialog in one interface file.

2007-07-08 Thread Brandon S. Allbery KF8NH
On Jul 8, 2007, at 16:36 , D.V. wrote: I finally got it to work with onResponse : I traced each possible response to see which one was fired when clicking the close button Great, another place where the documentation's wrong. :/ (onActivateLeaf vs. onActivateItem (and after-

Re: [Haskell-cafe] GTK2HS

2007-06-15 Thread Duncan Coutts
On Thu, 2007-06-07 at 16:42 +0100, Andrew Coppin wrote: Neil Mitchell wrote: Hi Andrew, I just tried to install Gtk2hs and got an error message to the effect that it cannot be installed since I have GHC 6.6.1, which isn't 6.6 or 6.4. Anybody know how to fix this? Am I being dumb?

[Haskell-cafe] GTK2HS

2007-06-07 Thread Andrew Coppin
Erm... wuh? I just tried to install Gtk2hs and got an error message to the effect that it cannot be installed since I have GHC 6.6.1, which isn't 6.6 or 6.4. Anybody know how to fix this? Am I being dumb? Thanks. Andrew. ___ Haskell-Cafe mailing

Re: [Haskell-cafe] GTK2HS

2007-06-07 Thread Neil Mitchell
Hi Andrew, I just tried to install Gtk2hs and got an error message to the effect that it cannot be installed since I have GHC 6.6.1, which isn't 6.6 or 6.4. Anybody know how to fix this? Am I being dumb? Are you running Windows or Linux? If Linux, where did you get your package from? After

Re: [Haskell-cafe] GTK2HS

2007-06-07 Thread Andrew Coppin
Neil Mitchell wrote: Hi Andrew, I just tried to install Gtk2hs and got an error message to the effect that it cannot be installed since I have GHC 6.6.1, which isn't 6.6 or 6.4. Anybody know how to fix this? Am I being dumb? Are you running Windows or Linux? If Linux, where did you get

Re: [Haskell-cafe] Gtk2Hs and Glade Tutorial

2006-10-13 Thread Duncan Coutts
On Fri, 2006-10-13 at 15:18 +0200, Hans van Thiel wrote: Hello Duncan, Thanks for your reply, and here's the pdf. Thanks. One of the things to be improved, which I note myself, is something on how to do it on the Windows platform. It's much the same of course, but yes that would be nice.

[Haskell-cafe] Gtk2Hs and Glade Tutorial

2006-10-12 Thread Hans van Thiel
Hello, There is a very nice tutorial on the Glade Interface Designer at http://www.writelinux.com/glade and I've been using it with 'An Introduction to Gtk2Hs, A Haskell GUI Library', by Kenneth Hoste at http://haskell.org/~shae/memory.pdf to learn Gtk2Hs and Glade. The 'Gtk2Hs Introduction',

Re: [Haskell-cafe] Gtk2Hs and Glade Tutorial

2006-10-12 Thread Duncan Coutts
Hia Hans, That's great that you're interested in doing/improving Gtk2Hs tutorial material. I think actually this is one of the weakest parts of Gtk2Hs at the moment - the lack of a decent basic intro tutorial. We've often talked about starting one, and we had various ideas floating around, but