mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
Revisit gtk_css_style_get_static_style one more time
Move the implementation to where it belongs.
This commit is contained in:
parent
3c50e5324f
commit
2c231f4336
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user