[Spice-devel] [PATCH spice-gtk 4/8] Notify when property changed
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Nov 23 04:23:40 PST 2011
So that compatibility code with deprecated properties work
---
gtk/spice-gtk-session.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gtk/spice-gtk-session.c b/gtk/spice-gtk-session.c
index 116eead..c181c7e 100644
--- a/gtk/spice-gtk-session.c
+++ b/gtk/spice-gtk-session.c
@@ -232,10 +232,12 @@ static void spice_gtk_session_set_property(GObject *gobject,
break;
case PROP_AUTO_CLIPBOARD:
s->auto_clipboard_enable = g_value_get_boolean(value);
+ g_object_notify(gobject, "auto-clipboard");
break;
case PROP_AUTO_USBREDIR:
s->auto_usbredir_enable = g_value_get_boolean(value);
spice_gtk_session_update_keyboard_focus(self, s->keyboard_focus);
+ g_object_notify(gobject, "auto-usbredir");
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID(gobject, prop_id, pspec);
--
1.7.7
More information about the Spice-devel
mailing list