From: Duncan C. <dun...@us...> - 2005-08-29 11:16:08
|
Update of /cvsroot/gtk2hs/gtk2hs/gtk/Graphics/UI/Gtk/MenuComboToolbar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1916/gtk/Graphics/UI/Gtk/MenuComboToolbar Modified Files: OptionMenu.chs.pp Toolbar.chs.pp Log Message: Make the enum and object property constructor functions take the enum/object GType as an argument. This should make these types of properties actually work. Pass the appropriate enum/object GType as an extra argument to the property constructor. Index: Toolbar.chs.pp =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/gtk/Graphics/UI/Gtk/MenuComboToolbar/Toolbar.chs.pp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Toolbar.chs.pp 25 Aug 2005 01:16:15 -0000 1.9 +++ Toolbar.chs.pp 29 Aug 2005 11:15:58 -0000 1.10 @@ -666,6 +666,7 @@ -- toolbarToolbarStyle :: ToolbarClass self => Attr self ToolbarStyle toolbarToolbarStyle = newAttrFromEnumProperty "toolbar-style" + {# call pure unsafe gtk_toolbar_style_get_type #} #if GTK_CHECK_VERSION(2,4,0) -- | If an arrow should be shown if the toolbar doesn't fit. Index: OptionMenu.chs.pp =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/gtk/Graphics/UI/Gtk/MenuComboToolbar/OptionMenu.chs.pp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- OptionMenu.chs.pp 7 May 2005 20:57:26 -0000 1.5 +++ OptionMenu.chs.pp 29 Aug 2005 11:15:58 -0000 1.6 @@ -166,6 +166,7 @@ -- optionMenuMenu :: (OptionMenuClass self, MenuClass menu) => ReadWriteAttr self Menu menu optionMenuMenu = newAttrFromObjectProperty "menu" + {# call pure unsafe gtk_menu_get_type #} -------------------- -- Signals |