simple GTK question ( gdk_draw_line)

surf53_at_gmx.at
Date: 11/29/05


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;
  
 }



Relevant Pages

  • Using Libsx to rotate text
    ... I am trying to use the simple X library to draw some simulated ... of the line a fixed distance from each end point. ... int main (int argc, char **argv) ... float rollCountdown = 0; ...
    (comp.os.linux.misc)
  • Using Libsx for drawing rotated text.
    ... I 'm trying to use the simple X library to draw some simulated ... of the line a fixed distance from each end point. ... int main (int argc, char **argv) ... float rollCountdown = 0; ...
    (comp.os.linux.development.apps)
  • Using Libsx for drawing rotated text.
    ... I 'm trying to use the simple X library to draw some simulated ... of the line a fixed distance from each end point. ... int main (int argc, char **argv) ... float rollCountdown = 0; ...
    (comp.os.linux.x)