summaryrefslogtreecommitdiff
path: root/src/caja-trash-bar.h
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-01-24 17:49:38 +0800
committerlukefromdc <[email protected]>2019-01-28 03:13:55 +0000
commite8f124db938d82554f98a325dc23e9e09e195eb4 (patch)
tree181b91a8b83ac64a9e86efc5b3b4266c33d3512b /src/caja-trash-bar.h
parent331a0e15750c92795aedb05a5e4178c6acc16bc1 (diff)
downloadcaja-e8f124db938d82554f98a325dc23e9e09e195eb4.tar.bz2
caja-e8f124db938d82554f98a325dc23e9e09e195eb4.tar.xz
Avoid deprecated g_type_class_add_private
- caja-connect-server-dialog - caja-navigation-window - caja-property-browser - caja-sidebar-title - caja-trash-bar - caja-window - caja-zoom-action - caja-zoom-control - fm-desktop-icon-view - fm-properties-window
Diffstat (limited to 'src/caja-trash-bar.h')
-rw-r--r--src/caja-trash-bar.h29
1 files changed, 12 insertions, 17 deletions
diff --git a/src/caja-trash-bar.h b/src/caja-trash-bar.h
index 5d20175e..7365d9c9 100644
--- a/src/caja-trash-bar.h
+++ b/src/caja-trash-bar.h
@@ -27,9 +27,7 @@
#include <gtk/gtk.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
+G_BEGIN_DECLS
#define CAJA_TYPE_TRASH_BAR (caja_trash_bar_get_type ())
#define CAJA_TRASH_BAR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CAJA_TYPE_TRASH_BAR, CajaTrashBar))
@@ -38,27 +36,24 @@ extern "C" {
#define CAJA_IS_TRASH_BAR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CAJA_TYPE_TRASH_BAR))
#define CAJA_TRASH_BAR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CAJA_TYPE_TRASH_BAR, CajaTrashBarClass))
- typedef struct CajaTrashBarPrivate CajaTrashBarPrivate;
+typedef struct _CajaTrashBarPrivate CajaTrashBarPrivate;
- typedef struct
- {
+typedef struct
+{
GtkBox box;
CajaTrashBarPrivate *priv;
- } CajaTrashBar;
+} CajaTrashBar;
- typedef struct
- {
- GtkBoxClass parent_class;
+typedef struct
+{
+GtkBoxClass parent_class;
- } CajaTrashBarClass;
+} CajaTrashBarClass;
- GType caja_trash_bar_get_type (void) G_GNUC_CONST;
+GType caja_trash_bar_get_type (void) G_GNUC_CONST;
- GtkWidget *caja_trash_bar_new (CajaWindow *window);
+GtkWidget *caja_trash_bar_new (CajaWindow *window);
-
-#ifdef __cplusplus
-}
-#endif
+G_END_DECLS
#endif /* __GS_TRASH_BAR_H */