[gtksourceview/wip/chergert/gsv-gtk4: 113/192] view: use gtk_widget_set_visible()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 113/192] view: use gtk_widget_set_visible()
- Date: Fri, 7 Aug 2020 18:31:08 +0000 (UTC)
commit 1d8beefceac50fc4e60eef4a675cb6dba1246892
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 15 15:29:38 2020 -0800
view: use gtk_widget_set_visible()
Gutter renderers are now widgets, so we should use the visibility API
provided by GtkWidget itself.
gtksourceview/gtksourceview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 2015b8634..fb846bcbe 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -2766,7 +2766,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");
@@ -2847,7 +2847,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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]