[libhandy/wip/haecker-felix/flap-widget] get_content()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget] get_content()
- Date: Wed, 25 Nov 2020 09:45:26 +0000 (UTC)
commit 5b2a1ba3b3aef52508b8cbe4e2cb18a2ff270f87
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Nov 25 14:44:04 2020 +0500
get_content()
debian/libhandy-1-0.symbols | 1 +
src/hdy-flap.c | 16 ++++++++++++++++
src/hdy-flap.h | 3 +++
3 files changed, 20 insertions(+)
---
diff --git a/debian/libhandy-1-0.symbols b/debian/libhandy-1-0.symbols
index 607f2edc..5a6ce245 100644
--- a/debian/libhandy-1-0.symbols
+++ b/debian/libhandy-1-0.symbols
@@ -122,6 +122,7 @@ libhandy-1.so.0 libhandy-1-0 #MINVER#
hdy_expander_row_set_use_underline@LIBHANDY_1_0 0.80.0
hdy_flap_fold_policy_get_type@LIBHANDY_1_0 1.1.0
hdy_flap_get_click_to_close@LIBHANDY_1_0 1.1.0
+ hdy_flap_get_content@LIBHANDY_1_0 1.1.0
hdy_flap_get_flap@LIBHANDY_1_0 1.1.0
hdy_flap_get_flap_position@LIBHANDY_1_0 1.1.0
hdy_flap_get_fold_duration@LIBHANDY_1_0 1.1.0
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index e395d53f..167a931d 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -1845,6 +1845,22 @@ hdy_flap_new (void)
return g_object_new (HDY_TYPE_FLAP, NULL);
}
+/**
+ * hdy_flap_get_content:
+ * @self: a #HdyFlap
+ *
+ * Returns: (transfer none) (nullable): Flap child.
+ *
+ * Since: 1.1
+ */
+GtkWidget *
+hdy_flap_get_content (HdyFlap *self)
+{
+ g_return_val_if_fail (HDY_IS_FLAP (self), NULL);
+
+ return self->content.widget;
+}
+
/**
* hdy_flap_get_flap:
* @self: a #HdyFlap
diff --git a/src/hdy-flap.h b/src/hdy-flap.h
index 343fecf4..d669f7a2 100644
--- a/src/hdy-flap.h
+++ b/src/hdy-flap.h
@@ -38,6 +38,9 @@ typedef enum {
HDY_AVAILABLE_IN_1_1
GtkWidget *hdy_flap_new (void);
+HDY_AVAILABLE_IN_1_1
+GtkWidget *hdy_flap_get_content (HdyFlap *self);
+
HDY_AVAILABLE_IN_1_1
GtkWidget *hdy_flap_get_flap (HdyFlap *self);
HDY_AVAILABLE_IN_1_1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]