Custom Query (152 matches)

Filters
 
Columns

Show under each result:


Results (19 - 21 of 152)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#1093 fixed Compiling with pango-1.15.0 fails axel duncan

Reported by duncan, 8 years ago.

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?

#1265 fixed Constructors of CellRendererMode not exported somebody guest

Reported by guest, 2 years ago.

description

This was reported by Julian Blake Kongslie on http://bugs.debian.org/672288:

The constructors of the Graphics.UI.Gtk.ModelView.CellRenderer.CellRendererMode type are not exported, which makes the cellMode attribute rather hard to use. It suffices to add them to the export list in CellRenderer.chs. CellRendererMode is just an enumeration, and it seems clear that it was mere oversight that it was exported completely.

The version is 0.12.3 (missing in the trac pulldown).

#1134 wontfix Could not find module `Graphics.UI.Gtk.SourceView' duncan guest

Reported by guest, 6 years ago.

description

I hope I am reporting this at the right place.

I installed version 0.9.13 on a windows xp machine using gtk2hs-0.9.13.exe.

I had previously installed GHC 6.8.3.

I successfully compiled many examples from the demo folder, but trying to compile the sourceview example gives me the following error: Could not find module 'Graphics.UI.Gtk.SourceView?'

I then downloaded from http://projects.gnome.org/gtksourceview/download.html, but I am not sure where to put the dll of if I have some extra step to do to make it available to GHC (I could not find a SourceView? package on Hackage.)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.