Custom Query (152 matches)
Results (7 - 9 of 152)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #801 | wontfix | Swap the arguments to add timeoutAdd | somebody | A.Simon@… |
| description |
Make timeoutAdd and timeoutAddFull take the IO action last, to ease their use. Breaks API. |
|||
| #802 | fixed | Fix drawWindowGetPointer | axel | A.Simon@… |
| description |
The function drawWindowGetPointer should never return Nothing, but maybe another flag that says if the window over which the mouse cursor resides is "known to Gtk". I interpreted that as the mouse cursor being over the Gtk application window and thus, returned Nothing in case it was outside. However, even if the mouse cursor is over the application window, this function returns NULL in some cases (i.e. "not known to Gtk"). |
|||
| #1093 | fixed | Compiling with pango-1.15.0 fails | axel | duncan |
| description |
I pango 1.15.0 in the file /usr/include/pango-1.0/pango/pango-item.h there is this declaration: {
PangoEngineShape *shape_engine;
PangoEngineLang *lang_engine;
PangoFont *font;
guint level : 8;
guint gravity : 3; /* PangoGravity */
guint centered_baseline : 1; /* gboolean */
PangoLanguage *language;
GSList *extra_attrs;
};
struct _PangoItem
{
gint offset;
gint length;
gint num_chars;
PangoAnalysis analysis;
};
This makes our binding fail: pangoItemRawGetLevel :: Ptr pangoItem -> IO Bool
pangoItemRawGetLevel ptr = do
level <- #{peek PangoItem, analysis.level} ptr
return (toBool (level :: #{type guint8}))
With the error message: Structs.hsc: In function 'main': Structs.hsc:766: error: attempt to take address of bit-field structure member 'level' In the older pango version it was declared as a guint8 rather than as a bitfield. We might need a bit of C code to get that member and return it. Or can we do away with that function entirely? Is it needed? |
|||