2 * \file gnome_helpers.C
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
14 #include "gnome_helpers.h"
15 #include <gtkmm/texttag.h>
17 void addDefaultTags(Glib::RefPtr<Gtk::TextBuffer> & buf) {
18 Glib::RefPtr<Gtk::TextTag> italicTag = Gtk::TextTag::create("italic");
19 italicTag->property_style() = Pango::STYLE_ITALIC;
21 Glib::RefPtr<Gtk::TextTag> boldTag = Gtk::TextTag::create("bold");
22 boldTag->property_weight() = Pango::WEIGHT_BOLD;
24 buf->get_tag_table()->add(italicTag);
25 buf->get_tag_table()->add(boldTag);