]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktextmark.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtktextmark.h
index 851123c4ac0bcae4fc50c0d98baf839278ae7e4d..a68a3aeb156e048cf59a748af437bd96b2cd3198 100644 (file)
 #ifndef __GTK_TEXT_MARK_H__
 #define __GTK_TEXT_MARK_H__
 
-G_BEGIN_DECLS
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
 
-/* The GtkTextMark data type */
+G_BEGIN_DECLS
 
 typedef struct _GtkTextMark      GtkTextMark;
 typedef struct _GtkTextMarkClass GtkTextMarkClass;
@@ -68,6 +70,7 @@ struct _GtkTextMark
 {
   GObject parent_instance;
 
+  /*< private >*/
   gpointer segment;
 };
 
@@ -82,19 +85,19 @@ struct _GtkTextMarkClass
   void (*_gtk_reserved4) (void);
 };
 
-GType        gtk_text_mark_get_type   (void) G_GNUC_CONST;
+GType                 gtk_text_mark_get_type         (void) G_GNUC_CONST;
 
-void           gtk_text_mark_set_visible (GtkTextMark *mark,
-                                          gboolean     setting);
-gboolean       gtk_text_mark_get_visible (GtkTextMark *mark);
+GtkTextMark          *gtk_text_mark_new              (const gchar *name,
+                                                      gboolean     left_gravity);
+void                  gtk_text_mark_set_visible      (GtkTextMark *mark,
+                                                      gboolean     setting);
+gboolean              gtk_text_mark_get_visible      (GtkTextMark *mark);
 
-G_CONST_RETURN gchar* gtk_text_mark_get_name         (GtkTextMark *mark);
+const gchar *         gtk_text_mark_get_name         (GtkTextMark *mark);
 gboolean              gtk_text_mark_get_deleted      (GtkTextMark *mark);
 GtkTextBuffer*        gtk_text_mark_get_buffer       (GtkTextMark *mark);
 gboolean              gtk_text_mark_get_left_gravity (GtkTextMark *mark);
 
 G_END_DECLS
 
-#endif
-
-
+#endif  /* __GTK_TEXT_MARK_H__ */