[clutter-gtk] embed: Fix getter naming snafu
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] embed: Fix getter naming snafu
- Date: Fri, 26 May 2017 12:02:00 +0000 (UTC)
commit 40ea12a3f4ba41cc59602c65205f647f8023bf9d
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri May 26 12:51:12 2017 +0100
embed: Fix getter naming snafu
The documented get_use_layout_size() getter method is still named
get_honor_stage_size() in the library API, even though it does not match
the setter, and it's undocumented and undeclared.
Let's preserve the ABI compatibility, and keep exporting the symbol, but
also let's define the appropriate getter, to avoid an undefined symbol
when developers use it.
clutter-gtk/gtk-clutter-embed.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-embed.c b/clutter-gtk/gtk-clutter-embed.c
index 0baa3d1..e8c31d4 100644
--- a/clutter-gtk/gtk-clutter-embed.c
+++ b/clutter-gtk/gtk-clutter-embed.c
@@ -1271,6 +1271,15 @@ gtk_clutter_embed_set_use_layout_size (GtkClutterEmbed *embed,
}
}
+extern gboolean
+gtk_clutter_embed_get_honor_stage_size (GtkClutterEmbed *embed);
+
+gboolean
+gtk_clutter_embed_get_honor_stage_size (GtkClutterEmbed *embed)
+{
+ return gtk_clutter_embed_get_use_layout_size (embed);
+}
+
/**
* gtk_clutter_embed_get_use_layout_size:
* @embed: a #GtkClutterEmbed
@@ -1283,7 +1292,7 @@ gtk_clutter_embed_set_use_layout_size (GtkClutterEmbed *embed,
* Since: 1.4
*/
gboolean
-gtk_clutter_embed_get_honor_stage_size (GtkClutterEmbed *embed)
+gtk_clutter_embed_get_use_layout_size (GtkClutterEmbed *embed)
{
GtkClutterEmbedPrivate *priv = embed->priv;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]