Commit b028492e authored by Christian Hergert's avatar Christian Hergert

view: use gtk_widget_set_visible()

Gutter renderers are now widgets, so we should use the visibility API
provided by GtkWidget itself.
parent 3b52f675
......@@ -2763,7 +2763,7 @@ gtk_source_view_set_show_line_numbers (GtkSourceView *view,
GTK_SOURCE_VIEW_GUTTER_POSITION_LINES);
}
gtk_source_gutter_renderer_set_visible (priv->line_renderer, show);
gtk_widget_set_visible (GTK_WIDGET (priv->line_renderer), show);
priv->show_line_numbers = show;
g_object_notify (G_OBJECT (view), "show_line_numbers");
......@@ -2844,7 +2844,7 @@ gtk_source_view_set_show_line_marks (GtkSourceView *view,
view);
}
gtk_source_gutter_renderer_set_visible (priv->marks_renderer, show);
gtk_widget_set_visible (GTK_WIDGET (priv->marks_renderer), show);
priv->show_line_marks = show;
g_object_notify (G_OBJECT (view), "show_line_marks");
......
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