modern-gtk2: Use Gtk::ComboBoxText::append() (!17)

Gtk::ComboBoxText::append_text() was deprecated in gtkmm 2.24.  Replace
with Gtk::ComboBoxText::append().

References:
https://developer.gnome.org/gtkmm/2.24/classGtk_1_1ComboBoxText.html
https://gitlab.gnome.org/GNOME/gtkmm/blob/2.24.0/NEWS#L20

Closes !17 - Gtk2 modernisation
This commit is contained in:
Luca Bacci 2018-08-10 09:33:47 +02:00 committed by Mike Fleetwood
parent c0aa3dbfdf
commit 3f18318304
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ Dialog_Disklabel::Dialog_Disklabel( const Device & device )
bool set_active = false ;
for ( unsigned int t = 0 ; t < labeltypes .size() ; t ++ )
{
combo_labeltypes .append_text( labeltypes[ t ] ) ;
combo_labeltypes.append(labeltypes[t]);
if ( default_label == labeltypes[ t ] )
{
combo_labeltypes .set_active( t ) ;