Skip to content

Commit ae885fb

Browse files
lukefromdcraveit65
authored andcommitted
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 a673336 commit ae885fb

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
@@ -2299,10 +2299,12 @@ _mate_panel_applet_factory_main_internal (const gchar *factory_id,
22992299
g_return_val_if_fail(callback != NULL, 1);
23002300
g_assert(g_type_is_a(applet_type, PANEL_TYPE_APPLET));
23012301

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

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

0 commit comments

Comments
 (0)