[gtksourceview/wip/chergert/gsv-gtk4: 110/259] view: use gtk_widget_set_visible()




commit fb0b998d6b33dccf89605909acb89e3aa9487d1c
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]