Custom Query (152 matches)
Results (19 - 21 of 152)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1106 | fixed | Add windowForeignNew | somebody | guest |
| description |
GDK has a function window_foreign_new that creates a gdk window object for any existing X window. It is available in the C and python bindings; I would like to use this function in gtk2hs. (I am trying to write a screensaver using Cairo and gtk2hs; It seems that you need to draw on the root window or any arbitrary window in order to work.) |
|||
| #1107 | fixed | Please implement | somebody | guest |
| description |
The following function: pango_parse_markup () isn't implemented. If anyone tells me how to do it, I'm willing to do it myself (never really touched the FFI before) |
|||
| #1108 | fixed | Add Eq instances for all of Graphics.UI.Gtk.Gdk.Enums | somebody | guest |
| description |
None of the enumerations in Gdk.Enums are instances of Eq, which makes it cumbersome to check for certain events. For example, I wanted to keep track of the fullscreen state of a window with the following code: ref <- newIORef False
onWindowState win $ \WindowState { eventWindowState = state } -> do
writeIORef ref (WindowStateFullscreen `elem` state)
return True
However, writing the code this way requires an Eq instance; workarounds require either manually defining one or using pattern matching, which is cumbersome because state is a list of WindowState values. It would be trivial to add deriving (Eq) to these enumerations (and also Read/Show, for debugging purposes). |
|||