simple GTK question ( gdk_draw_line)
surf53_at_gmx.at
Date: 11/29/05
- Next message: David W Noon: "Re: notifying change to shared memory"
- Previous message: mst: "Re: How to use ImageMagick/GraphicsMagick (C) API to convert image from one format to another?"
- Next in thread: Roger Leigh: "Re: simple GTK question ( gdk_draw_line)"
- Reply: Roger Leigh: "Re: simple GTK question ( gdk_draw_line)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Nov 2005 02:16:15 -0800
I would like to draw a simple line. The winwow appears but no line.
Where is the error?
Thanks
Peter Lash
#include <gtk/gtk.h>
int main ( int argc,
char *argv[] )
{
GtkWidget *window;
GtkWidget *widget;
GdkGC *gc =NULL;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gdk_draw_line (widget->window,gc,10,10,50,50);
gtk_widget_show (window);
gtk_main ();
return 0;
}
- Next message: David W Noon: "Re: notifying change to shared memory"
- Previous message: mst: "Re: How to use ImageMagick/GraphicsMagick (C) API to convert image from one format to another?"
- Next in thread: Roger Leigh: "Re: simple GTK question ( gdk_draw_line)"
- Reply: Roger Leigh: "Re: simple GTK question ( gdk_draw_line)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|