diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-06-11 15:52:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-11 15:52:56 +0200 |
commit | 6341dfa47d2497d7ac36c98fc5b4727724ccc655 (patch) | |
tree | 63aa2da11eed5e38b17ee0f8e3cbb3b799d636ed /src | |
parent | e73d4fe770f8e5e66e2c7bdb089719767c6853ac (diff) |
Tray for flatpak
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 4 |
1 files 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))); } |