gdk_draw_point failing?
- From: manu aradhya <manu_aradhya yahoo co in>
- To: Ian Bell <ian ruffrecords worldonline co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: gdk_draw_point failing?
- Date: Fri, 26 Sep 2003 16:37:53 +0100 (BST)
is any erro with gdk_draw_point() ?
main () {
GtkWidget *window;
GtkWidget *da;
GtkWidget *fixed;
int x = 10; int y = 10;
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
fixed = gtk_fixed_new ();
da = gtk_drawing_area_new ();
gtk_drawing_area_size (GTK_DRAWING_AREA (da), 60, 60);
gtk_container_add (GTK_CONTAINER (fixed), da);
for (x = 10;x <= 50; x++)
gdk_draw_point (da->window, da->style->black_gc, x,
y);
gdk_draw_point (da->window, da->style->black_gc, x,
y);
gtk_widget_show (da);
gtk_container_add (GTK_CONTAINER(window),fixed);
gtk_widget_set_size_request (window,500,400);
gtk_widget_show_all (window);
gtk_main ();
-
assertion `GDK_IS_DRAWABLE (drawable)' failed
can anybody tell me whts the problem with the
gdk_draw_point ();
thax for ur help.
________________________________________________________________________
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]