gdk_gc_copy




	Hello!

	I'm using GTK+1.1.7, and I have a problem when using gtk_gc_copy.

    darea is a gdk drawing area! 
	
    gc=(GdkGC*)g_malloc(sizeof(GdkGC));
    g_return_if_fail(gc);
    gdk_gc_copy(gc,darea->style->black_gc);
    gdk_gc_set_line_attributes(gc,1,
                GDK_LINE_ON_OFF_DASH,
                GDK_CAP_NOT_LAST,
                GDK_JOIN_MITER);

	When I run this, there is a segmentation fault in the last line.

	Can anybody help me?

	Regards!
-- 
                                     Alberto Manuel Brandao Simoes
-------------------------------------------------------------------
e-mail: mc23801@ci.uminho.pt
URL: http://members.xoom.com/mc23801/
     http://numexp.netpedia.net/
-------------------------------------------------------------------



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