diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/font-lister.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 1e51d8803..647bbc056 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -24,7 +24,8 @@ namespace Inkscape FontLister::FontLister () { font_list_store = Gtk::ListStore::create (FontList); - + font_list_store->freeze_notify(); + FamilyToStylesMap familyStyleMap; font_factory::Default()->GetUIFamiliesAndStyles(&familyStyleMap); @@ -60,6 +61,7 @@ namespace Inkscape (*treeModelIter)[FontList.onSystem] = true; } } + font_list_store->thaw_notify(); } // Example of how to use "foreach_iter" @@ -82,6 +84,8 @@ namespace Inkscape return; } + font_list_store->freeze_notify(); + /* Clear all old document font-family entries */ Gtk::TreeModel::iterator iter = font_list_store->get_iter( "0" ); while( iter != font_list_store->children().end() ) { @@ -146,6 +150,8 @@ namespace Inkscape (*treeModelIter)[FontList.styles] = styles; (*treeModelIter)[FontList.onSystem] = false; } + + font_list_store->thaw_notify(); } void |
