mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
use PANGO_PIXELS() to convert to pixels
2000-11-14 Havoc Pennington <hp@pobox.com> * gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert to pixels
This commit is contained in:
parent
c72cec38f1
commit
376d6c1914
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1,3 +1,8 @@
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/gtktextlayout.c (add_cursor): use PANGO_PIXELS() to convert
|
||||
to pixels
|
||||
|
||||
2000-11-14 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* gtk/testtextbuffer.c (fill_buffer): change "offset" to "rise"
|
||||
|
@ -1415,9 +1415,9 @@ add_cursor (GtkTextLayout *layout,
|
||||
|
||||
cursor = g_new (GtkTextCursorDisplay, 1);
|
||||
|
||||
cursor->x = strong_pos.x / PANGO_SCALE;
|
||||
cursor->y = strong_pos.y / PANGO_SCALE;
|
||||
cursor->height = strong_pos.height / PANGO_SCALE;
|
||||
cursor->x = PANGO_PIXELS (strong_pos.x);
|
||||
cursor->y = PANGO_PIXELS (strong_pos.y);
|
||||
cursor->height = PANGO_PIXELS (strong_pos.height);
|
||||
cursor->is_strong = TRUE;
|
||||
display->cursors = g_slist_prepend (display->cursors, cursor);
|
||||
|
||||
@ -1429,9 +1429,9 @@ add_cursor (GtkTextLayout *layout,
|
||||
|
||||
cursor = g_new (GtkTextCursorDisplay, 1);
|
||||
|
||||
cursor->x = weak_pos.x / PANGO_SCALE;
|
||||
cursor->y = weak_pos.y / PANGO_SCALE;
|
||||
cursor->height = weak_pos.height / PANGO_SCALE;
|
||||
cursor->x = PANGO_PIXELS (weak_pos.x);
|
||||
cursor->y = PANGO_PIXELS (weak_pos.y);
|
||||
cursor->height = PANGO_PIXELS (weak_pos.height);
|
||||
cursor->is_strong = FALSE;
|
||||
cursor->is_weak = TRUE;
|
||||
display->cursors = g_slist_prepend (display->cursors, cursor);
|
||||
@ -1510,6 +1510,9 @@ add_preedit_attrs (GtkTextLayout *layout,
|
||||
case PANGO_ATTR_STRIKETHROUGH:
|
||||
appearance.strikethrough = ((PangoAttrInt *)attr)->value;
|
||||
break;
|
||||
case PANGO_ATTR_RISE:
|
||||
appearance.rise = ((PangoAttrInt *)attr)->value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user