diff options
author | Havoc Pennington <hp@redhat.com> | 2000-09-25 17:17:13 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-09-25 17:17:13 +0000 |
commit | 9bec105a6606f11fb1e85e5f378d39595da0c165 (patch) | |
tree | cab36b8fe6c9fccc174417296823292f49215ee9 /gtk/gtktexttypes.h | |
parent | f235c3cb5cb53656d53e7e14e9d36bd04ab4c6f0 (diff) | |
download | gtk+-9bec105a6606f11fb1e85e5f378d39595da0c165.tar.gz |
Draw the focus, and leave space to do so.
2000-09-25 Havoc Pennington <hp@redhat.com>
* gtk/gtktextview.c: Draw the focus, and leave space to do so.
* gtk/gtktexttypes.c: Remove Latin1 conversion stuff
* gtk/gtktextbtree.c (gtk_text_btree_node_remove_data):
Fix a bug when removing node data, we didn't properly
re-splice the linked list after removing the data.
* gtk/gtktextview.c (gtk_text_view_key_press_event): Pass through
GDK_Tab as literal tab, Ctrl-Tab to tab to focus widget
* gtk/gtktextbuffer.c (selection_received): fix g_convert usage
* gtk/gtktextlayout.c (set_para_values): Set tab array
for the layout from the GtkTextTag.
* gtk/gtktexttypes.h: delete tab and search cruft,
remove g_convert() in favor of GLib version
* gtk/gtktexttypes.c: remove tab implementation from here,
move to Pango
* gtk/gtktexttag.h, gtk/gtktexttag.c: Implement
tab stuff using new PangoTabArray from Pango
* gtk/gtktexttag.c (gtk_text_attributes_fill_from_tags): Remove
unused border_width stuff
Diffstat (limited to 'gtk/gtktexttypes.h')
-rw-r--r-- | gtk/gtktexttypes.h | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/gtk/gtktexttypes.h b/gtk/gtktexttypes.h index 58de8618ac..85aeb7f850 100644 --- a/gtk/gtktexttypes.h +++ b/gtk/gtktexttypes.h @@ -15,84 +15,9 @@ typedef struct _GtkTextCounter GtkTextCounter; typedef struct _GtkTextLineSegment GtkTextLineSegment; typedef struct _GtkTextLineSegmentClass GtkTextLineSegmentClass; typedef struct _GtkTextToggleBody GtkTextToggleBody; -typedef struct _GtkTextViewSearch GtkTextViewSearch; -typedef struct _GtkTextTab GtkTextTab; -typedef struct _GtkTextViewStyle GtkTextViewStyle; typedef struct _GtkTextMarkBody GtkTextMarkBody; /* - * Search - */ - -/* - * The data structure below is used for searching a B-tree for transitions - * on a single tag (or for all tag transitions). No code outside of - * tkTextBTree.c should ever modify any of the fields in these structures, - * but it's OK to use them for read-only information. - */ - -struct _GtkTextViewSearch { - GtkTextBTree *tree; - - GtkTextIter curIndex; /* Position of last tag transition - * returned by gtk_text_btree_next_tag, or - * index of start of segment - * containing starting position for - * search if gtk_text_btree_next_tag hasn't - * been called yet, or same as - * stopIndex if search is over. */ - - GtkTextLineSegment *segPtr; /* Actual tag segment returned - by last call to - gtk_text_btree_next_tag, - or NULL if - gtk_text_btree_next_tag - hasn't returned anything - yet. */ - - GtkTextLineSegment *lastPtr; /* Stop search before just before - * considering this segment. */ - GtkTextTag *tag; /* Tag to search for (or tag found, if - * allTags is non-zero). */ - int linesLeft; /* Lines left to search (including - * curIndex and stopIndex). When - * this becomes <= 0 the search is - * over. */ - int allTags; /* Non-zero means ignore tag check: - * search for transitions on all - * tags. */ -}; - -/* - * The following data structure describes a single tab stop. - */ - -typedef enum { - GTK_TEXT_TAB_LEFT, - GTK_TEXT_TAB_RIGHT, - GTK_TEXT_TAB_CENTER, - GTK_TEXT_TAB_NUMERIC -} GtkTextTabAlign; - -struct _GtkTextTab { - int location; /* Offset in pixels of this tab stop - * from the left margin (lmargin2) of - * the text. */ - GtkTextTabAlign alignment; /* Where the tab stop appears relative - * to the text. */ -}; - -struct _GtkTextTabArray { - guint refcount; - int numTabs; /* Number of tab stops. */ - GtkTextTab *tabs; -}; - -GtkTextTabArray *gtk_text_view_tab_array_new (guint size); -void gtk_text_view_tab_array_ref (GtkTextTabArray *tab_array); -void gtk_text_view_tab_array_unref (GtkTextTabArray *tab_array); - -/* * Declarations for variables shared among the text-related files: */ |