mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
combo: Add .linked class when appropriate
Add the .linked style class to combo boxes which have an entry, since that is what they are.
This commit is contained in:
parent
54a6e032ca
commit
e8b9aacfc1
@ -4483,6 +4483,9 @@ gtk_combo_box_constructed (GObject *object)
|
||||
gtk_widget_show (entry);
|
||||
gtk_container_add (GTK_CONTAINER (combo_box), entry);
|
||||
|
||||
context = gtk_widget_get_style_context (GTK_WIDGET (combo_box));
|
||||
gtk_style_context_add_class (context, "linked");
|
||||
|
||||
context = gtk_widget_get_style_context (GTK_WIDGET (entry));
|
||||
gtk_style_context_add_class (context, "combo");
|
||||
|
||||
|
@ -74,7 +74,7 @@
|
||||
* # CSS nodes
|
||||
*
|
||||
* |[<!-- language="plain" -->
|
||||
* combobox
|
||||
* combobox.linked
|
||||
* ├── entry.combo
|
||||
* ├── button.combo
|
||||
* ╰── window.popup
|
||||
@ -82,7 +82,7 @@
|
||||
*
|
||||
* GtkComboBoxText has a single CSS node with name combobox. It adds
|
||||
* the style class .combo to the main CSS nodes of its entry and button
|
||||
* children.
|
||||
* children, and the .linked class to the main node.
|
||||
*/
|
||||
|
||||
static void gtk_combo_box_text_buildable_interface_init (GtkBuildableIface *iface);
|
||||
|
Loading…
Reference in New Issue
Block a user