diff options
author | Michal Ratajsky <[email protected]> | 2014-06-23 12:36:57 +0200 |
---|---|---|
committer | Michal Ratajsky <[email protected]> | 2014-06-23 12:36:57 +0200 |
commit | 8197f71e2a50b9a74b99315bb481274f612b83b3 (patch) | |
tree | 8d13e65e5f411df3d5da1a1da83cafbec446e7be /libmate-desktop/mate-bg-crossfade.h | |
parent | 2ced78e503c3b55f89bc02aab828ed559dd8dec1 (diff) | |
download | mate-desktop-8197f71e2a50b9a74b99315bb481274f612b83b3.tar.bz2 mate-desktop-8197f71e2a50b9a74b99315bb481274f612b83b3.tar.xz |
Use G_{BEGIN,END}_DECLS instead of #ifdef __cplusplus in header files and make sure to include glib.h for these macros
Diffstat (limited to 'libmate-desktop/mate-bg-crossfade.h')
-rw-r--r-- | libmate-desktop/mate-bg-crossfade.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libmate-desktop/mate-bg-crossfade.h b/libmate-desktop/mate-bg-crossfade.h index 28c1e28..f4674fd 100644 --- a/libmate-desktop/mate-bg-crossfade.h +++ b/libmate-desktop/mate-bg-crossfade.h @@ -29,12 +29,11 @@ #error MateBGCrossfade is unstable API. You must define MATE_DESKTOP_USE_UNSTABLE_API before including mate-bg-crossfade.h #endif +#include <glib.h> #include <gdk/gdk.h> #include <gtk/gtk.h> -#ifdef __cplusplus -extern "C" { -#endif +G_BEGIN_DECLS #define MATE_TYPE_BG_CROSSFADE (mate_bg_crossfade_get_type ()) #define MATE_BG_CROSSFADE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_BG_CROSSFADE, MateBGCrossfade)) @@ -82,8 +81,6 @@ void mate_bg_crossfade_start (MateBGCrossfade *fade, gboolean mate_bg_crossfade_is_started (MateBGCrossfade *fade); void mate_bg_crossfade_stop (MateBGCrossfade *fade); -#ifdef __cplusplus -} -#endif +G_END_DECLS #endif |