Commit 9c39232a authored by Matthias Clasen's avatar Matthias Clasen

assistant: Drop unnecessary frame

We can just style the sidebar box itself, no need for an
extra frame widget.
parent adfb76dc
......@@ -110,7 +110,6 @@ struct _GtkAssistantPrivate
GtkWidget *last;
GtkWidget *sidebar;
GtkWidget *sidebar_frame;
GtkWidget *content;
GtkWidget *action_area;
GtkWidget *headerbar;
......@@ -663,7 +662,6 @@ gtk_assistant_class_init (GtkAssistantClass *class)
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, close);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, last);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, sidebar);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, sidebar_frame);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, button_size_group);
gtk_widget_class_bind_template_child_private (widget_class, GtkAssistant, title_size_group);
......@@ -972,7 +970,7 @@ update_title_state (GtkAssistant *assistant)
show_titles = TRUE;
}
gtk_widget_set_visible (priv->sidebar_frame, show_titles);
gtk_widget_set_visible (priv->sidebar, show_titles);
}
static void
......
......@@ -11,19 +11,12 @@
<object class="GtkBox" id="main_box">
<property name="visible">1</property>
<child>
<object class="GtkFrame" id="sidebar_frame">
<object class="GtkBox" id="sidebar">
<property name="visible">1</property>
<property name="orientation">vertical</property>
<style>
<class name="sidebar"/>
</style>
<child>
<object class="GtkBox" id="sidebar">
<property name="visible">1</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
</object>
</child>
<child type="label_item"/>
</object>
<packing>
<property name="fill">0</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment