def METHOD_NAME(self, online):
    text_iter = self.textbuffer.get_end_iter()
    if online:
        entry = self.append("info",
                            0,
                            "================ DBus connection established ===============")
    else:
        entry = self.append("warning",
                            0,
                            "================ DBus connection lost ===============")
    self.textbuffer.insert_with_tags(text_iter,
                                     entry.formatted_text,
                                     self.type_tags[entry.category])
    self.get_updates(True)