summaryrefslogtreecommitdiff
path: root/libmate-panel-applet/mate-panel-applet-factory.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-07-14 03:21:51 -0400
committerlukefromdc <[email protected]>2017-08-13 14:37:24 -0400
commit109dc78304c309c368b95df17ee9a057fbb72402 (patch)
treec152dd9cb72166c57499119cbe429dbf92560c73 /libmate-panel-applet/mate-panel-applet-factory.c
parent025a11fdaa76111afc8e03faf6ac36b17028e585 (diff)
downloadmate-panel-109dc78304c309c368b95df17ee9a057fbb72402.tar.bz2
mate-panel-109dc78304c309c368b95df17ee9a057fbb72402.tar.xz
libpanel-applet: add process type to private data
We will need to know this as soon we will create GtkPlug and GtkSocket only for out of process applets. based on https://github.com/GNOME/gnome-panel/commit/dafdc5714a6cfc7ebf26fcbd614b48cfc790b954
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet-factory.c')
-rw-r--r--libmate-panel-applet/mate-panel-applet-factory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmate-panel-applet/mate-panel-applet-factory.c b/libmate-panel-applet/mate-panel-applet-factory.c
index 82d256ac..63f41950 100644
--- a/libmate-panel-applet/mate-panel-applet-factory.c
+++ b/libmate-panel-applet/mate-panel-applet-factory.c
@@ -28,6 +28,7 @@ struct _MatePanelAppletFactory {
gchar *factory_id;
guint n_applets;
+ gboolean out_of_process;
GType applet_type;
GClosure *closure;
};
@@ -83,6 +84,7 @@ mate_panel_applet_factory_applet_removed (MatePanelAppletFactory *factory,
MatePanelAppletFactory *
mate_panel_applet_factory_new (const gchar *factory_id,
+ gboolean out_of_process,
GType applet_type,
GClosure *closure)
{
@@ -90,6 +92,7 @@ mate_panel_applet_factory_new (const gchar *factory_id,
factory = MATE_PANEL_APPLET_FACTORY (g_object_new (PANEL_TYPE_APPLET_FACTORY, NULL));
factory->factory_id = g_strdup (factory_id);
+ factory->out_of_process = out_of_process;
factory->applet_type = applet_type;
factory->closure = g_closure_ref (closure);
@@ -150,6 +153,7 @@ mate_panel_applet_factory_get_applet (MatePanelAppletFactory *factory,
g_variant_get (parameters, "(&si@a{sv})", &applet_id, &screen_num, &props);
applet = g_object_new (factory->applet_type,
+ "out-of-process", factory->out_of_process,
"id", applet_id,
"connection", connection,
"closure", factory->closure,