[tepl] InfoBar: set_buttons_orientation(): GtkInfoBar param, not TeplInfoBar



commit bbc3ebc383f7770d59f019e66666951678521187
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Nov 9 22:32:09 2020 +0100

    InfoBar: set_buttons_orientation(): GtkInfoBar param, not TeplInfoBar

 docs/reference/api-breaks.xml | 14 ++++++++++++++
 tepl/tepl-info-bar.c          | 13 +++++++------
 tepl/tepl-info-bar.h          |  2 +-
 3 files changed, 22 insertions(+), 7 deletions(-)
---
diff --git a/docs/reference/api-breaks.xml b/docs/reference/api-breaks.xml
index 20ff25d..9fee448 100644
--- a/docs/reference/api-breaks.xml
+++ b/docs/reference/api-breaks.xml
@@ -159,4 +159,18 @@
       </listitem>
     </itemizedlist>
   </chapter>
+
+  <chapter id="api-breaks-5-to-6-tepl">
+    <title>Tepl 5 -> Tepl 6</title>
+
+    <itemizedlist>
+      <listitem>
+        <para>
+          The <link 
linkend="tepl-info-bar-set-buttons-orientation">tepl_info_bar_set_buttons_orientation()</link>
+          now takes a <link linkend="GtkInfoBar">GtkInfoBar</link> parameter,
+          not a <link linkend="TeplInfoBar">TeplInfoBar</link>.
+        </para>
+      </listitem>
+    </itemizedlist>
+  </chapter>
 </part>
diff --git a/tepl/tepl-info-bar.c b/tepl/tepl-info-bar.c
index 26eb99e..4d48f6f 100644
--- a/tepl/tepl-info-bar.c
+++ b/tepl/tepl-info-bar.c
@@ -68,7 +68,8 @@ tepl_info_bar_init (TeplInfoBar *info_bar)
        priv = tepl_info_bar_get_instance_private (info_bar);
 
        _tepl_info_bar_set_size_request (GTK_INFO_BAR (info_bar));
-       tepl_info_bar_set_buttons_orientation (info_bar, GTK_ORIENTATION_VERTICAL);
+       tepl_info_bar_set_buttons_orientation (GTK_INFO_BAR (info_bar),
+                                              GTK_ORIENTATION_VERTICAL);
 
        /* hgrid */
        priv->content_hgrid = GTK_GRID (gtk_grid_new ());
@@ -333,7 +334,7 @@ tepl_info_bar_add_close_button (TeplInfoBar *info_bar)
 
 /**
  * tepl_info_bar_set_buttons_orientation:
- * @info_bar: a #TeplInfoBar.
+ * @info_bar: a #GtkInfoBar.
  * @buttons_orientation: the desired orientation.
  *
  * Sets the desired orientation (horizontal or vertical) for the action area as
@@ -347,17 +348,17 @@ tepl_info_bar_add_close_button (TeplInfoBar *info_bar)
  * are packed vertically, there is usually no problem. A vertical action area
  * also follows the original design of #GtkInfoBar.
  *
- * Since: 5.0
+ * Since: 6.0
  */
 void
-tepl_info_bar_set_buttons_orientation (TeplInfoBar    *info_bar,
+tepl_info_bar_set_buttons_orientation (GtkInfoBar     *info_bar,
                                       GtkOrientation  buttons_orientation)
 {
        GtkWidget *action_area;
 
-       g_return_if_fail (TEPL_IS_INFO_BAR (info_bar));
+       g_return_if_fail (GTK_IS_INFO_BAR (info_bar));
 
-       action_area = gtk_info_bar_get_action_area (GTK_INFO_BAR (info_bar));
+       action_area = gtk_info_bar_get_action_area (info_bar);
        if (GTK_IS_ORIENTABLE (action_area))
        {
                gtk_orientable_set_orientation (GTK_ORIENTABLE (action_area),
diff --git a/tepl/tepl-info-bar.h b/tepl/tepl-info-bar.h
index 4931338..e6d3218 100644
--- a/tepl/tepl-info-bar.h
+++ b/tepl/tepl-info-bar.h
@@ -54,7 +54,7 @@ _TEPL_EXTERN
 void                   tepl_info_bar_add_close_button                  (TeplInfoBar *info_bar);
 
 _TEPL_EXTERN
-void                   tepl_info_bar_set_buttons_orientation           (TeplInfoBar    *info_bar,
+void                   tepl_info_bar_set_buttons_orientation           (GtkInfoBar     *info_bar,
                                                                         GtkOrientation  buttons_orientation);
 
 _TEPL_EXTERN


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