[gtk] Revisit gtk_css_style_get_static_style one more time
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Revisit gtk_css_style_get_static_style one more time
- Date: Thu, 16 Jan 2020 22:03:35 +0000 (UTC)
commit 2c231f4336b9824dffe41211eb776ff63a47240e
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 16 16:59:21 2020 -0500
Revisit gtk_css_style_get_static_style one more time
Move the implementation to where it belongs.
gtk/gtkcssstaticstyle.c | 7 +++++++
gtk/gtkcssstyle.c | 7 -------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkcssstaticstyle.c b/gtk/gtkcssstaticstyle.c
index 6cb835d6e2..d961731541 100644
--- a/gtk/gtkcssstaticstyle.c
+++ b/gtk/gtkcssstaticstyle.c
@@ -83,6 +83,12 @@ gtk_css_static_style_dispose (GObject *object)
G_OBJECT_CLASS (gtk_css_static_style_parent_class)->dispose (object);
}
+static GtkCssStaticStyle *
+gtk_css_static_style_get_static_style (GtkCssStyle *style)
+{
+ return (GtkCssStaticStyle *)style;
+}
+
static void
gtk_css_static_style_class_init (GtkCssStaticStyleClass *klass)
{
@@ -93,6 +99,7 @@ gtk_css_static_style_class_init (GtkCssStaticStyleClass *klass)
style_class->get_value = gtk_css_static_style_get_value;
style_class->get_section = gtk_css_static_style_get_section;
+ style_class->get_static_style = gtk_css_static_style_get_static_style;
}
static void
diff --git a/gtk/gtkcssstyle.c b/gtk/gtkcssstyle.c
index d9012a1265..a20ee043c3 100644
--- a/gtk/gtkcssstyle.c
+++ b/gtk/gtkcssstyle.c
@@ -53,18 +53,11 @@ gtk_css_style_real_is_static (GtkCssStyle *style)
return TRUE;
}
-static GtkCssStaticStyle *
-gtk_css_style_real_get_static_style (GtkCssStyle *style)
-{
- return (GtkCssStaticStyle *)style;
-}
-
static void
gtk_css_style_class_init (GtkCssStyleClass *klass)
{
klass->get_section = gtk_css_style_real_get_section;
klass->is_static = gtk_css_style_real_is_static;
- klass->get_static_style = gtk_css_style_real_get_static_style;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]