New patches: [Add a few methods to get the widgets contained within the ColorSelectionDialog object. Maxime Henrion **20070320223305] { hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 85 + colorSelectionDialogGetColor, + colorSelectionDialogGetOkButton, + colorSelectionDialogGetCancelButton, + colorSelectionDialogGetHelpButton, hunk ./gtk/Graphics/UI/Gtk/General/Structs.hsc 882 +-- | Retrieve the ColorSelection object contained within the dialog. +colorSelectionDialogGetColor :: ColorSelectionDialog -> IO ColorSelection +colorSelectionDialogGetColor cd = + makeNewObject mkColorSelection $ liftM castPtr $ + withForeignPtr (unColorSelectionDialog cd) + #{peek GtkColorSelectionDialog, colorsel} + +-- | Retrieve the OK button widget contained within the dialog. +colorSelectionDialogGetOkButton :: ColorSelectionDialog -> IO Button +colorSelectionDialogGetOkButton cd = + makeNewObject mkButton $ liftM castPtr $ + withForeignPtr (unColorSelectionDialog cd) + #{peek GtkColorSelectionDialog, ok_button} + +-- | Retrieve the Cancel button widget contained within the dialog. +colorSelectionDialogGetCancelButton :: ColorSelectionDialog -> IO Button +colorSelectionDialogGetCancelButton cd = + makeNewObject mkButton $ liftM castPtr $ + withForeignPtr (unColorSelectionDialog cd) + #{peek GtkColorSelectionDialog, cancel_button} + +-- | Retrieve the Help button widget contained within the dialog. +colorSelectionDialogGetHelpButton :: ColorSelectionDialog -> IO Button +colorSelectionDialogGetHelpButton cd = + makeNewObject mkButton $ liftM castPtr $ + withForeignPtr (unColorSelectionDialog cd) + #{peek GtkColorSelectionDialog, help_button} + hunk ./gtk/Graphics/UI/Gtk/Selectors/ColorSelectionDialog.chs 57 + +-- * Methods + colorSelectionDialogGetColor, + colorSelectionDialogGetOkButton, + colorSelectionDialogGetCancelButton, + colorSelectionDialogGetHelpButton, hunk ./gtk/Graphics/UI/Gtk/Selectors/ColorSelectionDialog.chs 72 +import Graphics.UI.Gtk.General.Structs (colorSelectionDialogGetColor, + colorSelectionDialogGetOkButton, + colorSelectionDialogGetCancelButton, + colorSelectionDialogGetHelpButton) } Context: [Don't draw with invalid transformations. A.Simon@kent.ac.uk**20070319111233 Simply ignore any drawing actions if the widths and heights of objects are meaningless. Specifically, do not create invalid transformation matrices that make Cairo choke. ] [Export action data constructors. A.Simon@kent.ac.uk**20070312173933 We forgot to export these constructors. I had to rename the fields of the first record in order to avoid a name clash with identifieres form Action.chs. ] [Fix type of convertSignals Duncan Coutts **20070307003544] [TAG 0.9.11 Duncan Coutts **20070223181928] [Bump version to 0.9.11 Duncan Coutts **20070223181912] [Make listStoreClear keep the model consistent with the view while clearing Duncan Coutts **20070302112330 Since deleting rows can cause callbacks (eg due to selection changes) we have to make sure the model is consitent with the view at each intermediate step of clearing the store. Otherwise at some intermediate stage when the view has only been informed about some delections, the user might query the model expecting to find the remaining rows are there but find them deleted. That'd be bad. ] [Allow really exotic keys. A.Simon@kent.ac.uk**20070217114544 This patch hopefully fixes a segfault when trying to read the string description of really exotic keys on laptops. I cannot test this, so this is just an assumption about what goes wrong. Allan Clark reported this. ] [Yet another go at making linking split objs not overflow command args length Duncan Coutts **20070215232347 This is a cheap hack really. It might not help but it shouldn't hurt. ] [Do proper bounds check. A.Simon@kent.ac.uk**20070214132722] [Check for NULL pointers in makeNewGObject and makeNewObject Duncan Coutts **20070215123743 We don't need to check constructNewGObject because it's always used with constructors where as the other two are used when recieving existing objects and these are the most likely to be NULL. ] [Swap params on the styleGet* functions and tidy the code slightly. Duncan Coutts **20070215113402] [add widgetGetStyle method to provide access to the Style object associated with a widget, and make styleGet* return Colors since a) that's the more natural interface and b) the GC's returned previously seem to be NULL; since there hasn't been a way to obtain Style objects before, this shouldn't be able to break anything Benja Fallenstein **20070214140019] [Allows ListStores to be empty. A.Simon@kent.ac.uk**20070214105715 This patch fixes a bug that made it impossible to have a new list store that is empty. This bug was reported by Robert Marlow. ] [Mark many TextView functions safe since they can cause callbacks Duncan Coutts **20070211194249 Thanks to Allan Clark for reporting the problem and narrowing it down nicely to the affected function(s). ] [Remove onInsertAtCursor since it is an internal signal. A.Simon@kent.ac.uk**20070209163806] [Make autoconf 2.61 explicit. A.Simon@kent.ac.uk**20070204155619 The configure script uses two macros that are only available in autoconf 2.61 or higher. Ship these macros in explicitly so the configuration file can rebuild using autoconf 2.59. This patch can be removed once we bump up the requirement for autoconf to 2.61. This is a bad idea at the moment since 2.61 has not found its way into standard distributions yet. ] [Fix bug when emptying an empty list store. A.Simon@kent.ac.uk**20070204143848] [Rename a variable in the turtorial. A.Simon@kent.ac.uk**20070202141103] [TAG 0.9.10.6 Duncan Coutts **20070202183836] Patch bundle hash: 0927b6802973781c9976037f8df1016c0a6ba3f6