[tepl] InfoBar: remove add_icon()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl] InfoBar: remove add_icon()
- Date: Tue, 10 Nov 2020 22:11:37 +0000 (UTC)
commit 8ed71aab0a625071158b2859ecdbd7c0ca0fcaf6
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Nov 10 23:07:55 2020 +0100
InfoBar: remove add_icon()
docs/reference/api-breaks.xml | 6 ++++++
docs/reference/tepl-sections.txt | 1 -
tepl/tepl-info-bar.c | 22 +---------------------
tepl/tepl-info-bar.h | 3 ---
4 files changed, 7 insertions(+), 25 deletions(-)
---
diff --git a/docs/reference/api-breaks.xml b/docs/reference/api-breaks.xml
index a79ad16..2e1159b 100644
--- a/docs/reference/api-breaks.xml
+++ b/docs/reference/api-breaks.xml
@@ -178,6 +178,12 @@
<link linkend="tepl-info-bar-setup-close-button">tepl_info_bar_setup_close_button()</link>.
</para>
</listitem>
+ <listitem>
+ <para>
+ The <code>tepl_info_bar_add_icon()</code> function has been replaced by
+ <link
linkend="tepl-info-bar-set-icon-from-message-type">tepl_info_bar_set_icon_from_message_type()</link>.
+ </para>
+ </listitem>
</itemizedlist>
</chapter>
</part>
diff --git a/docs/reference/tepl-sections.txt b/docs/reference/tepl-sections.txt
index 7f87446..168fba2 100644
--- a/docs/reference/tepl-sections.txt
+++ b/docs/reference/tepl-sections.txt
@@ -237,7 +237,6 @@ tepl_gutter_renderer_folds_state_get_type
TeplInfoBar
tepl_info_bar_new
tepl_info_bar_new_simple
-tepl_info_bar_add_icon
tepl_info_bar_get_icon_from_message_type
tepl_info_bar_set_icon_from_message_type
tepl_info_bar_add_primary_message
diff --git a/tepl/tepl-info-bar.c b/tepl/tepl-info-bar.c
index e4510ac..2f64084 100644
--- a/tepl/tepl-info-bar.c
+++ b/tepl/tepl-info-bar.c
@@ -244,7 +244,7 @@ tepl_info_bar_new_simple (GtkMessageType msg_type,
info_bar = tepl_info_bar_new ();
gtk_info_bar_set_message_type (GTK_INFO_BAR (info_bar), msg_type);
- tepl_info_bar_add_icon (info_bar);
+ tepl_info_bar_set_icon_from_message_type (info_bar, TRUE);
tepl_info_bar_add_primary_message (info_bar, primary_msg);
if (secondary_msg != NULL)
@@ -304,26 +304,6 @@ update_icon_state (TeplInfoBar *info_bar)
}
}
-/**
- * tepl_info_bar_add_icon:
- * @info_bar: a #TeplInfoBar.
- *
- * Adds an icon on the left, determined by the message type. So before calling
- * this function, gtk_info_bar_set_message_type() must have been called.
- *
- * The icon is not updated when the message type changes. Another #TeplInfoBar
- * must be created in that case.
- *
- * Since: 2.0
- */
-void
-tepl_info_bar_add_icon (TeplInfoBar *info_bar)
-{
- g_return_if_fail (TEPL_IS_INFO_BAR (info_bar));
-
- tepl_info_bar_set_icon_from_message_type (info_bar, TRUE);
-}
-
/**
* tepl_info_bar_get_icon_from_message_type:
* @info_bar: a #TeplInfoBar.
diff --git a/tepl/tepl-info-bar.h b/tepl/tepl-info-bar.h
index 388a792..0ca238c 100644
--- a/tepl/tepl-info-bar.h
+++ b/tepl/tepl-info-bar.h
@@ -50,9 +50,6 @@ TeplInfoBar * tepl_info_bar_new_simple (GtkMessageType
msg_type,
const gchar *primary_msg,
const gchar *secondary_msg);
-_TEPL_EXTERN
-void tepl_info_bar_add_icon (TeplInfoBar *info_bar);
-
_TEPL_EXTERN
gboolean tepl_info_bar_get_icon_from_message_type (TeplInfoBar *info_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]