Skip to content

Commit

Permalink
Addons: Hide status icon on startup until Geany has started
Browse files Browse the repository at this point in the history
This avoids showing the status icon without an icon on startup and
even if it is disabled while Geany is starting.
  • Loading branch information
eht16 committed Jun 9, 2024
1 parent 3e38966 commit 5d487fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/src/ao_systray.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ static void ao_systray_init(AoSystray *self)
const gchar *icon_name;

priv->icon = gtk_status_icon_new();
gtk_status_icon_set_visible(priv->icon, FALSE);
icon_name = gtk_window_get_icon_name(GTK_WINDOW(geany->main_widgets->window));
if (icon_name) /* Geany >= 1.23 */
gtk_status_icon_set_from_icon_name(priv->icon, icon_name);
Expand Down

0 comments on commit 5d487fc

Please sign in to comment.