[gtksourceview/wip/chergert/gsv-gtk4: 189/197] gutter: remove .top .left .right and .bottom style classes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 189/197] gutter: remove .top .left .right and .bottom style classes
- Date: Tue, 2 Jun 2020 18:52:56 +0000 (UTC)
commit 613ba896d23f63d5fe6c75bbcf3bb2a7e1afb024
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 17 14:35:30 2020 -0700
gutter: remove .top .left .right and .bottom style classes
These are no longer necessary to implement the styling, so we can drop
them from the gutter setup.
gtksourceview/gtksourcegutter.c | 37 -------------------------------------
1 file changed, 37 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index 56aa09b6..fcedee35 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -329,39 +329,6 @@ gtk_source_gutter_measure (GtkWidget *widget,
*natural_baseline = -1;
}
-static void
-apply_style (GtkSourceGutter *gutter,
- GtkStyleContext *style_context)
-{
- const gchar *class;
-
- switch (gutter->window_type)
- {
- case GTK_TEXT_WINDOW_TOP:
- class = GTK_STYLE_CLASS_TOP;
- break;
-
- case GTK_TEXT_WINDOW_RIGHT:
- class = GTK_STYLE_CLASS_RIGHT;
- break;
-
- case GTK_TEXT_WINDOW_BOTTOM:
- class = GTK_STYLE_CLASS_BOTTOM;
- break;
-
- case GTK_TEXT_WINDOW_LEFT:
- class = GTK_STYLE_CLASS_LEFT;
- break;
-
- case GTK_TEXT_WINDOW_WIDGET:
- case GTK_TEXT_WINDOW_TEXT:
- default:
- g_return_if_reached ();
- }
-
- gtk_style_context_add_class (style_context, class);
-}
-
static void
gtk_source_gutter_forall (GtkContainer *container,
GtkCallback callback,
@@ -408,7 +375,6 @@ static void
gtk_source_gutter_constructed (GObject *object)
{
GtkSourceGutter *gutter = GTK_SOURCE_GUTTER (object);
- GtkStyleContext *context;
if (gutter->window_type == GTK_TEXT_WINDOW_LEFT ||
gutter->window_type == GTK_TEXT_WINDOW_RIGHT)
@@ -423,9 +389,6 @@ gtk_source_gutter_constructed (GObject *object)
}
G_OBJECT_CLASS (gtk_source_gutter_parent_class)->constructed (object);
-
- context = gtk_widget_get_style_context (GTK_WIDGET (gutter));
- apply_style (gutter, context);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]