From e6341a0b630635438982b9abe9c02d48041a1bc0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 26 Jun 2014 22:00:29 -0400 Subject: [PATCH] Add a FLAT style class This will be used for frame-less buttons and frames in the future. --- docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkstylecontext.h | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt index 5896a799cd..f32a782c06 100644 --- a/docs/reference/gtk/gtk3-sections.txt +++ b/docs/reference/gtk/gtk3-sections.txt @@ -5977,6 +5977,7 @@ GTK_STYLE_CLASS_ENTRY GTK_STYLE_CLASS_ERROR GTK_STYLE_CLASS_EXPANDER GTK_STYLE_CLASS_FRAME +GTK_STYLE_CLASS_FLAT GTK_STYLE_CLASS_GRIP GTK_STYLE_CLASS_HEADER GTK_STYLE_CLASS_HIGHLIGHT diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 22182b36d7..d141476e44 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -825,6 +825,17 @@ struct _GtkStyleContextClass */ #define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog" +/** + * GTK_STYLE_CLASS_FLAT: + * + * A CSS class that is added when widgets that usually have + * a frame or border (like buttons or entries) should appear + * without it. + * + * Since: 3.14 + */ +#define GTK_STYLE_CLASS_FLAT "flat" + /** * GTK_STYLE_REGION_ROW: *