summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/examples/hdy-view-switcher-demo-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libhandy/examples/hdy-view-switcher-demo-window.c')
-rw-r--r--subprojects/libhandy/examples/hdy-view-switcher-demo-window.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/subprojects/libhandy/examples/hdy-view-switcher-demo-window.c b/subprojects/libhandy/examples/hdy-view-switcher-demo-window.c
new file mode 100644
index 0000000..2251658
--- /dev/null
+++ b/subprojects/libhandy/examples/hdy-view-switcher-demo-window.c
@@ -0,0 +1,30 @@
+#include "hdy-view-switcher-demo-window.h"
+
+#include <glib/gi18n.h>
+
+struct _HdyViewSwitcherDemoWindow
+{
+ HdyWindow parent_instance;
+};
+
+G_DEFINE_TYPE (HdyViewSwitcherDemoWindow, hdy_view_switcher_demo_window, HDY_TYPE_WINDOW)
+
+static void
+hdy_view_switcher_demo_window_class_init (HdyViewSwitcherDemoWindowClass *klass)
+{
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
+
+ gtk_widget_class_set_template_from_resource (widget_class, "/sm/puri/Handy/Demo/ui/hdy-view-switcher-demo-window.ui");
+}
+
+static void
+hdy_view_switcher_demo_window_init (HdyViewSwitcherDemoWindow *self)
+{
+ gtk_widget_init_template (GTK_WIDGET (self));
+}
+
+HdyViewSwitcherDemoWindow *
+hdy_view_switcher_demo_window_new (void)
+{
+ return g_object_new (HDY_TYPE_VIEW_SWITCHER_DEMO_WINDOW, NULL);
+}