Skip to content
Snippets Groups Projects
  1. Mar 12, 2023
  2. Feb 25, 2023
    • Gaël Bonithon's avatar
      garcon-gtk: Add missing lock when filling the GtkMenu · 4a053d16
      Gaël Bonithon authored
      Another special case not properly locked: this filling can start while
      the GarconMenu is loading, because its status is updated only at the end
      of the loading.
      
      The other occurrence of `garcon_gtk_menu_add()` that fills the root menu
      is protected because it is in the GAsyncReadyCallback, so after the task
      is finished and before another one is started. As for the third
      occurrence of `garcon_gtk_menu_add()` which fills sub-menus, it is
      protected by `g_signal_connect_object()` which keeps a reference on the
      sub-GarconMenu.
      
      Fixes criticals such as
      "g_node_last_child: assertion 'node != NULL' failed".
      
      Fixes: d2c7068e
      Related: !18
      4a053d16
  3. Feb 16, 2023
    • Gaël Bonithon's avatar
      Wait for any async operation to finish before releasing locks · 84fa5fa6
      Gaël Bonithon authored
      As the doc states, calling `g_mutex_clear()` on a locked mutex leads to
      undefined behavior. This can happen at least in the case of GarconMenu,
      where a load may be in progress at the time the last reference is
      removed in GarconGtkMenu. This can be reproduced by reloading the panel
      configuration via xfce4-panel-profiles when a custom menu file is used.
      
      Fixes: 966f7c99
      Related: !18
      84fa5fa6
  4. Jan 20, 2023
  5. Jan 14, 2023
    • Brian Tarricone's avatar
      Use GIcons for menu icons instead of loading surfaces · f66a4780
      Brian Tarricone authored
      It turn out GtkImage automatically takes UI scale factor into account
      when loading images from GIcons.  This allows us to avoid having to
      thread through the scale factor everywhere, and also means we don't need
      to do anything when the scale factor changes.
      f66a4780
  6. Jan 13, 2023
  7. Jan 02, 2023
  8. Dec 31, 2022
  9. Dec 15, 2022
  10. Dec 05, 2022
  11. Nov 30, 2022
  12. Nov 04, 2022
  13. Nov 02, 2022
  14. Oct 31, 2022
  15. Oct 29, 2022
  16. Oct 28, 2022
  17. Oct 26, 2022
  18. Oct 19, 2022
  19. Sep 17, 2022
    • Gaël Bonithon's avatar
      garcon: Escape '%' when building command from URL desktop files · f33c23d2
      Gaël Bonithon authored
      Since Garcon reduces the case of URL desktop files to the case of a
      classic file with an Exec key of value `exo-open 'URL'`, and there is no
      reliable way to distinguish the two cases from the outside when invoking
      `garcon_menu_item_get_command()`, Garcon must escape the '%' characters
      in the URL as if they appeared in the value of an Exec key.
      
      Fixes: #31
      f33c23d2
  20. Sep 10, 2022
  21. Sep 05, 2022
  22. Jul 16, 2022
  23. Jul 11, 2022
Loading