diff --git a/src/gdu-gtk/gdu-create-linux-md-dialog.c b/src/gdu-gtk/gdu-create-linux-md-dialog.c
index a348391..2c00704 100644
--- a/src/gdu-gtk/gdu-create-linux-md-dialog.c
+++ b/src/gdu-gtk/gdu-create-linux-md-dialog.c
@@ -556,20 +556,20 @@ gdu_create_linux_md_dialog_constructed (GObject *object)
         gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), _("RAID _Level:"));
         gtk_table_attach (GTK_TABLE (table), label, 0, 1, row, row + 1,
                           GTK_FILL, GTK_EXPAND | GTK_FILL, 2, 2);
-        combo_box = gtk_combo_box_new_text ();
+        combo_box = gtk_combo_box_text_new ();
         dialog->priv->level_combo_box = combo_box;
         /* keep in sync with on_level_combo_box_changed() */
         s = gdu_linux_md_get_raid_level_for_display ("raid0", TRUE);
-        gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), s);
+        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), s);
         g_free (s);
         s = gdu_linux_md_get_raid_level_for_display ("raid1", TRUE);
-        gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), s);
+        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), s);
         g_free (s);
         s = gdu_linux_md_get_raid_level_for_display ("raid5", TRUE);
-        gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), s);
+        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), s);
         g_free (s);
         s = gdu_linux_md_get_raid_level_for_display ("raid6", TRUE);
-        gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box), s);
+        gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box), s);
         g_free (s);
         g_signal_connect (combo_box,
                           "changed",
diff --git a/src/gdu-gtk/gdu-format-dialog.c b/src/gdu-gtk/gdu-format-dialog.c
index a718f82..028a820 100644
--- a/src/gdu-gtk/gdu-format-dialog.c
+++ b/src/gdu-gtk/gdu-format-dialog.c
@@ -555,15 +555,15 @@ gdu_format_dialog_constructed (GObject *object)
                           GTK_FILL, GTK_EXPAND | GTK_FILL, 2, 2);
         if (dialog->priv->flags & GDU_FORMAT_DIALOG_FLAGS_SIMPLE) {
                 /* keep in sync with on_combo_box_changed() */
-                combo_box = gtk_combo_box_new_text ();
-                gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box),
-                                           _("Compatible with all systems (FAT)"));
-                gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box),
-                                           _("Compatible with Linux (ext2)"));
-                gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box),
-                                           _("Compatible with Linux (ext4)"));
-                gtk_combo_box_append_text (GTK_COMBO_BOX (combo_box),
-                                           _("Encrypted, compatible with Linux (FAT)"));
+                combo_box = gtk_combo_box_text_new ();
+                gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box),
+                                                _("Compatible with all systems (FAT)"));
+                gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box),
+                                                _("Compatible with Linux (ext2)"));
+                gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box),
+                                                _("Compatible with Linux (ext4)"));
+                gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo_box),
+                                                _("Encrypted, compatible with Linux (FAT)"));
                 gtk_combo_box_set_active (GTK_COMBO_BOX (combo_box), 0);
                 dialog->priv->fs_type = g_strdup ("vfat");
                 dialog->priv->fs_options = NULL;
