RE: Unable to run gtk-demo



Title: RE: Unable to run gtk-demo

I've modified gtktextdisplay.c like below and I found that attr list is null.
Please tell me in what circumstance, extra_attr list becomes null.

static void
get_shape_extents (PangoLayoutRun *run,
                   PangoRectangle *ink_rect,
                   PangoRectangle *logical_rect)
{
  GSList *tmp_list = run->item->analysis.extra_attrs;

  printf("HEECHUL: tmp_list = %d\n", tmp_list);
  while (tmp_list)
    {
      PangoAttribute *attr = tmp_list->data;

      printf("HEECHUL: *tmp_list = %d, *attr = %d, attr->klass = %d\n",
      *tmp_list, *attr, attr->klass);
      printf("HEECHUL: attr->klass->type = %d\n", attr->klass->type );      
      if (attr->klass->type == PANGO_ATTR_SHAPE)
 {
   printf("HEECHUL: logical_rect = %d, ink_rect = %d\n", logical_rect, ink_rect);


# gtk-demo
eth0: Null event in orinoco_interrupt!
HEECHUL: tmp_list = 415096
HEECHUL: *tmp_list = 667800, *attr = 0, attr->klass = 1077011440 <-- *attr = 0
HEECHUL: attr->klass->type = 16777216

Gtk-ERROR **: file gtktextdisplay.c: line 237 (get_shape_extents): should not be
 reached
aborting...
Aborted
#                                           

-----Original Message-----
From: hcyun etri re kr [mailto:hcyun etri re kr]
Sent: Wednesday, August 27, 2003 11:51 AM
To: gtk-app-devel-list gnome org
Subject: Unable to run gtk-demo


After cross-compiling all the gtk+2.2 related things for my iPAQ, I have problem in running gtk-demo application.
----------
# gtk-demo
Gtk-ERROR **: file gtktextdisplay.c: line 232 (get_shape_extents): should not be
 reached
aborting...
Aborted
#           
-----------
Can anybody please tell me what cause this kind of problem?. Just any hint will be thankful.
I'm not using familiar distribution but using our own distribution and I've compiled and installed following packages. So I'm not sure I've configured my system correctly. Other than make install, I only made /usr/etc/pango/pango.modules and /usr/etc/gtk-2.0/gtk.immodules by using pango-querymodules and gtk-query-immodules-2.0.

glib-2.2.2
gtk+-2.2.2
pango-1.2.3
atk-1.2.4
freetype-2.1.2
gettext-0.12.1
fcpackage.2_0 : Xft, Xrender, fontconfig
libiconv-1.9.1
-
HeeChul Yun,         
Embedded S/W Team at ETRI
phone: +82-42-860-1673
The Qplus website : http://qplus.etri.re.kr/qplus-p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]