diff options
author | Ryan Lortie <[email protected]> | 2011-03-29 23:41:17 +0530 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-14 13:08:19 +0200 |
commit | e9c7cb073d30e30aeac0a2e9fe3c21f1d0f49cd0 (patch) | |
tree | a03cf5f3b1cd91ce3042fba7c5f32f48c6cf2fea /applets/notification_area/na-tray-manager.h | |
parent | be334f90f603df90bee15d43f5f67a052fa07ff2 (diff) | |
download | mate-panel-e9c7cb073d30e30aeac0a2e9fe3c21f1d0f49cd0.tar.bz2 mate-panel-e9c7cb073d30e30aeac0a2e9fe3c21f1d0f49cd0.tar.xz |
notification applet: support fixed-sized icons
Add a new _NET_SYSTEM_TRAY_ICON_SIZE property that is set to the value
of the "icon-size" style property. The result is that all icons in the
tray will be hinted to draw themselves with exactly this pixel size
(16x16, for example).
Bug #645232
Conflicts:
applets/notification_area/na-tray-manager.c
applets/notification_area/na-tray-manager.h
applets/notification_area/na-tray.h
Diffstat (limited to 'applets/notification_area/na-tray-manager.h')
-rw-r--r-- | applets/notification_area/na-tray-manager.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/applets/notification_area/na-tray-manager.h b/applets/notification_area/na-tray-manager.h index e98c4848..a461510b 100644 --- a/applets/notification_area/na-tray-manager.h +++ b/applets/notification_area/na-tray-manager.h @@ -31,9 +31,7 @@ #include "na-tray-child.h" -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS #define NA_TYPE_TRAY_MANAGER (na_tray_manager_get_type ()) #define NA_TRAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NA_TYPE_TRAY_MANAGER, NaTrayManager)) @@ -60,6 +58,12 @@ struct _NaTrayManager GtkWidget *invisible; GdkScreen *screen; GtkOrientation orientation; + gint padding; + gint icon_size; + GdkColor fg; + GdkColor error; + GdkColor warning; + GdkColor success; GList *messages; GHashTable *socket_table; @@ -96,9 +100,17 @@ gboolean na_tray_manager_manage_screen (NaTrayManager *manager, void na_tray_manager_set_orientation (NaTrayManager *manager, GtkOrientation orientation); GtkOrientation na_tray_manager_get_orientation (NaTrayManager *manager); - -#ifdef __cplusplus -} -#endif +void na_tray_manager_set_padding (NaTrayManager *manager, + gint padding); +void na_tray_manager_set_icon_size (NaTrayManager *manager, + gint padding); +void na_tray_manager_set_colors (NaTrayManager *manager, + GdkColor *fg, + GdkColor *error, + GdkColor *warning, + GdkColor *success); + + +G_END_DECLS #endif /* __NA_TRAY_MANAGER_H__ */ |