summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trashapplet/src/trashapplet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index c6a4d5ff..f50d136f 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -36,9 +36,12 @@
#include "trash-empty.h"
#include "xstuff.h"
-typedef MatePanelAppletClass TrashAppletClass;
+#define TRASH_TYPE_APPLET (trash_applet_get_type ())
+
+G_DECLARE_FINAL_TYPE (TrashApplet, trash_applet,
+ TRASH, APPLET, MatePanelApplet)
-typedef struct
+struct _TrashApplet
{
MatePanelApplet applet;
@@ -48,12 +51,9 @@ typedef struct
GtkImage *image;
GIcon *icon;
gint items;
-} TrashApplet;
+};
G_DEFINE_TYPE (TrashApplet, trash_applet, PANEL_TYPE_APPLET);
-#define TRASH_TYPE_APPLET (trash_applet_get_type ())
-#define TRASH_APPLET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- TRASH_TYPE_APPLET, TrashApplet))
static void trash_applet_do_empty (GtkAction *action,
TrashApplet *applet);