Commit c274a8b0 authored by Julian Sparber's avatar Julian Sparber

[feat] add list view template and popover

parent 338b9e8f
......@@ -2,5 +2,6 @@
<gresource prefix="/org/gtk/paperplaneapp">
<file preprocess="xml-stripblanks">window.ui</file>
<file preprocess="xml-stripblanks">settings.ui</file>
......@@ -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-requires gtk+ 3.0 -->
<menu id="menu">
<attribute name="label" translatable="yes">_Words</attribute>
<attribute name="action"></attribute>
<attribute name="label" translatable="yes">_Lines</attribute>
<attribute name="action"></attribute>
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