summaryrefslogtreecommitdiff
path: root/libmate-panel-applet/mate-panel-applet.h
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-07-14 02:57:41 -0400
committerlukefromdc <[email protected]>2017-08-13 14:37:24 -0400
commit025a11fdaa76111afc8e03faf6ac36b17028e585 (patch)
tree4c58def9e909bf5e57cc30bc2629456d74d67a61 /libmate-panel-applet/mate-panel-applet.h
parent7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e (diff)
downloadmate-panel-025a11fdaa76111afc8e03faf6ac36b17028e585.tar.bz2
mate-panel-025a11fdaa76111afc8e03faf6ac36b17028e585.tar.xz
libpanel-applet: Remove out_process from panel_applet_factory_main()
This argument makes no sense when introspection is used since, in that case, the applet will be out-of-process anyway. Instead, create a panel_applet_factory_setup_in_process() API that is marked as "skip" for introspection, that is used to setup the factory for in-process applets. Based on https://github.com/GNOME/gnome-panel/commit/6ef943dd473ac662dea01645e0ab1f6564361253
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.h')
-rw-r--r--libmate-panel-applet/mate-panel-applet.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.h b/libmate-panel-applet/mate-panel-applet.h
index 1d6f15ee..6d747ca4 100644
--- a/libmate-panel-applet/mate-panel-applet.h
+++ b/libmate-panel-applet/mate-panel-applet.h
@@ -112,9 +112,14 @@ void mate_panel_applet_request_focus(MatePanelApplet* applet, guint32 timestamp)
void mate_panel_applet_setup_menu(MatePanelApplet* applet, const gchar* xml, GtkActionGroup* action_group);
void mate_panel_applet_setup_menu_from_file(MatePanelApplet* applet, const gchar* filename, GtkActionGroup* action_group);
-int mate_panel_applet_factory_main(const gchar* factory_id, gboolean out_process, GType applet_type, MatePanelAppletFactoryCallback callback, gpointer data);
+int mate_panel_applet_factory_main(const gchar* factory_id, GType applet_type, MatePanelAppletFactoryCallback callback, gpointer data);
gboolean _mate_panel_applet_shlib_factory(void);
+int panel_applet_factory_setup_in_process (const gchar *factory_id,
+ GType applet_type,
+ MatePanelAppletFactoryCallback callback,
+ gpointer data);
+
/*
* These macros are getting a bit unwieldy.
@@ -168,7 +173,7 @@ int main(int argc, char* argv[]) \
\
gtk_init (&argc, &argv); \
\
- retval = mate_panel_applet_factory_main (id, TRUE, type, callback, data); \
+ retval = mate_panel_applet_factory_main (id, type, callback, data); \
g_option_context_free (context); \
\
return retval; \
@@ -178,7 +183,8 @@ int main(int argc, char* argv[]) \
G_MODULE_EXPORT gint _mate_panel_applet_shlib_factory(void) \
{ \
_MATE_PANEL_APPLET_SETUP_GETTEXT(FALSE); \
- return mate_panel_applet_factory_main(id, FALSE, type, callback, data); \
+return mate_panel_applet_factory_setup_in_process (id, type, \
+ callback, data); \
}
#ifdef __cplusplus