summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.h
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2011-11-26 23:48:10 +0100
committerPaolo Borelli <pborelli@gnome.org>2011-12-01 01:22:39 +0100
commit0bff1af7a20948a7275a4e9e1fa3fac903a422f8 (patch)
treec49ef37d2d3fdf1ce6c19beeb78204f46f666351 /gtk/gtktextlayout.h
parentb3f850e6b9b12143b3286e129cbe17ca60351d7d (diff)
downloadgtk+-0bff1af7a20948a7275a4e9e1fa3fac903a422f8.tar.gz
Rework GtkTextView cursor code.
Move the handling of primary/secondary cursors to gtktextdisplay, which makes code simpler and more consistent to how GtkLabel and GtkEntry draw cursors, which is useful in preparation to further refactoring. https://bugzilla.gnome.org/show_bug.cgi?id=640317
Diffstat (limited to 'gtk/gtktextlayout.h')
-rw-r--r--gtk/gtktextlayout.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h
index 78ec750c91..ed2556a865 100644
--- a/gtk/gtktextlayout.h
+++ b/gtk/gtktextlayout.h
@@ -109,7 +109,6 @@ typedef struct _GtkTextLineData GtkTextLineData;
typedef struct _GtkTextLayout GtkTextLayout;
typedef struct _GtkTextLayoutClass GtkTextLayoutClass;
typedef struct _GtkTextLineDisplay GtkTextLineDisplay;
-typedef struct _GtkTextCursorDisplay GtkTextCursorDisplay;
typedef struct _GtkTextAttrAppearance GtkTextAttrAppearance;
struct _GtkTextLayout
@@ -225,19 +224,11 @@ struct _GtkTextAttrAppearance
PangoAttribute attr;
GtkTextAppearance appearance;
};
-struct _GtkTextCursorDisplay
-{
- gint x;
- gint y;
- gint height;
- guint is_strong : 1;
- guint is_weak : 1;
-};
struct _GtkTextLineDisplay
{
PangoLayout *layout;
- GSList *cursors;
+ GArray *cursors; /* indexes of cursors in the PangoLayout */
GtkTextDirection direction;