Re: gtk3: behavior of gtk_widget_set_size_request



On Sun, Feb 13, 2011 at 5:49 AM, Allin Cottrell <cottrell wfu edu> wrote:
I'm using gtk_widget_set_size_request on a GtkTreeView that gets
embedded in a scrolled window which in turn is embedded in a
larger window -- setting the width to 120 and leaving the height
unset.

This works as expected in gtk2, but in gtk3 the treeview's window
is much narrower (doesn't look like 120), and its width doesn't
respond even if I double the request. Am I missing some change in
the widget-sizing code?

Yes that has changed, setting the size request now only effects
the widgets requested size.

We added gtk_scrolled_window_set_min_content_width() specifically
for your purposes.

Cheers,
         -Tristan



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