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 committed Jul 23, 2018
1 parent a130fb0 commit b37f24e
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 Original file line Diff line number Diff line change
Expand Up @@ -2302,10 +2302,12 @@ _mate_panel_applet_factory_main_internal (const gchar *factory_id,
g_return_val_if_fail(callback != NULL, 1); g_return_val_if_fail(callback != NULL, 1);
g_assert(g_type_is_a(applet_type, PANEL_TYPE_APPLET)); 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
_mate_panel_applet_setup_x_error_handler(); */
}
_mate_panel_applet_setup_x_error_handler();



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

0 comments on commit b37f24e

Please sign in to comment.