diff options
author | Owen Taylor <otaylor@redhat.com> | 1998-12-15 20:31:26 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-12-15 20:31:26 +0000 |
commit | a3c1e86ffa9b75d4e027843d6c3d23249247cad5 (patch) | |
tree | 2bf8312bde174405ce5ba3937a389a2ec4856927 /gtk/gtktipsquery.c | |
parent | 7eec796cbdddddb2b1213dbf90c0609ef65a99a6 (diff) | |
download | gtk+-a3c1e86ffa9b75d4e027843d6c3d23249247cad5.tar.gz |
Added gdk_text_extents_wc()
Tue Dec 15 14:30:35 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkfonts.c: Added gdk_text_extents_wc()
* Patch from Jonathan Blanford <jrb@redhat.com> to add line wrapping
to label. (Based on patch from Jeff Dairiki
<dairiki@mac-ceope.apl.washington.edu> gtk-dairiki-971208-0)
- Adds new function gtk_label_set_line_wrap()
- implement GTK_JUSTIFY_FILL.
- rename gtk_label_set to gtk_label_set_text() add
gtk_label_set() to gtkcompat.h.
* Use an internal wc representation in the label, so
that we handle underlining and line breaks correctly
for multi-byte strings.
Diffstat (limited to 'gtk/gtktipsquery.c')
-rw-r--r-- | gtk/gtktipsquery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c index 2c8b037672..53707d78c0 100644 --- a/gtk/gtktipsquery.c +++ b/gtk/gtktipsquery.c @@ -173,7 +173,7 @@ gtk_tips_query_init (GtkTipsQuery *tips_query) tips_query->last_crossed = NULL; tips_query->query_cursor = NULL; - gtk_label_set (GTK_LABEL (tips_query), tips_query->label_inactive); + gtk_label_set_text (GTK_LABEL (tips_query), tips_query->label_inactive); } static void @@ -367,7 +367,7 @@ gtk_tips_query_real_stop_query (GtkTipsQuery *tips_query) tips_query->last_crossed = NULL; } - gtk_label_set (GTK_LABEL (tips_query), tips_query->label_inactive); + gtk_label_set_text (GTK_LABEL (tips_query), tips_query->label_inactive); } static void @@ -383,7 +383,7 @@ gtk_tips_query_widget_entered (GtkTipsQuery *tips_query, tip_text = tips_query->label_no_tip; if (!g_str_equal (GTK_LABEL (tips_query)->label, (gchar*) tip_text)) - gtk_label_set (GTK_LABEL (tips_query), tip_text); + gtk_label_set_text (GTK_LABEL (tips_query), tip_text); } static void |