Commit 14923803 authored by Adrien Plazas's avatar Adrien Plazas

Add CSS names to the widgets

parent 04a51797
Pipeline #30065 passed with stages
in 4 minutes and 10 seconds
......@@ -196,6 +196,7 @@ static void
retro_cairo_display_class_init (RetroCairoDisplayClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
((GtkWidgetClass *) klass)->draw = (gboolean (*) (GtkWidget *, cairo_t *)) retro_cairo_display_real_draw;
......@@ -213,6 +214,8 @@ retro_cairo_display_class_init (RetroCairoDisplayClass *klass)
G_PARAM_STATIC_NICK |
G_PARAM_STATIC_BLURB);
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PIXBUF, properties[PROP_PIXBUF]);
gtk_widget_class_set_css_name (widget_class, "retrocairodisplay");
}
static void
......
......@@ -408,6 +408,7 @@ static void
retro_core_view_class_init (RetroCoreViewClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->finalize = retro_core_view_finalize;
object_class->get_property = retro_core_view_get_property;
......@@ -436,6 +437,8 @@ retro_core_view_class_init (RetroCoreViewClass *klass)
g_object_class_install_properties (object_class,
N_PROPS,
properties);
gtk_widget_class_set_css_name (widget_class, "retrocoreview");
}
RetroCoreView* retro_core_view_construct (GType object_type) {
......
......@@ -374,8 +374,11 @@ static void
retro_gl_display_class_init (RetroGLDisplayClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->finalize = retro_gl_display_finalize;
gtk_widget_class_set_css_name (widget_class, "retrogldisplay");
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment