Skip to content
Browse files
mate-panel-applet: setup_x_error_handler for in-process applets too
This is for the tray: GtkPlug/GtkSocket widgets are used to embed tray icons (GtkStatusIcons) in the tray even if the tray is in-process and does not use the plug/socket widgets to be itself embedded in the panel
  • Loading branch information
lukefromdc authored and raveit65 committed Jul 28, 2018
1 parent a673336 commit ae885fb09c175a26a1a8abcb29df79b7d2134807
Showing with 6 additions and 4 deletions.
  1. +6 −4 libmate-panel-applet/mate-panel-applet.c
@@ -2299,10 +2299,12 @@ _mate_panel_applet_factory_main_internal (const gchar *factory_id,
g_return_val_if_fail(callback != NULL, 1);
g_assert(g_type_is_a(applet_type, PANEL_TYPE_APPLET));

if (out_process)
/*Use this both in and out of process as the tray applet always uses GtkSocket
*to handle GtkStatusIcons whether the tray itself is built in or out of process


closure = g_cclosure_new(G_CALLBACK(callback), user_data, NULL);
factory = mate_panel_applet_factory_new(factory_id, out_process, applet_type, closure);

0 comments on commit ae885fb

Please sign in to comment.