[gtksourceview/wip/chergert/snippets: 100/119] view: use gtk_widget_set_visible()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/snippets: 100/119] view: use gtk_widget_set_visible()
- Date: Wed, 29 Jan 2020 17:35:13 +0000 (UTC)
commit 3fb985627f1c3390130da5f61b620474d64f80ea
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 2015b863..fb846bcb 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]