[EMAIL PROTECTED] wrote:
> 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.
Tested your code but could not reproduce the issue you reported (using
gtk+ 2.10.13 from Debian packages)
You'd probably better call gtk_widget_show_all() on the main window:
this will realize both the window and children widgets.
regards
Attilio
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev