[libadwaita/wip/exalm/static-strings: 3/3] entry-row: Add equality checks to accessors
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/static-strings: 3/3] entry-row: Add equality checks to accessors
- Date: Mon, 11 Jul 2022 14:54:13 +0000 (UTC)
commit 25bac4ec2cd3962eff7c2019a86539beb5cc5023
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Jul 11 18:49:53 2022 +0400
entry-row: Add equality checks to accessors
src/adw-entry-row.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/src/adw-entry-row.c b/src/adw-entry-row.c
index a41b25f4..8293c4d9 100644
--- a/src/adw-entry-row.c
+++ b/src/adw-entry-row.c
@@ -808,6 +808,9 @@ adw_entry_row_set_input_hints (AdwEntryRow *self,
priv = adw_entry_row_get_instance_private (self);
+ if (hints == adw_entry_row_set_input_hints (self))
+ return;
+
gtk_text_set_input_hints (GTK_TEXT (priv->text), hints);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_INPUT_HINTS]);
@@ -856,6 +859,9 @@ adw_entry_row_set_input_purpose (AdwEntryRow *self,
priv = adw_entry_row_get_instance_private (self);
+ if (purpose == adw_entry_row_get_input_purpose (self))
+ return;
+
gtk_text_set_input_purpose (GTK_TEXT (priv->text), purpose);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_INPUT_PURPOSE]);
@@ -908,6 +914,11 @@ adw_entry_row_set_enable_emoji_completion (AdwEntryRow *self,
priv = adw_entry_row_get_instance_private (self);
+ enable_emoji_completion = !!enable_emoji_completion;
+
+ if (enale_emoji_completion == adw_entry_row_get_enable_emoji_completion (self))
+ return;
+
gtk_text_set_enable_emoji_completion (GTK_TEXT (priv->text), enable_emoji_completion);
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_ENABLE_EMOJI_COMPLETION]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]