Commit 980f5bdaaad24ba7308cf55d66bf8b8d1b046782

  • avatar
  • Sam Thursfield <sam @cand…ion.home>
  • Tue Aug 11 13:39:20 CEST 2009
[gsettings] Fix some bugs.
  
9393
9494 // FIXME: should a widget keep a list of all its bound properties to save us going through
9595 // each one?
96 for (node=widget->properties; node; node=node->next) {
96 for (node=widget->properties; node; node=node->next)
97 {
9798 GladeProperty *property = GLADE_PROPERTY (node->data);
9899
99 if (first_property == NULL)
100 first_property = property;
101
102100 if (property->key != NULL)
101 {
103102 add_property (self, property);
103 if (first_property == NULL)
104 first_property = property;
105 }
104106 };
105107
106108 self->widget = widget;
161161 return;
162162
163163 if (self->property_notify_id != 0)
164 g_signal_handler_disconnect (property, self->property_notify_id);
164 g_signal_handler_disconnect (self->property, self->property_notify_id);
165
166 if (property == NULL)
167 {
168 self->property = NULL;
169 self->property_notify_id = 0;
170 return;
171 }
165172
166173 if (property->widget != self->widget)
167174 set_widget (self, property->widget, property);