One example of gtk-demo called 'expander', everytime when I double-click this 
function will make gtk-demo carshed with (!) "[ 1370:   12.312] --> Caught 
signal 11 (at 0x54, invalid address) <--Killed".
Its source is as following:

/* Expander
 *
 * GtkExpander allows to provide additional content that is initially hidden.
 * This is also known as "disclosure triangle".
 *
 */

#include <gtk/gtk.h>

static GtkWidget *window = NULL;


GtkWidget *
do_expander (GtkWidget *do_widget)
{
  GtkWidget *vbox;
  GtkWidget *label;
  GtkWidget *expander;

  if (!window)
  {
    window = gtk_dialog_new_with_buttons ("GtkExpander",
       GTK_WINDOW (do_widget),
       0,
       GTK_STOCK_CLOSE,
       GTK_RESPONSE_NONE,
       NULL);
    gtk_window_set_resizable (GTK_WINDOW (window), FALSE);

    g_signal_connect (window, "response",
        G_CALLBACK (gtk_widget_destroy), NULL);
    g_signal_connect (window, "destroy",
        G_CALLBACK (gtk_widget_destroyed), &window);

    vbox = gtk_vbox_new (FALSE, 5);
    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox), vbox, TRUE, TRUE, 
0);
    gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);

    label = gtk_label_new ("Expander demo. Click on the triangle for details.");
    gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);

    /* Create the expander */
    expander = gtk_expander_new ("Details");
    gtk_box_pack_start (GTK_BOX (vbox), expander, FALSE, FALSE, 0);

    label = gtk_label_new ("Details can be shown or hidden.");
    gtk_container_add (GTK_CONTAINER (expander), label);
  }

  if (!GTK_WIDGET_VISIBLE (window))
     gtk_widget_show_all (window);     //crashed here
  else
    gtk_widget_destroy (window);
  return window;
}





thomas liu
2007-05-16



发件人: Pedro Aguilar
发送时间: 2007-05-16 15:02:46
收件人: thomas liu
抄送: 
主题: Re: Re: Re: [directfb-dev] Warninig in Pango and Fontconfig

Hi,

The warnings are normal, they just tell you that there is not DirectFB
support for that particular GDK functionality. You could implement it ;)

Which functions crash?
Could you send an example and log?

If you send the email to the directfb-dev list too, there is more people
that could help you.

Regards,

Pedro Aguilar

> Hi,
>
>     Yes, now gtk-demo can run on Mips, even with some problem. Fonts show
> out.
>     Some warnings on the following:
>
> Fontconfig error: Cannot load default config file
> (gtk-demo:1009): Gdk-DirectFB-WARNING **:
> gdk_display_request_selection_notification Unimplemented function
> (gtk-demo:1009): Gdk-DirectFB-WARNING **: gdk_window_set_keep_above() not
> implemented.
> (gtk-demo:1009): Gdk-DirectFB-WARNING **: gdk_window_set_keep_below() not
> implemented.
>
>     Can you remember? This demo shows many items on the screen left, I try
> to test these functions. Some of them can be run normally, but most
> crash without warning, like:
>
> (!) [ 1009:  454.305] -- > Caught signal 11 (at 0x54, invalid address)  <--
> (!) Direct/Thread: Killing 'Fusion Dispatch' (1011)!
> Killed
>
>     Why?
>     I have set many env variables while crosscompile, do I also need to
> set some on target?
>
>
>
>
>
> thomas liu
> 2007-05-16
>
>
>
> 发件人: Pedro Aguilar
> 发送时间: 2007-05-15 23:13:46
> 收件人: thomas liu
> 抄送:
> 主题: Re: Re: [directfb-dev] Warninig in Pango and Fontconfig
>
> Hi,
>
> At the moment I don't have the config files (for the fontconfig issue)
> nor
> the hardware (I had a PNX8550) because I'm working in another project. So
> I cannot test :(
>
> I remember I had some warnings regarding fontconfig, but the apps worked
> fine. gtk-demo worked well.
>
> What is the error output at the moment?
> Does gtk-demo run?
>
> Regards,
>
> Pedro Aguilar
>
> > OK, thanks. The pango problem seems been fixed.
> > I use
> > ./pango-querymodules /opt/gtkdfb-mipsel/lib/pango/1.5.0/modules/*  >
> > /opt/gtkdfb-mipsel/etc/pango/pango.modules
> >
> > But fontconfig problem puzzled me:)
> >
> >
> >
> >
> > thomas liu
> > 2007-05-15
> >
> >
> >
> > 发件人: Pedro Aguilar
> > 发送时间: 2007-05-15 16:50:30
> > 收件人: thomas liu
> > 抄送: directfb-dev
> > 主题: Re: [directfb-dev] Warninig in Pango and Fontconfig
> >
> > Hi,
> >
> > You can exec in the target
> > $ pango-querymodules    > /etc/pango/pango.modules
> >
> > The fc-cache if for speeding up app start-up.
> > $ fc-cache    <fonts-dir   >
> >
> >   <fonts-dir   > could be something like /usr/share/fonts in the target
> >
> > Regards,
> >
> > Pedro Aguilar
> >
> >  > Hi
> >  >
> >  > I cross-compliled gtk+2.10.0 with all libraries
> >  > (glib,pango,fontconfig,atk,freetype)
> >  > but pango and fontconfig gives the warnings..
> >  >
> >  > That warnings are:
> >  >
> >  > In fontconfig:
> >  >
> >  > ***
> >  > *** Warning: fonts.cache not built
> >  > ***
> >  > *** Generate this file manually on host system using fc-cache
> >  > ***
> >  >
> >  > In pango:
> >  >
> >  > Warning :pango.modules not created
> >  > Generate this file on the target system
> >  > system using pango-querymodules..
> >  >
> >  >
> >  > and i got error on target(when running gtk-demo) like following:
> >  >
> >  > Fontconfig error: Cannot load default config file
> >  >
> >  > (gtk-demo:953): Pango-WARNING **: No builtin or dynamically
> >  > loaded modules were found. Pango will not work correctly.
> >  > This probably means there was an error in the creation of:
> >  >   
> > '/home/IPTV/stb810-SP5/build/rootfs/opt/gtkdfb-mipsel/etc/pango/pango.modules'
> >  > You should create this file by running pango-querymodules.
> >  >
> >  > Have you encountered this and how to solve it? Thank you!
> >  >
> >  > Regards,
> >  >
> >  >
> >  >
> >  > thomas liu
> >  > 2007-05-15
> >  >
> >  >
> >  >
> >  > 发件人: Pedro Aguilar
> >  > 发送时间: 2007-05-12 19:59:35
> >  > 收件人: thomas liu
> >  > 抄送: directfb-dev; Attilio Fiandrotti
> >  > 主题: Re: [directfb-dev] GTK over DirectFB on MIPS processor
> >  >
> >  > Hi,
> >  >
> >  > This Fontconfig error is normal if you don't have any fonts installed
> >  > in
> >  > your system. It's not a compilation problem. For a quick test, you
> > can
> >  > copy some fonts (like /usr/share/fonts/bitstream-vera) from your
> > linux
> >  > host to your target. This should work. Add the path where you copy
> > the
> >  > fonts in your target to the fonts.conf.
> >  >
> >  > Regards,
> >  >
> >  > Pedro Aguilar
> >  >
> >  > On Fri, 2007-05-11 at 17:57 +0800, thomas liu wrote:
> >  >   > Thanks for your reply!
> >  >   >
> >  >   > Just now I recompiled Pango, then the crash msg became:
> >  >   >
> >  >   >     Fontconfig error: Cannot load default config file
> >  >   > No fonts found; this probably means that the fontconfig
> >  >   > library is not correctly configured. You may need to
> >  >   > edit the fonts.conf configuration file. More information
> >  >   > about fontconfig can be found in the fontconfig(3) manual
> >  >   > page and on http://fontconfig.org
> >  >   >  (!!!)  *** WARNING [Application exited without deinitialization
> > of
> >  >   > DirectFB!] *
> >  >   > ** [core.c:741 in dfb_core_deinit_check()]
> >  >   > (!) Direct/Thread: Killing 'Fusion Dispatch' (1012)!
> >  >   > Killed
> >  >   >
> >  >   > So is it concerned about fontconfig?
> >  >   >
> >  >   > I found in pango readme following:  After installing fontconfig,
> > it
> >  >   > may be necessary to edit
> >  >   > the fonts.conf file, found at $(sysconfdir)/fonts/fonts.conf
> >  >   > (usually /etc/fonts/fonts.conf) to point at the fonts
> >  >   > on your system.
> >  >   >
> >  >   > Could anybody tell me how to edit the font.conf file? Thank you!
> >  >   >
> >  >   > 
> > ______________________________________________________________________
> >  >   > thomas liu
> >  >   > 2007-05-11
> >  >   >
> >  >   > 
> > ______________________________________________________________________
> >  >   > 发件人: Attilio Fiandrotti
> >  >   > 发送时间: 2007-05-11 17:14:39
> >  >   > 收件人: directfb-dev
> >  >   > 抄送:
> >  >   > 主题: Re: [directfb-dev] GTK over DirectFB on MIPS processor
> >  >   >
> >  >   > 刘挺 ha scritto:
> >  >   >     > Hello,
> >  >   >     >
> >  >   >     >        I saw your bug report on
> >  >   >     > 
> > http://mail.directfb.org/pipermail/directfb-dev/2006-May/001854.html,
> >  >   >     > which I faced today almost the same.
> >  >   >     >        I want to setup GTK
> >  >   > + on a Philips PNX8550 MIPS processor which
> >  >   >     > supports DirectFB 0.9.25, so I follow a Wiki help doc from
> >  >   >     > 
> > http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB_for_Embedded_Systems
> >  >   >     >
> >  >   >     
> > <http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB_for_Embedded_Systems
> >  >   >     >       >
> >  >   >     > (is it written by you?) to do this. I downloaded those
> > components
> >  > and
> >  >   >     > followed the instructions strictly.
> >  >   >     >        Finally I compiled GTK+ successfully on MIPS, but when
> > I
> >  > run
> >  >   >     > gtk-demo, it crashes with the following msg:
> >  >   >
> >  >   >     <snip/     >
> >  >   >
> >  >   >     >        What do you think the problem is? Any help is
> > appreciated.
> >  >   >
> >  >   > Could you please provide a backtrace of the crash ? This could
> > help
> >  > in
> >  >   > understanding what the crash is due to.
> >  >   >
> >  >   > BTW, now the gt-2-10 gtk+ branch is up to date again, you may want
> > to
> >  >   > use it instead of trunk.
> >  >   >
> >  >   > regards
> >  >   >
> >  >   > Attilio
> >  >   >
> >  >   > _______________________________________________
> >  >   > directfb-dev mailing list
> >  >   > [email protected]
> >  >   > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >  >   > _______________________________________________
> >  >   > directfb-dev mailing list
> >  >   > [email protected]
> >  >   > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >  > --
> >  > Pedro Aguilar
> >  >
> >  >
> >  > _______________________________________________
> >  > directfb-dev mailing list
> >  > [email protected]
> >  > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >  > _______________________________________________
> >  > directfb-dev mailing list
> >  > [email protected]
> >  > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >  >
> >
> >
> >
> > _______________________________________________
> > directfb-dev mailing list
> > [email protected]
> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to