Hello, Attilio
Thank very much for your response.

I have tried serverl tests and I found I can show
button on the window when I tried the following codes

gtk_button_set_image(GtkButton *button,               
                                          GtkWidget
*image);

instead of

gtk_button_new(void);

I could see a button with image on it although the
image
shown wan't clear.

And then in gdkvisual-directfb.c

static DFBSurfacePixelFormat formats[] =
{
  DSPF_ARGB,
  DSPF_LUT8,
  DSPF_RGB32,
  DSPF_RGB24,
  DSPF_RGB16,
  DSPF_ARGB1555,
  DSPF_RGB332
};

if (acc & DFXL_BLIT || formats[i] == dlc.pixelformat)
{
  system_visual = GDK_VISUAL (visuals[c]);
  c++;
}

I found this piece of code will choose DSPF_ARGB1555
as
the system_visual according to my gfxdriver capability
in directfb. After I changed the system_visual to
DSPF_RGB16, the image on the button was fine and
clear.

But I still can't figure it out why I can't see
button (or any widget) on my window...using the 
following code..
    gtk_button_new(void);

Does someone have any clues about this situation or
know the flow of drawing operations of widgets on
directfb ?





      
____________________________________________________________________________________
想及時通知通訊錄裡的所有親朋好友好消息,就來 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