diff options
author | Havoc Pennington <hp@redhat.com> | 2001-06-09 00:12:00 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-06-09 00:12:00 +0000 |
commit | 994a8daae5455773d40caa71121a1763bbeb2b61 (patch) | |
tree | b26ebe0f23910fc381eaf08fa503d807dea0d7a4 /gtk/gtklabel.h | |
parent | a055d0620d91d7ca61c633acc6a94845db4f13b6 (diff) | |
download | gtk+-994a8daae5455773d40caa71121a1763bbeb2b61.tar.gz |
add read-only "scroll_offset" property for notification when the layout
2001-06-08 Havoc Pennington <hp@redhat.com>
* gtk/gtkentry.c (gtk_entry_class_init): add read-only
"scroll_offset" property for notification when the layout offsets
may have changed
(gtk_entry_adjust_scroll): add notify for scroll_offset
(gtk_entry_layout_index_to_text_index): function to compensate for
preedit string when doing coordinate stuff on the entry's layout
(gtk_entry_text_index_to_layout_index): inverse function
(gtk_entry_get_layout_offsets): hook to get current position of
the layout
(gtk_entry_get_layout): hook to get the layout itself.
* gtk/gtklabel.c (gtk_label_get_layout): new function
Diffstat (limited to 'gtk/gtklabel.h')
-rw-r--r-- | gtk/gtklabel.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtklabel.h b/gtk/gtklabel.h index d41f4c5e78..9181a3211c 100644 --- a/gtk/gtklabel.h +++ b/gtk/gtklabel.h @@ -111,9 +111,13 @@ void gtk_label_select_region (GtkLabel *label, gboolean gtk_label_get_selection_bounds (GtkLabel *label, gint *start, gint *end); -void gtk_label_get_layout_offsets (GtkLabel *label, - gint *x, - gint *y); + +PangoLayout *gtk_label_get_layout (GtkLabel *label); +void gtk_label_get_layout_offsets (GtkLabel *label, + gint *x, + gint *y); + + #ifndef GTK_DISABLE_COMPAT_H # define gtk_label_set gtk_label_set_text |