Skip to content

Commit

Permalink
mate-panel-applet: setup_x_error_handler for in-process applets too
Browse files Browse the repository at this point in the history
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 ae885fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libmate-panel-applet/mate-panel-applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
_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);
Expand Down

0 comments on commit ae885fb

Please sign in to comment.