Skip to content

tasklist: don't report maximum size as minimum

Alberts Muktupāvels requested to merge wip/muktupavels/tasklist into master

get_preferred_width and get_preferred_height are used by containers to obtain the minimum and natural size of a widget. And widgets expects that it will get at least minimum size:
https://developer.gnome.org/gtk3/stable/GtkWidget.html#GtkWidgetClass.get-preferred-width

Currently tasklist wrongly reports maximum needed size as minimum even though it can cope with a smaller size. With this merge request minimum size will be enough to fit one button or 0 if tasklist does not have buttons.

At the same time deprecate wnck_tasklist_get_size_hint_list as it is somewhat obsolete with GTK 3 and 4 as widgets can request minimum and natural size.

Merge request reports