widget-factory: Move the popover bar to the ui file

This commit is contained in:
Matthias Clasen 2019-06-08 15:28:22 +00:00
parent 0d800acd40
commit f1eb0724bd
2 changed files with 5 additions and 6 deletions

View File

@ -1931,12 +1931,6 @@ activate (GApplication *app)
model = (GMenuModel *)gtk_builder_get_object (builder, "new_style_context_menu_model");
set_up_context_popover (widget, model);
widget = gtk_bin_get_child (GTK_BIN (gtk_builder_get_object (builder, "page2frame2")));
model = (GMenuModel *)gtk_builder_get_object (builder, "menu_bar_model");
widget2 = gtk_popover_bar_new_from_model (model);
gtk_container_add (GTK_CONTAINER (widget), widget2);
gtk_box_reorder_child_after (GTK_BOX (widget), widget2, NULL);
gtk_widget_show (GTK_WIDGET (window));
g_object_unref (builder);

View File

@ -1821,6 +1821,11 @@ microphone-sensitivity-medium-symbolic</property>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkPopoverBar">
<property name="menu-model">menu_bar_model</property>
</object>
</child>
<child>
<object class="GtkMenuBar">
<child>