#include "adw-navigation-split-view-demo-window.h"

#include <glib/gi18n.h>

struct _AdwNavigationSplitViewDemoWindow
{
  AdwWindow parent_instance;
};

G_DEFINE_FINAL_TYPE (AdwNavigationSplitViewDemoWindow, adw_navigation_split_view_demo_window, ADW_TYPE_WINDOW)

static void
adw_navigation_split_view_demo_window_class_init (AdwNavigationSplitViewDemoWindowClass *klass)
{
  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);

  gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/Adwaita1/Demo/ui/pages/split-views/adw-navigation-split-view-demo-window.ui");

  gtk_widget_class_add_binding_action (widget_class, GDK_KEY_Escape, 0, "window.close", NULL);
}

static void
adw_navigation_split_view_demo_window_init (AdwNavigationSplitViewDemoWindow *self)
{
  gtk_widget_init_template (GTK_WIDGET (self));
}

AdwNavigationSplitViewDemoWindow *
adw_navigation_split_view_demo_window_new (void)
{
  return g_object_new (ADW_TYPE_NAVIGATION_SPLIT_VIEW_DEMO_WINDOW, NULL);
}
