If the size if your widget has changed, call gtk_widget_queue_resize on
your widget to queue a resize cycle.


On Tue, Aug 5, 2014 at 5:03 AM, ax487 <ax...@gmx.de> wrote:

> Hello all,
>
> I have the following scenario: I have a huge custom GtkWidget which I
> want to display inside a GtkViewport inside a GtkScrolledWindow. The
> custom widget has implemented the get_preferred_height /
> get_preferred_width methods to notify the container of its enormous
> dimensions. Now assume that I want to offer the user the functionality
> to zoom into the widget in question. Of course this would increase the
> dimensions of widget even further. However, the GtkViewport doesn't know
> that the widget's desired geometry has changed. Is there any way to
> notify the GtkViewPort of this change? I noticed the (deprecated /
> undocumented) gtk_container_resize_children method of the GtkContainer
> but other than that I can't find anything in the documentation. I would
> appreciate it if you could give me some pointers.
>
> ax487
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>



-- 
  Jasper
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to