diff options
author | Vincent Untz <[email protected]> | 2011-04-06 11:11:54 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-14 13:08:19 +0200 |
commit | be334f90f603df90bee15d43f5f67a052fa07ff2 (patch) | |
tree | c6acd65635feb138ad42893726890711e659d698 /applets | |
parent | d6441581b88fc1fcd5da07bcb485ac6a246f3a28 (diff) | |
download | mate-panel-be334f90f603df90bee15d43f5f67a052fa07ff2.tar.bz2 mate-panel-be334f90f603df90bee15d43f5f67a052fa07ff2.tar.xz |
na: Fix thin lines appearing when an icon is removed
We were simply never removing the NaTrayChild/GtkSocket object from the
box when the icon/GtkPlug gets removed.
Conflicts:
applets/notification_area/na-tray.c
Diffstat (limited to 'applets')
-rw-r--r-- | applets/notification_area/na-tray.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/applets/notification_area/na-tray.c b/applets/notification_area/na-tray.c index 2bacc7d2..4cb2a34a 100644 --- a/applets/notification_area/na-tray.c +++ b/applets/notification_area/na-tray.c @@ -240,6 +240,7 @@ tray_removed (NaTrayManager *manager, return; priv = tray->priv; + g_assert (tray->priv->trays_screen == trays_screen); gtk_container_remove (GTK_CONTAINER (priv->box), icon); @@ -875,6 +876,39 @@ idle_redraw_cb (NaTray *tray) } void +na_tray_set_padding (NaTray *tray, + gint padding) +{ + NaTrayPrivate *priv = tray->priv; + + if (get_tray (priv->trays_screen) == tray) + na_tray_manager_set_padding (priv->trays_screen->tray_manager, padding); +} + +void +na_tray_set_icon_size (NaTray *tray, + gint size) +{ + NaTrayPrivate *priv = tray->priv; + + if (get_tray (priv->trays_screen) == tray) + na_tray_manager_set_icon_size (priv->trays_screen->tray_manager, size); +} + +void +na_tray_set_colors (NaTray *tray, + GdkColor *fg, + GdkColor *error, + GdkColor *warning, + GdkColor *success) +{ + NaTrayPrivate *priv = tray->priv; + + if (get_tray (priv->trays_screen) == tray) + na_tray_manager_set_colors (priv->trays_screen->tray_manager, fg, error, warning, success); +} + +void na_tray_force_redraw (NaTray *tray) { NaTrayPrivate *priv = tray->priv; |