mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
assert gdk setup going ok
This commit is contained in:
parent
f827bebf80
commit
63487dc5d0
1 changed files with 11 additions and 10 deletions
|
@ -1380,16 +1380,17 @@ gtkDrawCtxtMake( GtkWidget* drawing_area, GtkAppGlobals* globals )
|
|||
allocAndSet( map, &dctx->white, 0xFFFF, 0xFFFF, 0xFFFF );
|
||||
|
||||
{
|
||||
GdkWindow *window = NULL;
|
||||
if ( GTK_WIDGET_FLAGS(GTK_WIDGET(drawing_area)) & GTK_NO_WINDOW ) {
|
||||
/* XXX I'm not sure about this function because I never used it.
|
||||
* (the name seems to indicate what you want though).
|
||||
*/
|
||||
window = gtk_widget_get_parent_window( GTK_WIDGET(drawing_area) );
|
||||
} else {
|
||||
window = GTK_WIDGET(drawing_area)->window;
|
||||
}
|
||||
window = GTK_WIDGET(drawing_area)->window;
|
||||
// GdkWindow *window = NULL;
|
||||
/* if ( GTK_WIDGET_FLAGS(GTK_WIDGET(drawing_area)) & GTK_NO_WINDOW ) { */
|
||||
/* /\* XXX I'm not sure about this function because I never used it. */
|
||||
/* * (the name seems to indicate what you want though). */
|
||||
/* *\/ */
|
||||
/* window = gtk_widget_get_parent_window( GTK_WIDGET(drawing_area) ); */
|
||||
/* } else { */
|
||||
/* window = GTK_WIDGET(drawing_area)->window; */
|
||||
/* } */
|
||||
GdkWindow* window = GTK_WIDGET(drawing_area)->window;
|
||||
XP_ASSERT( !!window );
|
||||
#ifdef USE_CAIRO
|
||||
dctx->cr = gdk_cairo_create( window );
|
||||
XP_LOGF( "dctx->cr=%p", dctx->cr );
|
||||
|
|
Loading…
Reference in a new issue