Comment 55 for bug 168164

Revision history for this message
insaner (insaner) wrote :

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