Skip to content

Commit b37f24e

Browse files
committed
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
1 parent a130fb0 commit b37f24e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎libmate-panel-applet/mate-panel-applet.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,10 +2302,12 @@ _mate_panel_applet_factory_main_internal (const gchar *factory_id,
23022302
g_return_val_if_fail(callback != NULL, 1);
23032303
g_assert(g_type_is_a(applet_type, PANEL_TYPE_APPLET));
23042304

2305-
if (out_process)
2306-
{
2307-
_mate_panel_applet_setup_x_error_handler();
2308-
}
2305+
/*Use this both in and out of process as the tray applet always uses GtkSocket
2306+
*to handle GtkStatusIcons whether the tray itself is built in or out of process
2307+
*/
2308+
2309+
_mate_panel_applet_setup_x_error_handler();
2310+
23092311

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

0 commit comments

Comments
 (0)