summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-grid.h
diff options
context:
space:
mode:
authorFabien Broquard <[email protected]>2018-10-02 20:21:37 +0200
committerraveit65 <[email protected]>2019-01-28 17:14:33 +0100
commitbab2d5a98eff9e1ef8d7c01c958fe6e39d13440e (patch)
tree5515e51d1850f14d7b6b1b0b477a2fdc61020cc2 /applets/notification_area/na-grid.h
parent5027993097729e980239ac1ed65e86bd31d2901d (diff)
downloadmate-panel-bab2d5a98eff9e1ef8d7c01c958fe6e39d13440e.tar.bz2
mate-panel-bab2d5a98eff9e1ef8d7c01c958fe6e39d13440e.tar.xz
na-tray: wide panels, convert main GtkBox display to GtkGrid
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.
Diffstat (limited to 'applets/notification_area/na-grid.h')
-rw-r--r--applets/notification_area/na-grid.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/applets/notification_area/na-grid.h b/applets/notification_area/na-grid.h
index 956d73c5..7ddcc23c 100644
--- a/applets/notification_area/na-grid.h
+++ b/applets/notification_area/na-grid.h
@@ -33,8 +33,10 @@
G_BEGIN_DECLS
#define NA_TYPE_GRID (na_grid_get_type ())
-G_DECLARE_FINAL_TYPE (NaGrid, na_grid, NA, GRID, GtkBox)
+G_DECLARE_FINAL_TYPE (NaGrid, na_grid, NA, GRID, GtkGrid)
+void na_grid_set_min_icon_size (NaGrid *grid,
+ gint min_icon_size);
GtkWidget *na_grid_new (GtkOrientation orientation);
void na_grid_force_redraw (NaGrid *grid);