]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktextmark.h
Add GtkScrollable interface
[~andy/gtk] / gtk / gtktextmark.h
index 30eb59af2a76c7fb85f3ad6831acc084a2203961..5bddf92739f8c06cde0f74fa27c2cdb1fdc3b905 100644 (file)
  *
  */
 
-#ifndef GTK_TEXT_MARK_H
-#define GTK_TEXT_MARK_H
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#ifndef __GTK_TEXT_MARK_H__
+#define __GTK_TEXT_MARK_H__
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
+G_BEGIN_DECLS
 
 /* The GtkTextMark data type */
 
@@ -70,7 +72,7 @@ struct _GtkTextMark
 {
   GObject parent_instance;
 
-  gpointer segment;
+  gpointer GSEAL (segment);
 };
 
 struct _GtkTextMarkClass
@@ -90,14 +92,14 @@ 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);
 G_CONST_RETURN 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);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif