Пример #1
0
/* Remove icon from the tray */
void remove_icon(Window w)
{
	struct TrayIcon *ti;
	//char *name;
	/* Ignore false alarms */
	if ((ti = icon_list_find(w)) == NULL) return;
	dump_tray_status();
	embedder_unembed(ti);
	xembed_unembed(ti);
	//layout_remove(ti);
	icon_list_free(ti);
	LOG_INFO(("removed icon %s (wid 0x%x)\n", x11_get_window_name(tray_data.dpy, ti->wid, "<unknown>"), w));

	refresh_icons_later(FALSE);

	dump_tray_status();
}
Пример #2
0
/* Remove a destroyed icon from the tray */
void destroy_icon(Window w)
{
	struct TrayIcon *ti;
	//char *name;
	/* Ignore false alarms */
	if ((ti = icon_list_find(w)) == NULL) return;
	dump_tray_status();
	ti->is_destroyed = True;
	embedder_unembed(ti);
	xembed_unembed(ti);
	//layout_remove(ti);
	icon_list_free(ti);
	LOG_INFO(("destroy icon (wid 0x%x)\n", w));

	refresh_icons_later(FALSE);

	dump_tray_status();
}
Пример #3
0
/* Remove icon from the tray */
void remove_icon(Window w)
{
	struct TrayIcon *ti;
	char *name;
	/* Ignore false alarms */
	if ((ti = icon_list_find(w)) == NULL) return;
	dump_tray_status();
	embedder_unembed(ti);
	xembed_unembed(ti);
	layout_remove(ti);
	icon_list_free(ti);
	LOG_INFO(("removed icon %s (wid 0x%x)\n",
				x11_get_window_name(tray_data.dpy, ti->wid, "<unknown>"), 
				w));
	/* no need to call embedde_update_positions(), as
	 * scrollbars_click(SB_WND_MAX) will call it */
	/* XXX: maybe we need a different name for this
	 * routine instad of passing cryptinc constant? */
	scrollbars_click(SB_WND_MAX);
	tray_update_window_props();
	dump_tray_status();
}