mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 20:50:12 +00:00
gtktextdisplay: remove unused code
In render_para() function, which is called for every text line that needs to be drawn. https://bugzilla.gnome.org/show_bug.cgi?id=783397
This commit is contained in:
parent
3b5195c44f
commit
9d5c6aaabc
@ -610,21 +610,12 @@ render_para (GtkTextRenderer *text_renderer,
|
|||||||
PangoLayout *layout = line_display->layout;
|
PangoLayout *layout = line_display->layout;
|
||||||
int byte_offset = 0;
|
int byte_offset = 0;
|
||||||
PangoLayoutIter *iter;
|
PangoLayoutIter *iter;
|
||||||
PangoRectangle layout_logical;
|
|
||||||
int screen_width;
|
int screen_width;
|
||||||
GdkRGBA selection;
|
GdkRGBA selection;
|
||||||
gboolean first = TRUE;
|
gboolean first = TRUE;
|
||||||
GtkCssNode *selection_node;
|
GtkCssNode *selection_node;
|
||||||
|
|
||||||
iter = pango_layout_get_iter (layout);
|
iter = pango_layout_get_iter (layout);
|
||||||
|
|
||||||
pango_layout_iter_get_layout_extents (iter, NULL, &layout_logical);
|
|
||||||
|
|
||||||
/* Adjust for margins */
|
|
||||||
|
|
||||||
layout_logical.x += line_display->x_offset * PANGO_SCALE;
|
|
||||||
layout_logical.y += line_display->top_margin * PANGO_SCALE;
|
|
||||||
|
|
||||||
screen_width = line_display->total_width;
|
screen_width = line_display->total_width;
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (text_renderer->widget);
|
context = gtk_widget_get_style_context (text_renderer->widget);
|
||||||
|
Loading…
Reference in New Issue
Block a user