[gnome-panel] arrow-button: add gp_arrow_button_set_arrow_type



commit a526d89003ead1ac2358db3be0f1c0dc580b8f43
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Apr 24 19:19:43 2021 +0300

    arrow-button: add gp_arrow_button_set_arrow_type

 gnome-panel/gp-arrow-button.c | 7 +++++++
 gnome-panel/gp-arrow-button.h | 3 +++
 2 files changed, 10 insertions(+)
---
diff --git a/gnome-panel/gp-arrow-button.c b/gnome-panel/gp-arrow-button.c
index d7e65dfde..29a097e04 100644
--- a/gnome-panel/gp-arrow-button.c
+++ b/gnome-panel/gp-arrow-button.c
@@ -218,6 +218,13 @@ gp_arrow_button_new (GtkArrowType arrow_type)
                        NULL);
 }
 
+void
+gp_arrow_button_set_arrow_type (GpArrowButton *self,
+                                GtkArrowType   arrow_type)
+{
+  set_arrow_type (self, arrow_type);
+}
+
 GtkArrowType
 gp_arrow_button_get_arrow_type (GpArrowButton *button)
 {
diff --git a/gnome-panel/gp-arrow-button.h b/gnome-panel/gp-arrow-button.h
index e0d8061b3..1fd6be2f9 100644
--- a/gnome-panel/gp-arrow-button.h
+++ b/gnome-panel/gp-arrow-button.h
@@ -28,6 +28,9 @@ G_DECLARE_FINAL_TYPE (GpArrowButton, gp_arrow_button,
 
 GtkWidget    *gp_arrow_button_new            (GtkArrowType   arrow_type);
 
+void          gp_arrow_button_set_arrow_type (GpArrowButton *self,
+                                              GtkArrowType   arrow_type);
+
 GtkArrowType  gp_arrow_button_get_arrow_type (GpArrowButton *button);
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]