From 2f5fb35954021ba1fbd71aa3c6304394d2d67bdd Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 14 Jul 2017 15:25:37 -0400 Subject: make it possible to get applet widget We will use this to get applet widget from factory. This will allow to bypass GtkPlug/GtkSocket. Based on https://github.com/GNOME/gnome-panel/commit/408bab094d1fad471b342548dabc58410a3dc327 --- libmate-panel-applet/mate-panel-applet.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libmate-panel-applet') diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index c2e0e476..bf7a1f35 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -2454,3 +2454,10 @@ mate_panel_applet_get_object_path (MatePanelApplet *applet) { return applet->priv->object_path; } + +G_MODULE_EXPORT GtkWidget * +mate_panel_applet_get_applet_widget (const gchar *factory_id, + guint uid) +{ + return mate_panel_applet_factory_get_applet_widget (factory_id, uid); +} -- cgit v1.2.1