gtk_drawing_area_new()



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]