Re: [n00b] what's a smooth_draw_box?



On Mon, 17 Dec 2007 18:30:57 -0800 Daniel Fetchinson wrote:

Hi list,

I've just started with GTK and been going through the tutorial and
examples. My first small application is working all right but the
following (I guess) warning keeps being written to the console:

CRITICAL **: smooth_draw_box: assertion `width >= -1'

This looks like a message from the gtk theme engine 'smooth'.  Probably
harmless...

What I believe is the relevant part of my code:

window = gtk_window_new( GTK_WINDOW_TOPLEVEL );
gtk_container_set_border_width( GTK_CONTAINER( window ), 50 );
gtk_widget_show( window );
scale = gtk_hscale_new( GTK_ADJUSTMENT( adjustment ) );
gtk_widget_set_size_request( GTK_WIDGET( scale ), 350, 40 );
gtk_container_add( GTK_CONTAINER( window ), scale );
gtk_widget_show( scale );
gtk_main(  );

... unless you're doing something very very odd somewhere else.

        -brian




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