103 |
if (nm->note) |
if (nm->note) |
104 |
g_free (nm->note); |
g_free (nm->note); |
105 |
|
|
106 |
gchar *val = g_value_dup_string (value); |
nm->note = g_value_dup_string (value); |
|
if (val) |
|
|
nm->note = val; |
|
|
else |
|
|
nm->note = NULL; |
|
107 |
|
|
108 |
app_ip_name_changed (nm); |
app_ip_name_changed (nm); |
109 |
break;} |
break;} |
186 |
|
|
187 |
AppTranscript *cx = nm->tx; |
AppTranscript *cx = nm->tx; |
188 |
|
|
|
g_ptr_set_remove (cx->names_by_use, nm); |
|
189 |
++ nm->use_count; |
++ nm->use_count; |
|
g_ptr_set_add (cx->names_by_use, nm); |
|
190 |
|
|
191 |
g_object_notify (G_OBJECT (nm), "use-count"); |
g_object_notify (G_OBJECT (nm), "use-count"); |
192 |
|
|
200 |
|
|
201 |
AppTranscript *cx = nm->tx; |
AppTranscript *cx = nm->tx; |
202 |
|
|
|
g_ptr_set_remove (cx->names_by_use, nm); |
|
203 |
-- nm->use_count; |
-- nm->use_count; |
|
g_ptr_set_add (cx->names_by_use, nm); |
|
204 |
|
|
205 |
g_object_notify (G_OBJECT (nm), "use-count"); |
g_object_notify (G_OBJECT (nm), "use-count"); |
206 |
} |
} |
221 |
|
|
222 |
g_assert (!g_ptr_set_lookup (cx->names_by_alpha, NULL, nm)); |
g_assert (!g_ptr_set_lookup (cx->names_by_alpha, NULL, nm)); |
223 |
g_ptr_set_add (cx->names_by_alpha, nm); |
g_ptr_set_add (cx->names_by_alpha, nm); |
|
g_ptr_set_add (cx->names_by_use, nm); |
|
224 |
|
|
225 |
app_ip_name_changed (nm); |
app_ip_name_changed (nm); |
226 |
|
|
240 |
g_critical ("use=%d for unreferenced AppIpName `%s'", |
g_critical ("use=%d for unreferenced AppIpName `%s'", |
241 |
nm->use_count, nm->name); |
nm->use_count, nm->name); |
242 |
|
|
|
g_ptr_set_remove (nm->tx->names_by_use, nm); |
|
243 |
g_ptr_set_remove (nm->tx->names_by_alpha, nm); |
g_ptr_set_remove (nm->tx->names_by_alpha, nm); |
244 |
|
|
245 |
app_ip_name_changed (nm); |
app_ip_name_changed (nm); |