gtk top level window not coming


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 --*/

  /*-- Start the GTK event loop --*/

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


Anyone knows what is happening.
Wheter DirectFB supports top level window(title bar, borders,
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.


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