summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-09-30 00:17:22 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-09-30 00:17:22 +0000
commit244996ffec3b76c4cbef2e9684c0557ffed7e8fa (patch)
tree01acf82d5b49070fe08ad77e7b140d21c4465797 /gtk/gtktextview.h
parent0415b69e76b5d2d3bb8adecb6cf19974281b597c (diff)
downloadgtk+-244996ffec3b76c4cbef2e9684c0557ffed7e8fa.tar.gz
fix indentation
2000-09-29 Havoc Pennington <hp@redhat.com> * gtk/gtktexttag.c (gtk_text_tag_set_priority): fix indentation * gtk/gtktextview.c: Implement drag thresholding; change functions that set border window size to have nicer name (gtk_text_view_mark_set_handler): Fix this to have the right signature. * gtk/testtextbuffer.c (fill_buffer): Update with pixbuf changes * gtk/testtext.c: Update with API changes, put line numbers on both sides. * gtk/gtktextiter.c (gtk_text_iter_get_pixbuf): Replace get_pixmap with this * gtk/gtktextchild.h, gtk/gtktextchild.c: replace all pixmap with pixbuf; delete a big block of #if 0 Tk code * gtk/gtktextbuffer.c (gtk_text_buffer_insert_pixbuf): Replace insert_pixmap with insert_pixbuf
Diffstat (limited to 'gtk/gtktextview.h')
-rw-r--r--gtk/gtktextview.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h
index 2eca2eff2b..300e3716c5 100644
--- a/gtk/gtktextview.h
+++ b/gtk/gtktextview.h
@@ -86,6 +86,9 @@ struct _GtkTextView {
guint incremental_validate_idle; /* Idle to revalidate offscreen portions, runs after redraw */
GtkIMContext *im_context;
+
+ gint drag_start_x;
+ gint drag_start_y;
};
struct _GtkTextViewClass {
@@ -145,7 +148,15 @@ void gtk_text_view_get_iter_at_location (GtkTextView *text_view,
GtkTextIter *iter,
gint x,
gint y);
+void gtk_text_view_get_line_yrange (GtkTextView *text_view,
+ const GtkTextIter *iter,
+ gint *y,
+ gint *height);
+void gtk_text_view_get_line_at_y (GtkTextView *text_view,
+ GtkTextIter *target_iter,
+ gint y,
+ gint *line_top);
void gtk_text_view_buffer_to_window_coords (GtkTextView *text_view,
GtkTextWindowType win,
@@ -165,18 +176,13 @@ GdkWindow* gtk_text_view_get_window (GtkTextView *text_view,
GtkTextWindowType gtk_text_view_get_window_type (GtkTextView *text_view,
GdkWindow *window);
-void gtk_text_view_set_left_window_width (GtkTextView *text_view,
- gint width);
-void gtk_text_view_set_right_window_width (GtkTextView *text_view,
- gint width);
-void gtk_text_view_set_top_window_height (GtkTextView *text_view,
- gint height);
-void gtk_text_view_set_bottom_window_height (GtkTextView *text_view,
- gint height);
-
-void gtk_text_view_set_text_window_size (GtkTextView *text_view,
- gint width,
- gint height);
+void gtk_text_view_set_border_window_size (GtkTextView *text_view,
+ GtkTextWindowType type,
+ gint size);
+void gtk_text_view_set_text_window_size (GtkTextView *text_view,
+ gint width,
+ gint height);
+
#ifdef __cplusplus
}