summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-grid.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Reduce scope of variablesColomban Wendling1-2/+3
Mostly found by cppcheck. origin commit was: https://github.com/mate-desktop/mate-panel/commit/96c7ebc
2024-02-04Revert "Reduce scope of variables"raveit651-3/+2
This reverts commit 96c7ebc6dc9e8b8327db04a9570054ee78743353.
2023-11-21Reduce scope of variablesColomban Wendling1-2/+3
Mostly found by cppcheck.
2023-06-15Wayland, Tray applet: allow in-process applet to load, using SNI only (#1372)Luke from DC1-5/+9
*We cannot load the legacy system tray in Wayland as that requires xembed. *We CAN load the status-notifier (SNI support) *Wayland needs us to explicitly set gtk_button_set_always_show_image to TRUE *Wayland needs us to explicitly set gtk_image_menu_item_set_always_show_image to TRUE
2022-06-02notification_area: Reduce lifetime of the settings local variable (#1309)Robert Antoni Buj Gelonch1-2/+2
2022-04-22Register SNI host only if SNI is enabledIlya Fedin1-1/+6
This prevents duplication of tray icons
2020-07-05Use '#include <config.h>' instead of '#include "config.h"'rbuj1-1/+1
2019-07-05Remove trailing whitespacesLaurent Napias1-6/+6
2019-01-29fix crash on removing traylukefromdc1-2/+2
*clear applet gsettings on dispose to stop crash and memory leak introduced in github.com/mate-desktop/mate-panel/commit/10b9c30fc79de5f8d9516ba153df233c4968da65 *tray: fix misplaced g_return_if_fail check
2018-12-30Tray: Fix too-wide icon spacing after mate-polkit has been used w snilukefromdc1-0/+5
Note that vertical and horizontal panels require different options in the grid, as "homogenous" is needed in rows for horizontal panels and columns in vertical panels to prevent icon rendering problems including icons growing without limit when the tray is moved from a horizontal to a vertical panel
2018-10-20na-tray: wide panels, convert main GtkBox display to GtkGridFabien Broquard1-55/+132
New grid sorting/display functions to arrange notification area icons in a self reorganising grid main changes in: item_added_cb(), notification_notify() -> refresh_notify(). update_size_and_orientation() is no longer needed the grid auto arranges on any size-allocation which includes orientation changes. Grid is now refreshed with refresh_grid()/determine_grid_properties()/reorder_items_with_data(). based on the min_icon_size property the main applets' code can call na_grid_set_min_icon_size() to update the grid icon size.
2018-10-20na-tray: wide panels, preliminary batch box to grid renameFabien Broquard1-0/+371
box/Box/BOX changed to grid/Grid/GRID as a preliminary step to prepare for changing GtkBox in na-box/na-grid to a GtkGrid to make the notification area work well on vertical and wide panels note: even if everything is renamed to grid, the GtkWidget is still a GtkBox thats why GtkBox and GTK_TYPE_BOX have not been renamed.