Skip to content

Commit

Permalink
prevent non-gtk-systray-icons from disappearing on redisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobinja committed Sep 28, 2012
1 parent 51bbcb4 commit e3e44ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/cinnamon-gtk-embed.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ static void
cinnamon_gtk_embed_unrealize (ClutterActor *actor)
{
CinnamonGtkEmbed *embed = CINNAMON_GTK_EMBED (actor);

_cinnamon_embedded_window_unrealize (embed->priv->window);

if (embed->priv->window)
_cinnamon_embedded_window_unrealize (embed->priv->window);

CLUTTER_ACTOR_CLASS (cinnamon_gtk_embed_parent_class)->unrealize (actor);
}
Expand Down
8 changes: 5 additions & 3 deletions src/cinnamon-tray-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,12 @@ cinnamon_tray_manager_child_redisplay (gpointer socket_pointer, gpointer child_p
CinnamonTrayManagerChild *child = child_pointer;

g_return_if_fail(child != NULL);
g_return_if_fail(GTK_IS_WIDGET(child->window));

gtk_widget_unrealize(child->window);
gtk_widget_realize(child->window);
if (child->actor && CLUTTER_IS_ACTOR(child->actor)) {
clutter_actor_destroy(child->actor);
}

on_plug_added(socket_pointer, child->manager);
}

void cinnamon_tray_manager_redisplay (CinnamonTrayManager *manager)
Expand Down

0 comments on commit e3e44ba

Please sign in to comment.