Commit 980f5bdaaad24ba7308cf55d66bf8b8d1b046782
- Diff rendering mode:
- inline
- side by side
gladeui/glade-settings-editor.c
(14 / 5)
|   | |||
| 93 | 93 | ||
| 94 | 94 | // FIXME: should a widget keep a list of all its bound properties to save us going through | |
| 95 | 95 | // each one? | |
| 96 | for (node=widget->properties; node; node=node->next) { | ||
| 96 | for (node=widget->properties; node; node=node->next) | ||
| 97 | { | ||
| 97 | 98 | GladeProperty *property = GLADE_PROPERTY (node->data); | |
| 98 | 99 | ||
| 99 | if (first_property == NULL) | ||
| 100 | first_property = property; | ||
| 101 | |||
| 102 | 100 | if (property->key != NULL) | |
| 101 | { | ||
| 103 | 102 | add_property (self, property); | |
| 103 | if (first_property == NULL) | ||
| 104 | first_property = property; | ||
| 105 | } | ||
| 104 | 106 | }; | |
| 105 | 107 | ||
| 106 | 108 | self->widget = widget; | |
| … | … | ||
| 161 | 161 | return; | |
| 162 | 162 | ||
| 163 | 163 | 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 | } | ||
| 165 | 172 | ||
| 166 | 173 | if (property->widget != self->widget) | |
| 167 | 174 | set_widget (self, property->widget, property); |

