Skip to content
Permalink
Browse files

math-display.c: avoid deprecated 'gtk_widget_ensure_style' (#66)

  • Loading branch information...
sc0w authored and lukefromdc committed Nov 24, 2018
1 parent 1546b67 commit 3693bc66677c1d6a81363d4434d1bd0ecee307ed
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/math-display.c
@@ -342,7 +342,6 @@ create_gui(MathDisplay *display)
/* TEMP: Disabled for now as GTK+ doesn't properly render a right aligned right margin, see bug #482688 */
/*gtk_text_view_set_right_margin(GTK_TEXT_VIEW(display->priv->text_view), 6);*/
gtk_text_view_set_justification(GTK_TEXT_VIEW(display->priv->text_view), GTK_JUSTIFY_RIGHT);
gtk_widget_ensure_style(display->priv->text_view);
font_desc = pango_font_description_copy(gtk_widget_get_style(display->priv->text_view)->font_desc);
pango_font_description_set_size(font_desc, 16 * PANGO_SCALE);
gtk_widget_modify_font(display->priv->text_view, font_desc);

0 comments on commit 3693bc6

Please sign in to comment.
You can’t perform that action at this time.