diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-06-11 15:07:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-11 15:07:05 +0200 |
commit | 943038cdfed0a58a9981b5dea911fa17fb365bc5 (patch) | |
tree | 16a5a11a81ebd9af411176d03337d97d8a20d787 | |
parent | e6ee00fb50bcd0e51e08145fc581365b9c4e9a6c (diff) |
Revert "Icons path test"
This reverts commit e6ee00fb50bcd0e51e08145fc581365b9c4e9a6c.
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6f1679b..808e9cf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -140,9 +140,9 @@ static double notification_timeout_seconds = 0.0; static double notification_start_seconds = 0.0; static AppIndicator *app_indicator; -static const char *tray_idle_icon_name = "tray_idle"; -static const char *tray_recording_icon_name = "tray_recording"; -static const char *tray_paused_icon_name = "tray_paused"; +static const char *tray_idle_icon_name = "/usr/share/com.dec05eba.gpu_screen_recorder/tray_idle.png"; +static const char *tray_recording_icon_name = "/usr/share/com.dec05eba.gpu_screen_recorder/tray_recording.png"; +static const char *tray_paused_icon_name = "/usr/share/com.dec05eba.gpu_screen_recorder/tray_paused.png"; struct AudioInput { std::string name; @@ -390,7 +390,7 @@ static GtkMenuShell* create_systray_menu(GtkApplication *app, SystrayPage systra } static void setup_systray(GtkApplication *app) { - app_indicator = app_indicator_new_with_path("com.dec05eba.gpu_screen_recorder", tray_idle_icon_name, APP_INDICATOR_CATEGORY_APPLICATION_STATUS, "/usr/share/com.dec05eba.gpu_screen_recorder"); + app_indicator = app_indicator_new("com.dec05eba.gpu_screen_recorder", tray_idle_icon_name, APP_INDICATOR_CATEGORY_APPLICATION_STATUS); // 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); |