[gnome-shell] st/entry: Add missing notify calls
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st/entry: Add missing notify calls
- Date: Thu, 10 Feb 2022 13:14:05 +0000 (UTC)
commit 621c8606df88e94789db1a4c5d35049ff8cc90d4
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 9 17:03:13 2022 +0100
st/entry: Add missing notify calls
Whoops, at the moment changes of most properties are only notified
when going through g_object_set() and not when using the public
setters.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2168>
src/st/st-entry.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/st/st-entry.c b/src/st/st-entry.c
index a8edb2de4d..3a43504070 100644
--- a/src/st/st-entry.c
+++ b/src/st/st-entry.c
@@ -1170,6 +1170,7 @@ st_entry_set_hint_text (StEntry *entry,
st_widget_add_style_class_name (label, "hint-text");
st_entry_set_hint_actor (ST_ENTRY (entry), CLUTTER_ACTOR (label));
+ g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_TEXT]);
}
/**
@@ -1358,6 +1359,7 @@ st_entry_set_primary_icon (StEntry *entry,
priv = st_entry_get_instance_private (entry);
_st_entry_set_icon (entry, &priv->primary_icon, icon);
+ g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_PRIMARY_ICON]);
}
/**
@@ -1397,6 +1399,7 @@ st_entry_set_secondary_icon (StEntry *entry,
priv = st_entry_get_instance_private (entry);
_st_entry_set_icon (entry, &priv->secondary_icon, icon);
+ g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_SECONDARY_ICON]);
}
/**
@@ -1448,6 +1451,7 @@ st_entry_set_hint_actor (StEntry *entry,
}
st_entry_update_hint_visibility (entry);
+ g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_HINT_ACTOR]);
clutter_actor_queue_relayout (CLUTTER_ACTOR (entry));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]