1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

calls-main-window: Adapt to GTKWidget's size allocation changes

https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkwidgets-size-allocation-changes

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-13 17:09:55 -08:00
parent f6c9ff5c2e
commit fef4e02b50

View file

@ -420,14 +420,16 @@ dispose (GObject *object)
static void
size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
int width,
int height,
int baseline)
{
CallsMainWindow *self = CALLS_MAIN_WINDOW (widget);
adw_view_switcher_title_set_view_switcher_enabled (self->title_switcher,
allocation->width > 400);
width > 400);
GTK_WIDGET_CLASS (calls_main_window_parent_class)->size_allocate (widget, allocation);
GTK_WIDGET_CLASS (calls_main_window_parent_class)->size_allocate (widget, width, height, baseline);
}