Thanks, that helps! The documentation says that a toplevel window has a 
title bar and border though, so I expected a bit more decoration.

On Tuesday, 26 August 2014 17:48:59 UTC+1, Przemek Klosowski wrote:
>
> On Tue, Aug 26, 2014 at 12:02 PM, Julian Gold 
> <[email protected] <javascript:>> wrote: 
> > Have just started developing for BBB, and have written the most basic 
> GTK 
> > application: 
> > 
> > #include <gtk/gtk.h> 
> > 
> > int main( int argc, char *argv[]) 
> > { 
> >   GtkWidget *window; 
> >   gtk_init(&argc, &argv); 
> >   window = gtk_window_new(GTK_WINDOW_TOPLEVEL); 
> >   gtk_widget_show(window); 
> >   gtk_main(); 
> >   return 0; 
> > } 
> > 
> > which I've compiled and linked successfully with 
> > 
> >     gcc -o simple simple.c `pkg-config --libs --cflags gtk+-2.0` 
> > 
> > However, when I run from either the terminal or Gnome, all I get is a 
> > locked-up white square in the top left corner of the screen. What am I 
> doing 
> > wrong? 
> > 
> You created a  toplevel window and went into the event loop with no 
> events connected to callbacks or anything else, so your application is 
> working exactly as written. You could try to create a widget button 
> GtkWidget * button  = gtk_button_new_with_label("Exit");, place it, 
> and g_signal_connect() it to gtk exit callback. Or, you could use 
> glade GUI builder to streamline the process. 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to