From 6341dfa47d2497d7ac36c98fc5b4727724ccc655 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 11 Jun 2024 15:52:56 +0200 Subject: Tray for flatpak --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index dcd03eb..8ead739 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -390,11 +390,11 @@ static GtkMenuShell* create_systray_menu(GtkApplication *app, SystrayPage systra } static void setup_systray(GtkApplication *app) { - app_indicator = app_indicator_new("com.dec05eba.gpu_screen_recorder", tray_idle_icon_name, APP_INDICATOR_CATEGORY_APPLICATION_STATUS); + app_indicator = app_indicator_new("com.dec05eba.gpu_screen_recorder", "", APP_INDICATOR_CATEGORY_APPLICATION_STATUS); + app_indicator_set_icon_full(app_indicator, tray_idle_icon_name, "Idle"); // This triggers Gdk assert: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed, // dont know why but it works anyways app_indicator_set_status(app_indicator, APP_INDICATOR_STATUS_ACTIVE); - app_indicator_set_title(app_indicator, "GPU Screen Recorder"); app_indicator_set_menu(app_indicator, GTK_MENU(create_systray_menu(app, SystrayPage::FRONT))); } -- cgit v1.2.3