Ticket #333: graphics_gtk_drawing_area.c.diff

File graphics_gtk_drawing_area.c.diff, 1.1 KB (added by Stressedpiper, 12 years ago)
  • graphics_gtk_drawing_area.c

     
    609609               g_object_unref(gra->background);
    610610               gra->background_ready = 0;
    611611        }
     612#ifndef _WIN32
    612613        dbg(1,"window=%d\n", GDK_WINDOW_XID(widget->window));
     614#endif
    613615        gra->width=widget->allocation.width;
    614616        gra->height=widget->allocation.height;
    615617        gra->drawable = gdk_pixmap_new(widget->window, gra->width, gra->height, -1);
     
    911913graphics_gtk_drawing_area_disable_suspend(struct window *w)
    912914{
    913915        struct graphics_priv *gr=w->priv;
     916
     917#ifndef _WIN32
    914918        if (gr->pid)
    915919                kill(gr->pid, SIGWINCH);
     920#else
     921    dbg(1, "failed to kill() under Windows\n");
     922#endif
    916923}               
    917924
    918925static void *
     
    921928        FILE *f;
    922929        if (!strcmp(type,"gtk_widget"))
    923930                return this->widget;
     931#ifndef _WIN32
    924932        if (!strcmp(type,"xwindow_id"))
    925933                return (void *)GDK_WINDOW_XID(this->widget->window);
     934#endif
    926935        if (!strcmp(type,"window")) {
    927936                char *cp = getenv("NAVIT_XID");
    928937                unsigned xid = 0;