Skip to content
Permalink
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 committed Jul 22, 2018
1 parent a130fb0 commit b37f24ea4aabd954b7c7810a681ec8fc62c65631
Showing with 6 additions and 4 deletions.
  1. +6 −4 libmate-panel-applet/mate-panel-applet.c
@@ -2302,10 +2302,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)
{
_mate_panel_applet_setup_x_error_handler();
}
/*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
*/

_mate_panel_applet_setup_x_error_handler();


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 b37f24e

Please sign in to comment.
You can’t perform that action at this time.