]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktearoffmenuitem.h
Remove deprecated GtkAction functions
[~andy/gtk] / gtk / gtktearoffmenuitem.h
index ba5ff76a8a4f11f212829508b10ca0341fdbdb83..a30b0ec462c7ba8afe8acb70655d7a910f826416 100644 (file)
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
-#ifndef __GTK_MENU_TEAROFF_ITEM_H__
-#define __GTK_MENU_TEAROFF_ITEM_H__
+#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
 
+#ifndef __GTK_TEAROFF_MENU_ITEM_H__
+#define __GTK_TEAROFF_MENU_ITEM_H__
 
-#include <gdk/gdk.h>
-#include <gtk/gtkmenuitem.h>
 
+#include <gtk/gtkmenuitem.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
 
+G_BEGIN_DECLS
 
 #define GTK_TYPE_TEAROFF_MENU_ITEM           (gtk_tearoff_menu_item_get_type ())
 #define GTK_TEAROFF_MENU_ITEM(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEAROFF_MENU_ITEM, GtkTearoffMenuItem))
@@ -52,7 +52,7 @@ struct _GtkTearoffMenuItem
 {
   GtkMenuItem menu_item;
 
-  guint torn_off : 1;
+  guint GSEAL (torn_off) : 1;
 };
 
 struct _GtkTearoffMenuItemClass
@@ -70,9 +70,6 @@ struct _GtkTearoffMenuItemClass
 GType     gtk_tearoff_menu_item_get_type     (void) G_GNUC_CONST;
 GtkWidget* gtk_tearoff_menu_item_new         (void);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
+G_END_DECLS
 
 #endif /* __GTK_TEAROFF_MENU_ITEM_H__ */