Commit c6285387 authored by Benjamin Otte's avatar Benjamin Otte

widget: Update the font at the right place

Doing it unconditionally is not useful when the subclasses actually
using them can only ever do it in the style_updated signal. So do it in
the style_updated handler instead.
parent 0ba14bb2
......@@ -6495,6 +6495,8 @@ gtk_widget_real_style_updated (GtkWidget *widget)
{
GtkWidgetPrivate *priv = widget->priv;
gtk_widget_update_pango_context (widget);
if (priv->style != NULL &&
priv->style != gtk_widget_get_default_style ())
{
......@@ -14330,8 +14332,6 @@ style_context_changed (GtkStyleContext *context,
{
GtkWidget *widget = user_data;
gtk_widget_update_pango_context (widget);
if (gtk_widget_get_realized (widget))
g_signal_emit (widget, widget_signals[STYLE_UPDATED], 0);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment