summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/src/hdy-nothing.c
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libhandy/src/hdy-nothing.c')
-rw-r--r--subprojects/libhandy/src/hdy-nothing.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/subprojects/libhandy/src/hdy-nothing.c b/subprojects/libhandy/src/hdy-nothing.c
new file mode 100644
index 0000000..036537a
--- /dev/null
+++ b/subprojects/libhandy/src/hdy-nothing.c
@@ -0,0 +1,47 @@
+#include "hdy-nothing-private.h"
+
+/**
+ * PRIVATE:hdy-nothing
+ * @short_description: A helper object for #HdyWindow and #HdyApplicationWindow
+ * @title: HdyNothing
+ * @See_also: #HdyApplicationWindow, #HdyWindow, #HdyWindowMixin
+ * @stability: Private
+ *
+ * The HdyNothing widget does nothing. It's used as the titlebar for
+ * #HdyWindow and #HdyApplicationWindow.
+ *
+ * Since: 1.0
+ */
+
+struct _HdyNothing
+{
+ GtkWidget parent_instance;
+};
+
+G_DEFINE_TYPE (HdyNothing, hdy_nothing, GTK_TYPE_WIDGET)
+
+static void
+hdy_nothing_class_init (HdyNothingClass *klass)
+{
+}
+
+static void
+hdy_nothing_init (HdyNothing *self)
+{
+}
+
+/**
+ * hdy_nothing_new:
+ *
+ * Creates a new #HdyNothing.
+ *
+ * Returns: (transfer full): a newly created #HdyNothing
+ *
+ * Since: 1.0
+ */
+GtkWidget *
+hdy_nothing_new (void)
+{
+ return g_object_new (HDY_TYPE_NOTHING, NULL);
+}
+