Hi, I try to port gtk+ with directfb backend on SH4
processor.
After I compile all packages completely, I use the
following
codes to test.

#include <gtk/gtk.h>

int main( int argc, char *argv[] )
{
    GtkWidget *window;
    GtkWidget *button;
    
    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    button = gtk_button_new_with_label ("Hello
World");
    gtk_container_add (GTK_CONTAINER (window),
button);
    gtk_widget_show (button);
    gtk_widget_show  (window);
    
    gtk_main ();
    return 0;
}

I can see a window with blue background if I comment
gtk_widget_show(button).
But if I uncomment gtk_widget_show(button), I can't
see anything just a black
screen. Could anyone give me any suggestion about
this? Thank in advance.

The following are these packages I use 
        zlib-1.2.3
        libpng-1.2.18
        freetype-2.3.4
        jpeg-6b
        DirectFB-1.0.0-rc1
        atk-1.9.1
        expat-2.0.1
        fontconfig-2.4.2
        cairo-1.4.6
        pango-1.16.4
        gtk+-2.10.13


      
____________________________________________________________________________________
想及時通知通訊錄裡的所有親朋好友好消息,就來 Yahoo!奇摩電子信箱發簡訊!
http://tw.mobile.yahoo.com/texts/mail.php

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to