Re: [gtk-list] gtk questions



Tim Newsham, dans le message (.gtk.general:1389), a écrit :
> So all that works pretty well, so far, warts and all.  Now the
> problem.  Sometimes the layout seems to shuffle around its bin_window
> or do something that causes it to trigger a bunch of refresh operations.
> The problem is, it doesn't always send me every refresh that happens
> (I'm hooked into the expose event callback so I can refresh all the
> things I've drawn on the gtklayout as appropriate).  So, occasionally
> all the things I've drawn to the gtklayout disappear and I get no
> expose event.  Probably some internal optimization.  So what do I do?
> Do I just take apart GtkLayout and hack it up into the creature I
> need it to be?


That may be that :

gtklayout.c :

  /* We don't have any way of telling themes about this properly,
   * so we just assume a background pixmap
   */
  if (!GTK_WIDGET_APP_PAINTABLE (widget))
    gdk_window_clear_area (layout->bin_window,
                           area->x, area->y, area->width, area->height);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]