Add a message-dialog style class

This helps in separating message dialogs from other dialogs,
theming-wise.
This commit is contained in:
Matthias Clasen 2014-06-12 09:14:03 -04:00
parent e97cf2fd0b
commit 9bc07a2634
3 changed files with 13 additions and 0 deletions

View File

@ -5994,6 +5994,7 @@ GTK_STYLE_CLASS_MARK
GTK_STYLE_CLASS_MENU
GTK_STYLE_CLASS_MENUBAR
GTK_STYLE_CLASS_MENUITEM
GTK_STYLE_CLASS_MESSAGE_DIALOG
GTK_STYLE_CLASS_NEEDS_ATTENTION
GTK_STYLE_CLASS_NOTEBOOK
GTK_STYLE_CLASS_OSD

View File

@ -807,6 +807,15 @@ struct _GtkStyleContextClass
*/
#define GTK_STYLE_CLASS_POPUP "popup"
/**
* GTK_STYLE_CLASS_MESSAGE_DIALOG:
*
* A CSS class that is added to message dialogs.
*
* Since: 3.14
*/
#define GTK_STYLE_CLASS_MESSAGE_DIALOG "message-dialog"
/**
* GTK_STYLE_REGION_ROW:
*

View File

@ -8,6 +8,9 @@
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
<style>
<class name="message-dialog"/>
</style>
<child internal-child="headerbar">
<object class="GtkHeaderBar" id="headerbar1">
<property name="visible">True</property>