summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-02-14 18:25:01 +0100
committerTimm Bäder <mail@baedert.org>2020-02-15 17:18:26 +0100
commit52979a0e93022bc8c869eed2f347f1fd0b111811 (patch)
treef5ad957af887eabffcaaaf08dcd6fa709d80182f
parent78a5bf8e2127157e643d87e6c317c04f7cf208f6 (diff)
downloadgtk+-52979a0e93022bc8c869eed2f347f1fd0b111811.tar.gz
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().
-rw-r--r--docs/reference/gtk/gtk4-sections.txt2
-rw-r--r--gtk/gtkinfobar.c36
-rw-r--r--gtk/gtkinfobar.h4
3 files changed, 0 insertions, 42 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index 015ce12b49..8b91e2dfab 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
@@ -624,42 +624,6 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
}
/**
- * 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
* @button_text: text of button
diff --git a/gtk/gtkinfobar.h b/gtk/gtkinfobar.h
index 873d4e5baf..139b609afc 100644
--- a/gtk/gtkinfobar.h
+++ b/gtk/gtkinfobar.h
@@ -54,10 +54,6 @@ GtkWidget *gtk_info_bar_new_with_buttons (const gchar *first_button
...);
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,
gint response_id);