summaryrefslogtreecommitdiff
path: root/libmate-panel-applet/mate-panel-applet-factory.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-11-18 16:54:25 +0100
committerLuke from DC <[email protected]>2020-12-05 21:46:01 +0000
commite708de9ab03b00eee6811797c9598368f6e598b7 (patch)
tree4dc23f48e26a120d8e80a9b4fd347b4ca4b863ce /libmate-panel-applet/mate-panel-applet-factory.h
parentceffc9032e410be0a9957d68e7898fe92f979cfc (diff)
downloadmate-panel-e708de9ab03b00eee6811797c9598368f6e598b7.tar.bz2
mate-panel-e708de9ab03b00eee6811797c9598368f6e598b7.tar.xz
mate-panel-applet-factory: Boilerplate
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet-factory.h')
-rw-r--r--libmate-panel-applet/mate-panel-applet-factory.h37
1 files changed, 14 insertions, 23 deletions
diff --git a/libmate-panel-applet/mate-panel-applet-factory.h b/libmate-panel-applet/mate-panel-applet-factory.h
index 3eb9a22d..2a8eeb07 100644
--- a/libmate-panel-applet/mate-panel-applet-factory.h
+++ b/libmate-panel-applet/mate-panel-applet-factory.h
@@ -26,28 +26,19 @@
#include "mate-panel-applet.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define PANEL_TYPE_APPLET_FACTORY (mate_panel_applet_factory_get_type ())
-#define MATE_PANEL_APPLET_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANEL_TYPE_APPLET_FACTORY, MatePanelAppletFactory))
-#define MATE_PANEL_APPLET_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PANEL_TYPE_APPLET_FACTORY, MatePanelAppletFactoryClass))
-#define PANEL_IS_APPLET_FACTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANEL_TYPE_APPLET_FACTORY))
-
-typedef struct _MatePanelAppletFactory MatePanelAppletFactory;
-typedef struct _MatePanelAppletFactoryClass MatePanelAppletFactoryClass;
-
-GType mate_panel_applet_factory_get_type (void) G_GNUC_CONST;
-MatePanelAppletFactory *mate_panel_applet_factory_new (const gchar *applet_id,
- gboolean out_of_process,
- GType applet_type,
- GClosure *closure);
-gboolean mate_panel_applet_factory_register_service (MatePanelAppletFactory *factory);
-GtkWidget *mate_panel_applet_factory_get_applet_widget (const gchar *id,
- guint uid);
-#ifdef __cplusplus
-}
-#endif
+G_BEGIN_DECLS
+
+#define PANEL_TYPE_APPLET_FACTORY mate_panel_applet_factory_get_type ()
+G_DECLARE_FINAL_TYPE (MatePanelAppletFactory, mate_panel_applet_factory, MATE_PANEL, APPLET_FACTORY, GObject)
+
+MatePanelAppletFactory *mate_panel_applet_factory_new (const gchar *applet_id,
+ gboolean out_of_process,
+ GType applet_type,
+ GClosure *closure);
+gboolean mate_panel_applet_factory_register_service (MatePanelAppletFactory *factory);
+GtkWidget *mate_panel_applet_factory_get_applet_widget (const gchar *id,
+ guint uid);
+
+G_END_DECLS
#endif /* MATE_PANEL_APPLET_FACTORY_H */