[gtk/wip/baedert/for-master] infobar: Remove _get_{action, content}_area()



commit 323836358e69b236db6173be69a7718a08151cdf
Author: Timm Bäder <mail baedert org>
Date:   Fri Feb 14 18:25:01 2020 +0100

    infobar: Remove _get_{action,content}_area()
    
    Accessors like these are weird to have and we can add widgets to the
    content area via gtk_container_add() as well as add widgets to the
    action area via gtk_info_bar_add_action_widget().

 docs/reference/gtk/gtk4-sections.txt |  2 --
 gtk/gtkinfobar.c                     | 36 ------------------------------------
 gtk/gtkinfobar.h                     |  4 ----
 3 files changed, 42 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 73bba8e78c..35b428201a 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -1867,8 +1867,6 @@ gtk_info_bar_set_default_response
 gtk_info_bar_response
 gtk_info_bar_set_message_type
 gtk_info_bar_get_message_type
-gtk_info_bar_get_action_area
-gtk_info_bar_get_content_area
 gtk_info_bar_get_show_close_button
 gtk_info_bar_set_show_close_button
 gtk_info_bar_get_revealed
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 4cf7989292..b265373831 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -623,42 +623,6 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
   gtk_container_add (GTK_CONTAINER (priv->action_area), child);
 }
 
-/**
- * gtk_info_bar_get_action_area:
- * @info_bar: a #GtkInfoBar
- *
- * Returns the action area of @info_bar.
- *
- * Returns: (transfer none): the action area
- */
-GtkWidget*
-gtk_info_bar_get_action_area (GtkInfoBar *info_bar)
-{
-  GtkInfoBarPrivate *priv = gtk_info_bar_get_instance_private (info_bar);
-
-  g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
-
-  return priv->action_area;
-}
-
-/**
- * gtk_info_bar_get_content_area:
- * @info_bar: a #GtkInfoBar
- *
- * Returns the content area of @info_bar.
- *
- * Returns: (transfer none): the content area
- */
-GtkWidget*
-gtk_info_bar_get_content_area (GtkInfoBar *info_bar)
-{
-  GtkInfoBarPrivate *priv = gtk_info_bar_get_instance_private (info_bar);
-
-  g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
-
-  return priv->content_area;
-}
-
 /**
  * gtk_info_bar_add_button:
  * @info_bar: a #GtkInfoBar
diff --git a/gtk/gtkinfobar.h b/gtk/gtkinfobar.h
index 873d4e5baf..139b609afc 100644
--- a/gtk/gtkinfobar.h
+++ b/gtk/gtkinfobar.h
@@ -53,10 +53,6 @@ GDK_AVAILABLE_IN_ALL
 GtkWidget     *gtk_info_bar_new_with_buttons       (const gchar    *first_button_text,
                                                     ...);
 
-GDK_AVAILABLE_IN_ALL
-GtkWidget     *gtk_info_bar_get_action_area        (GtkInfoBar     *info_bar);
-GDK_AVAILABLE_IN_ALL
-GtkWidget     *gtk_info_bar_get_content_area       (GtkInfoBar     *info_bar);
 GDK_AVAILABLE_IN_ALL
 void           gtk_info_bar_add_action_widget      (GtkInfoBar     *info_bar,
                                                     GtkWidget      *child,


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