Hi Axel,
hi everybody,

sorry, my problem does go on...

Am Sonntag, den 28.06.2009, 23:25 +0200 schrieb Axel Simon:
Don't enter any values. In fact, if that's possible in Glade, set the  
model of the ComboBox to NULL.

Glade allows two project data formats: "GtkBuilder" and "libglade". I did not understand the difference, but "Libglade" allows for entering items, "GtkBuilder" does not. So according to what's written above I should probably choose "GtkBuilder" and build my own listStore?

Then in Haskell land, create a new list store, add your strings into  
it and set it as the store of the combo box.

   store <- listStoreNew ["foo", "bar", "baz"]
   comboBoxSetModel combo (Just store)

This code doesn't compile. To be able to talk about real code I wrote the following small example:

module Main where
import Graphics.UI.Gtk
import Graphics.UI.Gtk.Glade

main = do
    initGUI
    Just xml <- xmlNew "test.glade"
    window <- xmlGetWidget xml castToWindow "window1"
    button <- xmlGetWidget xml castToButton "button1"
    combo  <- xmlGetWidget xml castToComboBox "combobox1"
   
    store <- listStoreNew ["foo", "bar", "baz"]
  comboBoxSetModel combo (Just store)

    onClicked button $ do
        input <- comboBoxGetActiveText combo
        print input

    onDestroy window mainQuit
    widgetShowAll window
    mainGUI

trying to start ghci with it it says:
test.hs:12:27:
    Couldn't match expected type `TMType'
           against inferred type `[Char]'
    In the expression: "foo"
    In the first argument of `listStoreNew', namely
        `["foo", "bar", "baz"]'
    In a 'do' expression: store <- listStoreNew ["foo", "bar", "baz"]
Failed, modules loaded: none.

I don't understand the API enough to build the "TMType" and still my application is up and running on Linux but not on Windows.

Cheers,
Bernhard