]> git.lyx.org Git - lyx.git/blob - src/frontends/gnome/gnome_helpers.C
applying Martin Craig's gnome patch. Upgrading to gtkmm-2.0+ from the 1.3 developmen...
[lyx.git] / src / frontends / gnome / gnome_helpers.C
1 /**
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.
5  *
6  * \author unknown
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "gnome_helpers.h"
15 #include <gtkmm/texttag.h>
16
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;
20
21         Glib::RefPtr<Gtk::TextTag> boldTag =  Gtk::TextTag::create("bold");
22         boldTag->property_weight() = Pango::WEIGHT_BOLD;
23
24         buf->get_tag_table()->add(italicTag);
25         buf->get_tag_table()->add(boldTag);
26
27 }
28