gtk_drawing_area_new()
- From: Russell Shaw <rjshaw iprimus com au>
- To: gtk-app-devel-list gnome org
- Subject: gtk_drawing_area_new()
- Date: Tue, 21 Oct 2003 19:07:31 +1000
Hi,
In this code, grid->window is NULL (in gdk_draw_rectangle). Is a parent
widget needed to inherit the window from?
GtkWidget *grid=gtk_drawing_area_new();
gtk_widget_set_size_request(grid,100,100);
gdk_gc_set_foreground(gc,&(obj->background.col));
gdk_draw_rectangle(grid->window,gc,TRUE,0,0,grid->allocation.width,grid->allocation.height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]