[libadwaita/wip/exalm/fixes: 3/3] demo: Fix a critical when toggling tab indicators




commit 4fcd13758a76daed50e781137b77699dbfaaf833
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Aug 27 00:08:34 2022 +0400

    demo: Fix a critical when toggling tab indicators

 demo/pages/tab-view/adw-tab-view-demo-window.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/demo/pages/tab-view/adw-tab-view-demo-window.c b/demo/pages/tab-view/adw-tab-view-demo-window.c
index adc4eef2..4462e535 100644
--- a/demo/pages/tab-view/adw-tab-view-demo-window.c
+++ b/demo/pages/tab-view/adw-tab-view-demo-window.c
@@ -278,6 +278,8 @@ tab_change_indicator (GSimpleAction *action,
   if (indicator) {
     icon = get_indicator_icon (get_current_page (self));
     tooltip = get_indicator_tooltip (get_current_page (self));
+  } else {
+    tooltip = g_strdup ("");
   }
 
   adw_tab_page_set_indicator_icon (get_current_page (self), icon);


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