diff options
author | Christopher Davis <brainblasted@disroot.org> | 2020-12-21 00:03:00 -0800 |
---|---|---|
committer | Christopher Davis <brainblasted@disroot.org> | 2020-12-21 00:08:53 -0800 |
commit | e3b577cd163e80e744e42f0933c4f47912735129 (patch) | |
tree | 8c9031f14b842aab1d64b837658e161449218f4e | |
parent | ea76847fa2cc1bd3ee3d1816f62ab31b40b2bbfd (diff) | |
download | gnome-todo-wip/cdavis/fix-errors.tar.gz |
gui: Fix errors from GTK4 resizing changeswip/cdavis/fix-errors
Shortly before release some changes to GTK4's window
sizing code landed. These changes broke API and To Do's
build. This commit fixes the build issues caused by those changes.
-rw-r--r-- | src/gui/gtd-menu-button.c | 2 | ||||
-rw-r--r-- | src/gui/gtd-window.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gtd-menu-button.c b/src/gui/gtd-menu-button.c index 7a4c759c..d53f2060 100644 --- a/src/gui/gtd-menu-button.c +++ b/src/gui/gtd-menu-button.c @@ -244,7 +244,7 @@ gtd_menu_button_size_allocate (GtkWidget *widget, &(GtkAllocation) { 0, 0, width, height }, baseline); if (priv->popover) - gtk_native_check_resize (GTK_NATIVE (priv->popover)); + gtk_popover_present (GTK_POPOVER (priv->popover)); } static gboolean diff --git a/src/gui/gtd-window.c b/src/gui/gtd-window.c index 2f45c9b9..21f741ad 100644 --- a/src/gui/gtd-window.c +++ b/src/gui/gtd-window.c @@ -534,7 +534,7 @@ gtd_window_unmap (GtkWidget *widget) gint height; gint width; - gtk_window_get_size (window, &width, &height); + gtk_window_get_default_size (window, &width, &height); g_settings_set (settings, "window-size", "(ii)", width, height); } |