[gtksourceview/wip/chergert/gsv-gtk4: 115/125] 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: 115/125] view: use gtk_widget_set_visible()
- Date: Wed, 15 Jan 2020 23:56:02 +0000 (UTC)
commit d5ddd27b5c2055c3b1941df4da2cb270f3388a85
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 c2edddc7..7fd2dd9b 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -2814,7 +2814,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");
@@ -2895,7 +2895,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]