forked from AuroraMiddleware/gtk
widget-factory: Move the popover bar to the ui file
This commit is contained in:
parent
0d800acd40
commit
f1eb0724bd
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user