So themes can override their appearance without hardcoding the widget
hierarchy.
https://bugzilla.gnome.org/show_bug.cgi?id=644121
<child>
<object class="GtkToolbar" id="toolbar">
<property name="visible">True</property>
+ <style>
+ <class name="primary-toolbar"/>
+ </style>
<child>
<object class="GtkToolButton" id="hangup">
<property name="visible">True</property>
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), TRUE);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar),
GTK_ICON_SIZE_SMALL_TOOLBAR);
+ gtk_style_context_add_class (gtk_widget_get_style_context (toolbar),
+ GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
gtk_widget_show (toolbar);
gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
<object class="GtkToolbar" id="presence_toolbar">
<property name="visible">True</property>
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
+ <style>
+ <class name="primary-toolbar"/>
+ </style>
</object>
<packing>
<property name="expand">False</property>