diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-11-05 12:53:46 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-11-05 12:56:16 -0500 |
commit | 92a5eccc3deddaf0772b839c18c54c74b54f1ff1 (patch) | |
tree | 5156edbbf19f2dddb7a7c86cfb58cf917aa49ef4 | |
parent | cd798d5aed6b008d39eba8f31d0823075988edc8 (diff) | |
download | gtk+-92a5eccc3deddaf0772b839c18c54c74b54f1ff1.tar.gz |
aspect frame: Use an element name
-rw-r--r-- | gtk/gtkaspectframe.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c index 84168df14d..07b8f809f6 100644 --- a/gtk/gtkaspectframe.c +++ b/gtk/gtkaspectframe.c @@ -39,6 +39,10 @@ * derives from #GtkFrame, so it can draw a label and * a frame around the child. The frame will be * “shrink-wrapped” to the size of the child. + * + * # CSS nodes + * + * GtkAspectFrame uses a CSS node with name frame. */ #include "config.h" @@ -129,6 +133,8 @@ gtk_aspect_frame_class_init (GtkAspectFrameClass *class) P_("Force aspect ratio to match that of the frame's child"), TRUE, GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY)); + + gtk_widget_class_set_css_name (GTK_WIDGET_CLASS (class), "frame"); } static void |