was not able to compile on fedora 14 with
$ rpm -q gtkmm24
gtkmm24-2.22.0-1.fc14.i686
(14:28:35) insaner: $ rpm -q gtk2
gtk2-2.22.0-1.fc14.1.i686
it was throwing a
CXX widgets/font-selector.o
widgets/font-selector.cpp: In function ‘void
sp_font_selector_set_sizes(SPFontSelector*)’:
widgets/font-selector.cpp:352:67: error: cannot convert ‘double’ to ‘const
gchar*’ for argument ‘2’ to ‘void gtk_combo_box_append_text(GtkComboBox*, const
gchar*)’
make[3]: *** [widgets/font-selector.o] Error 1
so i went to that line stared for a while.. tried a few things, and this
seems to have fixed it:
change line 352 in widgets/font-selector.cpp from
----------
#if GTK_CHECK_VERSION(2, 24,0)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fsel->size),
Glib::ustring::format(size).c_str());
#else
gtk_combo_box_append_text (GTK_COMBO_BOX(fsel->size), size);
#endif
}
-----------
to
-----------
#if GTK_CHECK_VERSION(2, 24,0)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fsel->size),
Glib::ustring::format(size).c_str());
#else
gtk_combo_box_append_text (GTK_COMBO_BOX(fsel->size),
Glib::ustring::format(size).c_str());
#endif
}
-----------
ie, replace "size" with "Glib::ustring::format(size).c_str()"
hope that helps
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/168164
Title:
font sizes specified in pixels instead of points
To manage notifications about this bug go to:
https://bugs.launchpad.net/inkscape/+bug/168164/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs