Commit c274a8b0 authored by Julian Sparber's avatar Julian Sparber

[feat] add list view template and popover

parent 338b9e8f
......@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/org/gtk/paperplaneapp">
<file preprocess="xml-stripblanks">window.ui</file>
<file preprocess="xml-stripblanks">settings.ui</file>
</gresource>
</gresources>
......@@ -14,6 +14,16 @@ G_DEFINE_TYPE(PaperplaneAppWindow, paperplane_app_window, GTK_TYPE_APPLICATION_W
paperplane_app_window_init (PaperplaneAppWindow *win)
{
gtk_widget_init_template (GTK_WIDGET (win));
GtkBuilder *builder;
GMenuModel *menu;
GAction *action;
gtk_widget_init_template (GTK_WIDGET (win));
builder = gtk_builder_new_from_resource ("/org/gtk/paperplaneapp/settings.ui");
menu = G_MENU_MODEL (gtk_builder_get_object (builder, "menu"));
g_object_unref (builder);
}
static void
......
<?xml version="1.0"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<menu id="menu">
<section>
<item>
<attribute name="label" translatable="yes">_Words</attribute>
<attribute name="action">win.show-words</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Lines</attribute>
<attribute name="action">win.show-lines</attribute>
</item>
</section>
</menu>
</interface>
This diff is collapsed.
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