gtk top level window not coming



Hi, 

I am not getting any top level window(title bar,X button,
borders) when trying to run this small window.c program over
GTK-DirectFB. [but with GTK-X its working fine]

----------------------------------------------------------
#include <gtk/gtk.h>
#include <glib.h>

int main (int argc, char *argv[])
{
  /*-- Declare the GTK Widgets used in the program --*/
  GtkWidget *window;

  /*--  Initialize GTK --*/
  gtk_init (&argc, &argv);

  /*-- Create the new window --*/
  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

  /*-- Display the window --*/
  gtk_widget_show(window);

  /*-- Start the GTK event loop --*/
  gtk_main();

  /*-- Return 0 if exit is successful --*/
  return 0;
}
------------------------------------------------------------
gcc -Wall -g window.c -o window `gtk-config --cflags`
`gtk-config --libs`

./window
------------------------------------------------------------

Anyone knows what is happening.
Wheter DirectFB supports top level window(title bar, borders,
etc..)
I have run other small applications also, everytime I'm
getting the internal contents only, the top level window is
never displayed with GTK-DFB.


Regards,
Prasanna



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