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
was not able to compile on fedora 14 with
$ rpm -q gtkmm24 2.22.0- 1.fc14. i686
gtkmm24-
(14:28:35) insaner: $ rpm -q gtk2 22.0-1. fc14.1. i686
gtk2-2.
it was throwing a
CXX widgets/ font-selector. o font-selector. cpp: In function ‘void sp_font_ selector_ set_sizes( SPFontSelector* )’: font-selector. cpp:352: 67: error: cannot convert ‘double’ to ‘const gchar*’ for argument ‘2’ to ‘void gtk_combo_ box_append_ text(GtkComboBo x*, const gchar*)’ font-selector. o] Error 1
widgets/
widgets/
make[3]: *** [widgets/
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 VERSION( 2, 24,0)
gtk_combo_ box_text_ append_ text (GTK_COMBO_ BOX_TEXT( fsel->size) , Glib::ustring: :format( size).c_ str());
gtk_combo_ box_append_ text (GTK_COMBO_ BOX(fsel- >size), size);
----------
#if GTK_CHECK_
#else
#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());
gtk_combo_ box_append_ text (GTK_COMBO_ BOX(fsel- >size), Glib::ustring: :format( size).c_ str());
#else
#endif
}
-----------
ie, replace "size" with "Glib:: ustring: :format( size).c_ str()"
hope that helps