[libadwaita/libadwaita-1-1] tab-view: Fix set_menu_model() check
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/libadwaita-1-1] tab-view: Fix set_menu_model() check
- Date: Tue, 23 Aug 2022 15:54:40 +0000 (UTC)
commit b8a448a0cc42ef4d147224953915133e11189c35
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Aug 20 13:55:21 2022 +0400
tab-view: Fix set_menu_model() check
menu_model can be NULL.
(cherry picked from commit 845a0dd092e8ec6259752cfe6ae0e30f128f9c42)
src/adw-tab-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab-view.c b/src/adw-tab-view.c
index 26b64436..f4673b55 100644
--- a/src/adw-tab-view.c
+++ b/src/adw-tab-view.c
@@ -2464,7 +2464,7 @@ adw_tab_view_set_menu_model (AdwTabView *self,
GMenuModel *menu_model)
{
g_return_if_fail (ADW_IS_TAB_VIEW (self));
- g_return_if_fail (G_IS_MENU_MODEL (menu_model));
+ g_return_if_fail (menu_model == NULL || G_IS_MENU_MODEL (menu_model));
if (self->menu_model == menu_model)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]