| 51 g_clear_pointer(&msg->timestamp, g_date_time_unref); |
51 g_clear_pointer(&msg->timestamp, g_date_time_unref); |
| 52 msg->timestamp = g_date_time_new_from_unix_local(purple_message_get_time(purple_msg)); |
52 msg->timestamp = g_date_time_new_from_unix_local(purple_message_get_time(purple_msg)); |
| 53 |
53 |
| 54 g_object_freeze_notify(G_OBJECT(msg)); |
54 g_object_freeze_notify(G_OBJECT(msg)); |
| 55 g_object_notify_by_pspec(G_OBJECT(msg), properties[PROP_MESSAGE]); |
55 g_object_notify_by_pspec(G_OBJECT(msg), properties[PROP_MESSAGE]); |
| 56 g_object_notify_by_pspec(G_OBJECT(msg), properties[PROP_TIMESTAMP]); |
56 g_object_notify(G_OBJECT(msg), "timestamp"); |
| 57 g_object_thaw_notify(G_OBJECT(msg)); |
57 g_object_thaw_notify(G_OBJECT(msg)); |
| 58 } |
58 } |
| 59 } |
59 } |
| 60 |
60 |
| 61 /****************************************************************************** |
61 /****************************************************************************** |