cannot draw lines in a GtkDrawingArea widget
- From: heavenscape <masonduan1 sina com>
- To: gtk-list gnome org
- Subject: cannot draw lines in a GtkDrawingArea widget
- Date: Wed, 21 Jun 2006 20:29:23 -0700 (PDT)
Hi all,
I need to draw some lines in a GtkDrawingArea widget, and I use the
following code:
GtkWidget* w = lookup_widget(MainWnd,"drawingarea1");
gdk_draw_line(w->window, // a GdkDrawable - a GdkWindow
w->style->fg_gc[GTK_WIDGET_STATE (w)],// a GdkGC.
10,//the x coordinate of the start point
30,//the y coordinate of the start point
580,//the x coordinate of the end point
30 //the y coordinate of the start point
);
it does not work! Anybody knows why?
Thanks!!
--
View this message in context: http://www.nabble.com/cannot-draw-lines-in-a-GtkDrawingArea-widget-t1827981.html#a4986548
Sent from the Gtk+ - General forum at Nabble.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]