- var dialog = new Gtk.MessageDialog(this,
- Gtk.DialogFlags.DESTROY_WITH_PARENT,
- Gtk.MessageType.QUESTION,
- Gtk.ButtonsType.YES_NO,
- _("You are about to remove the service '%s'. Are you sure you want to do this?"),
- selected_item.label);
- var ret = dialog.run();
- dialog.destroy();
-
- if (ret == Gtk.ResponseType.YES)
+ var result = WarningDialog.confirm(this,
+ "<span font-weight='heavy'>You are about to remove the service '%s'.</span>"
+ .printf(selected_item.label)
+ + "\n\nAre you sure you want to do this?",
+ "delete_service");
+
+ if (result)